The PokéCommunity Forums

The PokéCommunity Forums (
-   Pokémon Essentials (
-   -   Question How do I make this door event work? (

Ryuufa September 15th, 2012 4:32 AM

How do I make this door event work?
So I can't seem to make a door event work correctly...
The overall idea ist this:
should be an image, but it won't let me, so...

I want "Doorstopper" to move either by talking to him before entering "Frontdoor" or by using "Backdoor".
Then after the player moved through, "Doorstopper" should reacquire his original position.

The respective events are as follows:
(by the way, is there a way to copy events to text? because it's really annoying like this)
(should be links, but it won't let me, so...)
"Doorstopper" (
"Frontdoor" (
"Backdoor" (

And I implemented them following the examples:
"Test Map 2, EV022" (
"Test Map, EV026" (

(On a side note: Why the heck do you need 15 posts to make links and images work?!)

Problem1: How can I "reset" "Doorstopper" after moving him back to his original position?
The current temporary solution with "Self Switch A" obviously cannot be accessed from outside.
But if I use, say, a global flag, then for whatever reason I cannot seem to make "Doorstopper" look down again.

Ideally, there would be a method of testing whether an event's location accords with some coordinates. That would allow me to reset "Self Switch A". Is there such a method?
And if there is not, how should I go about the problem?

Problem2: Why isn't "Frontdoor" triggering when using "Backdoor"?
If I use the "Frontdoor", everything except "Problem1" is working as it should.
However, when I use the "Backdoor", the event simply does not trigger ... in spite of my having it implemented pretty much exactly like in the example.

Any help with this would be appreciated.

FL September 16th, 2012 9:42 AM

Essentials have Temporary Self-Switches, I didn't found about this on wikia, so I'm posting the old notes:


Originally Posted by Old notes
Temporary Self-Switches

Each event in the game comes with a set of temporary self switches. This set is cleared whenever a map is entered. To check whether a temporary self switch is on, use a switch named "s:tsOn?(X)" where X is one of "A", "B", "C", or "D". To check whether it's off, use a switch named s:tsOff?(X). To turn a temporary self switch on or off, use a Script event command like the following:


Temporary self switches are currently used in doors. They also have other uses where stand-alone stateful events are desired.

You can also access the regular Self Switch using the scripts 'pbSetSelfSwitch(event, switch,value)' and '$game_self_switches[[mapid,event,switch]]=value'. The last one needs '$game_map.need_refresh = true'

All times are UTC -8. The time now is 6:43 PM.

Like our Facebook Page Follow us on Twitter © 2002 - 2015 The PokéCommunity™,
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / Poké
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Use of PokéCommunity Assets