I’m having trouble with figuring out how to include random text in a single section of a scene. Each time the player returns to one labelled section, the action should randomize again.
Basically, the entire scene is the ‘Library’. The first time the player enters the library, one paragraph displays. Then, the next time they visit this section and every time they return to the front desk, the librarian should be doing a different action (i.e. if they roll a 1, he’s reading; if they roll a 2, he’s humming; if they roll a 3 he’s working.)
The problem is that every time I look up how to do this, I only find info about setting random variables for an entire scene. Since I want the randomization to occur only in one section within the scene, without the player ever leaving the scene, how would I achieve this?
Here is a rough idea of the code. (I have no idea what I’m doing, though):
"*comment main library scene
*line_break
*if (pc_visitedlibrary = false)
The local library is crammed with seemingly endless rows of books. It smells vaguely of dust and learning. Behind the front desk, the librarian smiles in greeting. “Can I help you find something?”
*elseif
*label frontdeskrandomization
*rand librarian_action 1 3
*if librarian_action = 1
The librarian squints in your direction.
*elseif librarian_action = 2
The librarian stares off into space, as if lost in thought.
*elseif librarian_action = 3
The librarian appears to be sorting through a tall stack of books. "
