Room scripts issue #1456
Replies: 2 comments 1 reply
-
Hello. That's not the way "before entering for the first time" and "after entering for the first time" work (although I see how one could assume it was). When entering the room for the first time:
You only need the "after entering" script. firsttime {
msg ("A man is fixing his car.")
}
otherwise {
msg ("The man you saw before is nowhere to be found.")
} |
Beta Was this translation helpful? Give feedback.
-
...but I would actually handle it differently, with an actual man there. (You may have him there already.) Turn on in-room descriptions. Give the man (Bob) an in-room description, and make him scenery. Change the scripts on that room, using a different script for "after enter" (and I am adding an "after leaving" (just for this example, to move Bob)). "after entering" if (not Bob.parent = this) {
msg ("The man you saw before is nowhere to be found.")
} "after leaving" (this script simply makes Bob's parent object the firsttime {
Bob.parent = game
} This functions the same during play, except Bob is there to examine and the scripts check for his presence. You would probably want to get rid of the "after leaving" script and have a different script that moves the man (who is probably not actually named Bob). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The most readily available options under Scripts tab are-
Before entering the room
After entering the room
After leaving the room
Before entering the room for the first time
After entering the room for the first time
(Not to mention the Room tab text or script option)
But I do not see a readily available option for Before entering the room for the first time, while also having something saved for later, because it all plays at the same time.
For instance. Before entering the room for the first time I'd like shown by it self- [A man is fixing his car.]
After entering the room for the first time I'd like shown by it self- [The man you saw before is no where to be found.]
How it plays now is- [A man is fixing his car. The man you saw before is no where to be found.]
If I have a couple of the other readily available scripts with the same thing, then you see- [A man is fixing his car. The man you saw before is no where to be found. The man you saw before is no where to be found. The man you saw before is no where to be found.]
I apologize, I am probably not explaining it right. But I just want one description at a time, with the first time one not to repeat again and the "second" time one to not show up with the First one. I've tried different combo's, but nothing is working to the desired effect. I am sure a script within a script would work, but I am looking for one of the readily available ones to do the trick, if possible. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions