- Joined
- Mar 28, 2014
- Messages
- 78
- Reaction score
- 5
- First Language
- English
- Primarily Uses
- RMMV
Issue:
When using "Call Script" from within a "Set Move Route" or "Custom Move Route" function in an Event, Self Switches cannot be manipulated.
Ordinarily, to set an event's self switch "A" to true using the scripting language, you use the following code:
$game_self_switches[[@map_id, @event_id, "A"]] = trueIn the aforementioned case, this script is not called.
Example:
Upon interacting with an Event, there is a chance for it to become a treasure that's available for a limited time. If the player uses the Action button with the treasure in the given time, he receives the treasure. Otherwise, the treasure reverts to its previous Event state.
In theory, by using the Custom Move Route for the treasure event, the event can be set to wait a certain number of frames in its route before turning its Self Switch "A" off.
When using "Call Script" from within a "Set Move Route" or "Custom Move Route" function in an Event, Self Switches cannot be manipulated.
Ordinarily, to set an event's self switch "A" to true using the scripting language, you use the following code:
$game_self_switches[[@map_id, @event_id, "A"]] = trueIn the aforementioned case, this script is not called.
Example:
Upon interacting with an Event, there is a chance for it to become a treasure that's available for a limited time. If the player uses the Action button with the treasure in the given time, he receives the treasure. Otherwise, the treasure reverts to its previous Event state.
In theory, by using the Custom Move Route for the treasure event, the event can be set to wait a certain number of frames in its route before turning its Self Switch "A" off.
Last edited by a moderator:
