Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Sugarcube 2, javascript which executes if 2 variables reach a certain level

$
0
0
In my story I have a tiredness meter which goes to 150.
Now I want to make it so that if Tiredness is over 100 a warning message is displayed once and the characters hp is lowered.
Then if the player does not do something about it, at 150 I want a game over screen to be shown.

Since I have no knowledge of javascript, everything I tried based on random google results seems to have failed so far.

TLDR
I want a certain passage to be shown if 2 variables reach a certain state. If these 2 variables are both correct I also want to set another variable to a new value.

Viewing all articles
Browse latest Browse all 1844

Trending Articles