Visible exit problem!
yas-min
18 Apr 2020, 22:20Hello, i'm new here! i'm designing a game for my friends birthday, so the story is about us. In my scenario my friend should answer a question, then if the answer is correct, I want to make a few exits visible.
I'm using this script code for question:
msg ("'Type the name of the song she shared?'")
get input {
if (result = "little black submarines") {
get input {
msg ("'little black submarines' you are right. Do you remember the time she told the story of this song? Where did it happened?.")
}
}
else {
msg ("'Is it "" + result + ""?' you ask.")
msg ("'No!'")
}
}
I've tried a few times "make exit visible" script but it didn't work, because i'm not sure i 've got the idea:(
Could you help me?
mrangel
19 Apr 2020, 08:33Have you given each exit a name?
If you've named an exit, you can make it visible by adding
name of exit.visible = true
in code view.
If the exits are in the current room, it might also be worth printing a message to tell the player that something has appeared; because they might not notice that the compass has changed.