Situation: i have event A, B, C. Event A is a trigger, B and C are for character animation. So when player steps on A, it moves B and C. Then it changes their graphics to none (they leave the map). Then it self-switches off. And everything is fine, until i leave the map and enter it again, because despite even A not working as it should because of self-switch, events B and C return to their original positions. I cannot self-switch them off since self-switches can be only used if event were active one. I guess i could make a regular switch for that, but it's kinda annoying to do that for every event that should change it's position and not reverse. Maybe there are other methods for that?
Make events not reset when i re-enter the map
RPG Maker MV SupportHave events at the final location of B and C with an empty first page and a switch triger second page with the correct graphic. make sure original B and C have an enpty event page with no graphic with the same switch trigger.
When B and C reach their final destination, activate the corresponding switch and watch how Original B and C become invisible and the now stationary B and C "clones" will just stay there, whether or not you leave the map.
Alternatively, yanfly has a save event location plugin that could also be used.
When B and C reach their final destination, activate the corresponding switch and watch how Original B and C become invisible and the now stationary B and C "clones" will just stay there, whether or not you leave the map.
Alternatively, yanfly has a save event location plugin that could also be used.
You can actually toggle self switches of any event from any event with a script call
$gameSelfSwitches.setValue([mapId, eventID, 'A'], true)
As far as saving an event's location there are plugins for that
www.yanfly.moe
This has English instructions in the plugin file
$gameSelfSwitches.setValue([mapId, eventID, 'A'], true)
As far as saving an event's location there are plugins for that
Save Event Locations (YEP) - Yanfly.moe Wiki
This has English instructions in the plugin file
I kinda fail to understand "activate corresponding switch" part. You mean create a global switch? I mentioned that already, and wondered if there is another option.
Map id is map name? I am getting the "reference error - map027 is not defined"
Do not include leading zeros, whether it's for maps or switches.
mapId would just be the number 27. Don't use leading zeroes, it will make Javascript parse the number as octal instead of decimal and the value will be different if it's equal or greater than 8.
Original thread: https://forums.rpgmakerweb.com/threads/make-events-not-reset-when-i-re-enter-the-map.166367/