I added something if you’d like to try multireplace
How about you just set up the variable like this:
*choice
#Earth
*set has_earth +1
*goto has_earth_label
Then rename the *if (has_earth) into
*label has_earth_label
Text text power earth text text
You get to keep the earth variable value for future use, and you can get to the desired scene.
Not sure if I’m making sense here, but this is what I do to avoid complications
If I’m understanding your problem correctly, the way you’ve set this up, you only have an indentation on the first line under each if statement. All unindented text lies outside of the if block so it will always be shown. You need to indent everything under an if that needs to be restricted by it. I’d use larger indents, by the way, makes it easier to see what’s going on…
Try it like this:
*if (has_earth)
Curious you looked at the symbols fire,water,earth,wind?
You walked to tree on the right, the one with the Earth symbol, almost as if you were drawn to it.
There you knew that it was you. Reaching forward you touched the tree and watched how the leaves on the tree began to host flowers. Beautiful…
*if (has_water)
Curious you looked at the symbols fire,water,earth,wind?
You walked to tree on the right, the one with the ocean symbol, almost as if you were drawn to it.
There you knew that it was you. Reaching forward you touched the tree and watched how the leaves on the tree began to turn into water without losing shape. Beautiful…
*if (has_wind)
Curious you looked at the symbols fire,water,earth,wind?
You walked to tree on the right, the one with the wind symbol, almost as if you were drawn to it.
There you knew that it was you. Reaching forward you touched the tree and watched how the leaves on the tree began to turn into little wisps of air without losing shape. Beautiful…
@MeltingPenguins could you give me more info on how to do this
OH MY GOSH IT WORKED THANKYOU SO MUCH @lunawisp
but i still want to know how to do that @MeltingPenguins
*pats back twice
Multireplace works like this:
If you create a numeral variable (for example has_power) multireplace will show the phrase for the respective number:
Like
@{has_power 1| 2| 3| 4}
It can not display 0.
If you have a string variable or false/true it can be used to display two things
@{(power = "air") text for air| text for everything else}
Or
@{air text for air| text for everything else}
Thank you I was thinking about using it for my character layout
Glad you got it working. Incorrect indentation is one of the first things to look for when your script does ‘strange’ things and you don’t get any error messages
I think i’ll call it a night
Goodnight or Good morning where ever you are
Don’t use if statements. Use multireplace instead. It prevents two elements booleans being true and thus displaying the message twice, it also reduce duplicate code.
startup
*comment zero is fire one is water two is earth three is wind
*create element 0
Curious you looked at the symbols fire,water,earth,wind?
You walked to tree on the right, the one with the @{element "Fire"|"Water"|"Earth"|"Wind"} symbol, almost as if you were drawn to it.
You can use ifs when only one variable can be true too.
Some authors prefer it s it keeps the code easier to go follow sometimes.
Also, you cant dtack multireplace