- Joined
- Jan 26, 2014
- Messages
- 1,281
- Reaction score
- 106
- First Language
- Irish
- Primarily Uses
- N/A
I was trying to access the self switch via a script code and here's how I did it:
$gameSelfSwitches.setValue([1, 7, 1], true);[1, 7, 1] is my mapID, eventID, and self switchID.
Now here's my problem.
I have an event where I have two pages. The first one is the main page and the second page would only work if self switch A is activated. So I am trying to access the selfSwitch of this event on an another event, where in the script command I placed that code above.
It should be able to turn on Self Switch A of this event so automatically it goes away as it is being erased. Where did I went wrong?
Also, I would like to ask if this code is placed on game_event, how would I know the current map's id where the player is in?
$gameSelfSwitches.setValue([1, 7, 1], true);[1, 7, 1] is my mapID, eventID, and self switchID.
Now here's my problem.
I have an event where I have two pages. The first one is the main page and the second page would only work if self switch A is activated. So I am trying to access the selfSwitch of this event on an another event, where in the script command I placed that code above.
It should be able to turn on Self Switch A of this event so automatically it goes away as it is being erased. Where did I went wrong?
Also, I would like to ask if this code is placed on game_event, how would I know the current map's id where the player is in?

