Hi! It's the newb again, using SugarCube.
I'm trying to figure out how to create an effect where you go through the game and text says one thing, and once you trigger an event, if you return to those locations the text is different.
I've been using <<if visited("passage")>> <<endif>> which works fine for additional text, but I'm having trouble altering the text that's already there. Replace macros only seem to replace them by making it clickable or mousing over them.
Is there another way to do this? Thanks!
Comments
Basically you would write your text like this:
<<once>>This is an abandoned mall, devoid of life.<<becomes>This is a mall full of zombies<<endonce>>
The text before the <<becomes>> would be displayed when you first reach the passage, and the text after would be displayed on the second time around. You can add more <<becomes>> to modify it for third and fourth times too.
Assuming that I understand what you want. Why don't you do something like one of these: (they're the same, only the logic is inverted) For example, if the event was external to the text logic, then you could do something like: (the value of
$zombiesActive
would be set elsewhere; scenario courtesy of SpatkplusTwelve's zombie infested malls) On the other hand, if if the event was coupled to the text logic, then you could do something like: (notice that in thenot $metNancy
case,$metNancy
is set totrue
) n.b. The line continuations were used to make the examples fit on screen better, you don't have to use them.