I have a map (id: 14), and on that map I have two events. Event 1 is a button, and Event 2 is just an image of an NPC. Event 2 also has a 2nd page, with an Egg for a graphic and the condition is Self Switch A is on. Both pages on Event 2 are set to Parallel (although I have also tried this via Autorun as well).
In event 1 I have the following script call:
Script: $gameSelfSwitches.setValue([14, 2, 0], true);
In theory this should set the self switch A in the Event 2 to On, and event page 2 should become active, thus making it appear as if the NPC has been turned into an Egg. However, upon running this, it does not do this at all. In the chrome debugger, I can call $gameSelfSwitches.value([14, 2, 0]) and it does return true appropriately. However, Event 2 never changes to reflect the change to it's self switch.
I'm assuming self switch A on that event is 0, but I have no proof nor evidence that this is the case. I have tried everywhere from 0 up to 6, and the results are the same.
Can anyone help me out with this? In theory, it should be really super easy. I'm using this for a cutscene, where an NPC gets turned into an egg. If I do this with just regular switches, it works, but I was hoping I could use this method to use an events self switch, thus saving global switches for global things...
In event 1 I have the following script call:
Script: $gameSelfSwitches.setValue([14, 2, 0], true);
In theory this should set the self switch A in the Event 2 to On, and event page 2 should become active, thus making it appear as if the NPC has been turned into an Egg. However, upon running this, it does not do this at all. In the chrome debugger, I can call $gameSelfSwitches.value([14, 2, 0]) and it does return true appropriately. However, Event 2 never changes to reflect the change to it's self switch.
I'm assuming self switch A on that event is 0, but I have no proof nor evidence that this is the case. I have tried everywhere from 0 up to 6, and the results are the same.
Can anyone help me out with this? In theory, it should be really super easy. I'm using this for a cutscene, where an NPC gets turned into an egg. If I do this with just regular switches, it works, but I was hoping I could use this method to use an events self switch, thus saving global switches for global things...