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

Adding to a 'time' variable to indicate time passing? (Harlowe)

$
0
0
Hi, everyone. I've been working on a game recently where you are given a list of tasks you can do, and each task results in a certain amount of time being spent. When a certain amount of time passes, instead of being directed back to the list of tasks you go to another passage that takes place afterwards.
I'm doing this with a 'time' variable that is set in a previous passage like this:

(set: $time to 0)

then in each task passage, this is used to indicate time passes:

(set: $time to $time + 1)

but it comes up with an error stating I can't use the set variable to do this? Anyone know what I should use instead.
By the way, the part I'm using to move from the tasks bit to the passage after is this:

(if: $time > 3)[\
[[That's enough for today.->waiting]]
\]
(else:)[\
[[Back to work.->january]]
\]

But I think that works alright?

Viewing all articles
Browse latest Browse all 1844

Trending Articles