Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to use unless statements?

edited January 2016 in Help! with 2.0
Okay so I wrote a simplified version of this so I can explain myself:
I want to use an unless statement but every time I do I either get the Java Error code ( "Unexpected token ILLEGAL")
Or my other guesses don't work in twine.

What I am trying to do :
(unless: $John is 100):
(set: $John to (random: 1, 10))

(if: $John is 1)[John ran out of food and died]

Basically I am looking for a way to have the function of setting john to a random number unless He already is at 100.
Thanks!

Comments

Sign In or Register to comment.