here's what I tried...
Code: Select all
#### Variables ####
$ lClothes = renpy.random.randint(0, 1)
### Image tags are as follows.
### 1st tag = character,
### 2nd tag = mood,
### 3rd tag = clothing option (0 = casual, 4 = formal),
### 4th tag = pose variation.
label start:
$ lAttire = 0
if lClothes = 0:
$ lAttire = 0
else:
$ lAttire = 4
show laura laugh 0 1 at left with dissolve
l "Hello."
show laura smile [lAttire] 1 at left with dissolve
l "This one."
show laura smirk [lAttire] 1 at left with dissolve
l "That one."
show laura think [lAttire] 1 at left with dissolve
l "Maybe this one here."
show laura shrug [lAttire] 1 at left with dissolve
l "The end."
The above code is entirely for test purposes, so it's a bit nonsensical.
With the code as it is, the 'if' statement looks like it satisfies the engine, though that's not to say that it works as intended. It won't let me into the game yet. The only errors I'm getting now are an "end of line expected" for each 'show' statement.
I'm guessing it didn't like the [lAttire] thing.
Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 33: end of line expected.
show laura smile [lAttire] 1 at left with dissolve
^
File "game/script.rpy", line 35: end of line expected.
show laura smirk [lAttire] 1 at left with dissolve
^
File "game/script.rpy", line 37: end of line expected.
show laura think [lAttire] 1 at left with dissolve
^
File "game/script.rpy", line 39: end of line expected.
show laura shrug [lAttire] 1 at left with dissolve
^
Ren'Py Version: Ren'Py 6.99.12.3.2123