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

Adding to a Variable (Harlowe)

$
0
0
I’m trying to add to variable inside a passage by using a click macro. (Part of a character creation system I’m working on.) This is what I have so far;

(set: $Health to 8)
Health = $Health [Health +1]<Health1|

(click: ?Health1)[
(set: $Health to $Health +1)
]

So when Health + 1 is clicked the following function happens and is supposed to add + 1 to $Health. However when Health +1 is clicked the value of $Health does not change. Does anyone know what I might be missing?

Thanks!

Viewing all articles
Browse latest Browse all 1844

Trending Articles