Hello!
I am in need of a plugin or script call that allows one to change an event's direction from another map. This is important because all of my NPCs have dialogue markers, including one that shows when a new line of dialogue is available, and NPCs dialogues can be affected by things you do in other maps, and I hate having to make extra events just to change the direction of the marker event upon entrance.
Thank you to whoever takes on this plugin, or lets me know of an appropriate script call~
By default only one map's data is loaded at a time. E.g. none of the events on map 1 actually exist while you're on map 2. That's why many event properties reset when you leave the map.
I don't know about plugins for this, but have you considered giving each NPC a different page for each dialogue marker? Then you could toggle their appearance from any map in the game just by meeting the appropriate page condition (switch, variable, item, etc).
Event direction is hardcoded data. You can't change it unless you're on that map when they're loaded onto the map scene. You would have to either have the different directions be on different pages then switch which page they're on from the other map, or queue up all your direction change commands in an array then execute all those commands in sequence when you enter that map.
Assign each npc a variable and set up a parallel run event that changes the direction the npc is facing based on the value of that variable. I think of condition branches like IF coding: if variable=1, make npc face up, else if variable=2, make npc face right, else if variable=3, make npc face down, else if variable=4, make npc face left. Run that for every npc on the map you want to change the direction of, then flip a designated switch to on (not a self switch) and give the direction changer event a second state that it’s in whenever that switch is on so it isn’t constantly forcing events to only face that direction. Finally, adjust every event that takes you to another map to first turn the direction changer event switch off. You can use the same switch for the direction changer event on every map.