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

Forcing code to continue running until two variables are not equal (Harlowe 1.2.2, Twine 2.0.11)

$
0
0
Okay, another problem that probably has an easy solution that I'm just missing.
The goal is this:
1. Assign the last room visited to $lastroom via (history: )
2. Randomly determine a destination room via (either: ), assign this to $destroom
3. Check if $destroom and $lastroom are the same;
3a. If they are, repeat Steps 2 & 3.
3b. If not, display a link to $destroom.

I have all of this working except for Step 3a; I can't work out a method to do this that doesn't require player input. Any thoughts?

Viewing all articles
Browse latest Browse all 1844

Trending Articles