I have most of this working. The idea is for the player is to choose a room to explore, a random description will popup. Then the description will be locked in for the remainder of the current game. I have the random room working but I can’t seem to lock it in to place. I have placed the code below, hope you’ll can figure out what I am doing wrong. Thank you.
First off the player choose a room.
*choice -#First door on the left --*goto l1
So they have made the choice now it goes to
*label l1 *gosub rl1 *comment this checks to see if the room has been seleceted or not. *rand dlone 1 4 *comment this is after it has returned if the room has not been explored. It will then go to if statement from the random number and choose the description of the room. *if (dlone=1) -*goto room1 *elseif (dlone=2) -*goto room2 *comment It does this up to room4
*label rl1 *if (rl1="a") -*return *comment rl1 is set to a at the start. So if it is "a" they have not explored the room. *elseif (rl1="b") -*goto room1 *comment so if they have explored the room it will be set b, c, d, or e
*comment if the room has not been explored then this is what it looks like. *label room2 *set loc "a" *comment loc is always set to a for the first door on the left. *set rl1 "c" *comment this should lock the room in for the description. *set dl1 "Open" *comment this shows the door has been opened. (Here is where the player discovers what is in the room.) *gosub scare_1 *this is a check that works fine and rather not give the details out on right at the moment. *page_break Explore further *goto exploring *comment this takes you bake to the choices for the rooms.