Hello - I’m trying to build a scene where you’re greeted and then invited to follow an NPC to another location. The code below works well enough, but then it keeps repeating “The Host leaves to the west.” over and over. I can’t figure out the right way to make it only print this message once. Does anyone know how I can stop this message from repeating?
[code]When ArrivalScene begins:
say “The Host arrives to greet you.”;
move Host to the Boat Landing.
Every turn during ArrivalScene:
if the player has been in the Boat Landing for two turns:
move Host to the South Courtyard;
say “The Host leaves to the west.” instead.[/code]
I think it says that because you said it to say that every time in the arrival scene.
“every turn during the arrival scene.”
Maybe using the NOW word in the text might be better.
Yeah, it fires because ‘if the player has been in the Boat Landing for two turns’ is true whenever the player has been there for more than one turn. (In the same way that if you have three dollars, it’s true that you have two dollars.)
I think this’ll work if you use ‘exactly’ in there:
if the player has been in the Boat Landing for exactly two turns:
But if that doesn’t pan out, you could throw another obvious conditional in there, like this:
if the player has been in the Boat Landing for two turns and the location of the Host is not the courtyard:
Thanks that worked, I forgot about ‘exactly’ and the use of extra conditionals.