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

How to forbid an (if:) to repeat in a loop, once it has been displayed once ?

$
0
0
Hey again !
I'm still trying to figure out how to do stuff, and I can't find a good way to do what I want...
I'm on Harlowe 2.0 and Twine 2.1.0

Alright, so here is the thing, I'm trying to do a loop which will return to
[[Room]]

every once in a while.

When it does, I'd like Harlowe to check what is new to the story, thanks to variables (when stuff happens, I create a variable named $StuffA, and give it the value 1)

That way, I can do, inside [[Room]]
(if: $StuffA is 1)[Oh you did this !]

The thing is, once the program has said to you that you did StuffA once, you don't really want to hear about it again.
So I thought about doing :
(if: $StuffA is 1 and $said is 0)[Oh, you did this ! (set: $said to 1)]

It would work that way, I guess. But it implies for me to create a new variable $said, for each event that occurs in my story, which isn't convenient.

Does anyone know of a better way ?...

Thanks a lot !

Viewing all articles
Browse latest Browse all 1844

Trending Articles