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?
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?