Kaylee Krysteenah Fynch
is rarely here
- 302
- Posts
- 17
- Years
- Clear Island, Alacci
- Seen May 24, 2014
Okay, that was very nearly, almost what I needed, and it allowed me to figure out the rest. So for anyone else who needs to know, the exact code for setting the self-switch of another event is this:
pbSetSelfSwitch($game_map.events[X],
"Y",true)
Where X is the event number, and Y is the switch (A, B, C, or D).
Thanks though, Luka, for putting me on the right track.
EDIT: Nevermind... It gives no errors now, and doesn't stop me from moving (the way the original code given by Luka did), but it also doesn't seem to be changing the switch. You see, I'm using a switch to make a character appear while it is offscreen, before walking on, by having an event page with switches off, no graphics or code, and an event page with a sprite, but no code. Once it appears, the event will walk up to you, talk with you, and then walk away, and disappear again once it goes offscreen. All of this is controlled by a stationary, invisible event which the player steps on. But, like the double battles, the command does not seem to actually change the self switch. Does this mean I need to upgrade? Or is something else wrong?
pbSetSelfSwitch($game_map.events[X],
"Y",true)
Where X is the event number, and Y is the switch (A, B, C, or D).
Thanks though, Luka, for putting me on the right track.
EDIT: Nevermind... It gives no errors now, and doesn't stop me from moving (the way the original code given by Luka did), but it also doesn't seem to be changing the switch. You see, I'm using a switch to make a character appear while it is offscreen, before walking on, by having an event page with switches off, no graphics or code, and an event page with a sprite, but no code. Once it appears, the event will walk up to you, talk with you, and then walk away, and disappear again once it goes offscreen. All of this is controlled by a stationary, invisible event which the player steps on. But, like the double battles, the command does not seem to actually change the self switch. Does this mean I need to upgrade? Or is something else wrong?
Last edited: