So I'm making a house at the moment and I wanted to make the second floor. But as the second floor is full of crates, bags and overall storage, I would like the main character (player) to say something like: "What a mess!" when he enters it. But how do I set up an event to trigger when I enter the map "floor 2"? Thank you very much, MrFishManify
How to make text appear when you enter a certain map?
● ARCHIVED · READ-ONLY
-
-
You can really just put a blank event anywhere on the map and set it to Autorun. Just make sure to get rid of it in the end so that it doesn't loop.
-
I've done this by adding the event to the same event that transfers the player to that location. Just transfer the player first, then below that part of the event, add your text. However, this way it will run every time you transfer up there unless you do self-switches or a conditional loop check.
-
I suggest you take some time to work through the basic tutorials, because what you asked is very basic eventing.
There are several ways to do this, depending on what exactly you want to do and how your maps work - one way is the autorun trigger mentioned above, but you could also simply make an invisible event on the floor, priority below actor and set to player touch - then the contents would be executed when the player steps on that event.
Please follow the link in my signature if you are looking for the basic tutorials mentioned above. -
Oh my god, how did I not think of this? I just didn't register that you can do that haha :) had a brain freeze :pI've done this by adding the event to the same event that transfers the player to that location. Just transfer the player first, then below that part of the event, add your text. However, this way it will run every time you transfer up there unless you do self-switches or a conditional loop check.
-
Thanks everyone, very helpful answers :)
-
^ThisYou can really just put a blank event anywhere on the map and set it to Autorun. Just make sure to get rid of it in the end so that it doesn't loop.
OP, the most efficient way to get rid of/turn off such a event, is to use the erase event command, this way it wont waste switches, and it will happen every time you reenter that map.
To Bgilisp: Really, the input text command is actually one of the commands that carry over after the transfer player command? That's really weird that such a command would, but hey, if it works, it works. -
Why would you want the character to comment on how messy the room is EVERY time they enter? Use a self switch and an extra page conditioned by that self switch with no commands. Text shows the first time, and never again. IF you want to do it the autorun way.
And yes, Show Text (not Input Text) will work after a transfer to the next map.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.