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

[Harlowe] If statement with negative variables and goto

$
0
0
I have an event where the player has to choose either A or B, which will deduct X amount from 1 of 5 variables. I'm trying to do it so that if any of the variable hits -5 then the game will skip to a game over.

The problem is that currently even if my variables aren't -5, the game brings me to the game over screen straight away when it hits the event.

Setting up the variables:
(set: $A to 0)
(set: $B to 0)
(set: $C to 0)
(set: $Dto 0)
(set: $E to 0)
(if: $A < -5)(goto: "gameover")
but with all 5 variables of course.



Viewing all articles
Browse latest Browse all 1844

Trending Articles