The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Reply
 
Thread Tools
  #1    
Old Posted September 15th, 2012 (04:32 AM).
Ryuufa
Beginning Trainer
 
Join Date: Sep 2012
Gender: Male
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...
(imageshack.us/a/img31/4619/eventoverview.png)

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" (imageshack.us/a/img204/3170/doorstopper.png)
"Frontdoor" (imageshack.us/a/img684/4747/frontdoor2.png)
"Backdoor" (imageshack.us/a/img32/4610/backdoor.png)

And I implemented them following the examples:
"Test Map 2, EV022" (imageshack.us/a/img42/5509/testmap2ev022.png)
"Test Map, EV026" (imageshack.us/a/img688/6379/testmapev0262.png)

(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.
Reply With Quote
  #2    
Old Posted September 16th, 2012 (09:42 AM).
FL's Avatar
FL
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Essentials have Temporary Self-Switches, I didn't found about this on wikia, so I'm posting the old notes:

Quote:
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:

setTempSwitchOn("A")
or:


setTempSwitchOff("A")
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'
__________________
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 11:03 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
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éCommunity.com.
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.