Quantcast
Channel: Twine Forum
Viewing all articles
Browse latest Browse all 3830

If/Greater than question

$
0
0
Hello!

I'm new to Twine 2.0 and I've been watching tutorials on how to implement variables and conditionals. I'm trying to implement a basic health system where when your Health variable = 0, you get a death message and when its greater than 0 you get the normal, expected text.

The first conditional for checking if health is = to 0 is working perfectly.
However the > 0 returns nothing.

Here's my example:

(set: $health to 5)
Health: $health

(if: $health is 0)[You have died!!]
(if: $health is > 0)[The door slams behind you. Uh oh. This is how horror movies start. What have you done?]

Anyone have any ideas?

Thanks!

Viewing all articles
Browse latest Browse all 3830

Trending Articles