MZ VS Field Skills only working if used on events in numerical order

I've seemingly got only semi-functioning field skills. They work perfectly but only if the events are triggered in numerical order (in this case, lighting torches with "Fire"), otherwise I get a softlock (character frozen because the Autorun event cannot process properly) I've tested up to three fires and it's undoubtedly due to the event order. So if I have events 015, 025, 026, they have to be triggered in that order. Any other ordering causes the softlock.

I think I'm possibly fundamentally misusing the plugin, or missing a simpler utilisation of the plugin. If there's a fix for this/something I've overlooked that would be great, but if your first thought is "why don't you just do it like this instead" then please enlighten me!

Here's the breakdown for how I'm approaching this particular example:


INTENDED GOAL: Use "Fire" as a field skill to light torches on the map, in any order. Fire cannot be used unless stood next to something that can be lit (to avoid wasted MP using it in a senseless location, as I'm not sure how to prevent this otherwise). "Fire" field skill disabled for further use on that tile since the torch is already lit.

IMPLEMENTATION:
  1. Allow "Fire" Field Skill when stood on Region ID 11.
  2. When "Fire" is used, triggers common event 11, which just turns on Switch 12: Field FIRE: USE
  3. Event under player (on region 11) triggered under conditions; Switch 12: ON and Player X/Y coordinates match the current tile.
  4. Custom Event plays - in this case, turns Switch 63/64/65 ON (enabling nearby corresponding fire events) +small animations/effects/textbox.
  5. Conclude the event by turning off Switch 12: Field FIRE: USE and changing the region ID of the tile to 0 with the REDSetRegionID plugin: $gameMap.setTileId(x, y, 0) This is to prevent Fire being used repeatedly on this tile when the torch is already lit.
Spoiler: Setup Screenshots
Setup.png




Screenshot 2025-10-26 090714.png




Screenshot 2025-10-26 091021.png




Screenshot 2025-10-26 091042.png


RESULT:

Spoiler: Video result


Softlocks any time a torch is lit "out of order", though I would like them to be able to be lit in any order. Funnily enough, this seems to persist/cause errors across other maps too. When I lit one torch in this map and left to light another in a different room/map, I got partial animations to play but it was glitchy (incorrect, characters moving too much etc). I think there's something fundamentally wrong with how I'm approaching this. I've only gone into detail on what's happening on this map because it might be enough to diagnose the issue but if more details would help I will provide them.

EXTRA NOTES: This issue doesn't occur when the events are set to Parallel instead of Autorun, but that has its own drawbacks so I've had to reject that solution.
I've tried removing lines from the events to see if anything in particular is responsible, but I've stripped event 25 down to nothing but just playing a noise under the conditions and it still softlocks. So the event is just failing to trigger properly altogether.


Any help would be greatly appreciated!




EDIT: Plugin list order:
Spoiler: Plugin List
Screenshot 2025-10-26 093220.png
ok first of all, kudos for actually making a video for it.

Secondly, it seems to me you're doing everything right so you need to submit a bug report
I just quickly checked that, and don't have motivation to think how to make it more fluid, but isn't the problem that you don't have an else branch in your event? It's on autorun and if the condition isn't met (player is on wrong tile) none of the code runs, but the autorun event keeps running forever, soft-locking you. So I guess turn the switch OFF at the (first) conditional with else branch.

EDIT: Or actually not at the conditional, just at the end of the event
can you show screenshots of the other two events?

are they all with the same switch condition, and all autorun?

because only one autorun can be active at any given time, the rest wait until that one is handled.
and events are handled in ID order...
Oh the softlock was because of the autorun, not the actions
Oh the softlock was because of the autorun, not the actions
Auto run removes the players ability to control the characters. Until the Auto Run is turned off, you cannot control anything as the player. So you have to switch it off when done using it, and use parallels if you want the player to still be able to move around and do things.
Thank you so much for being so speedy, gang!

can you show screenshots of the other two events?

are they all with the same switch condition, and all autorun?

because only one autorun can be active at any given time, the rest wait until that one is handled.
and events are handled in ID order...

I'll get a screenshot if you still need it but I think you're on the money. Yes, they're all the same Switch condition and on autorun, and the events running in ID order sounds like it explains what's happening.

@rpgLord69 I've tried creating Else branches and if I put nothing in the branch, it still softlocks. Turning the switch off in the else branch fixes the softlock, but doesn't allow me to light torches in any order, because if I try to light the second torch, Event 15 is turning off the switch before event 25 can process!


I may have to rethink my approach, but this has solved the mystery of what's happening and taught me a valuable lesson about autorunning events (and the fact events process in numerical order, I didn't know this)!
Ah yeah, the problem is also if you're using the same switch for them and try to do it like I said, the autorun for the lowest id runs first (like said above), but then if you turn the switch off the others won't run.
I wonder if this is overkill but perhaps I could simply have a separate switch for every fire event in my entire game (I doubt it would go over 30 or so) and simply have the common event switch them ALL on at every event, and switch them all back off after.

Seems hilariously over the top but perhaps that'll work.
Hmmm, can't you put the coordinate check in the field skill common event and then get location info event id and script to turn self switches ON? Do you need two events for the torches?

EDIT: or just check player position as that's option EDIT2: though if you use 1 event there, you'll need to locate it 2 up if you wanna change it to a flame graphic page
Hmmm, can't you put the coordinate check in the field skill common event and then get location info event id and script to turn self switches ON? Do you need two events for the torches?

YES, we got it!

I'm using 2 events because only one party member (Dario) can use fire, so I'm having the separate event for him to be the one to visibly cast the spell, and the other for the fire itself! (Ideally I'd like to figure out how to automagically swap the party leader for the person currently using a skill and then just animate them as 'player' directly, so anyone with Fire could do this. But that's a troubleshoot for another day)


I'm returning the position of the player and checking against Region ID 11. I might like to add another check to see what map you're on, because if I happen to have another instance of Region 11 at coordinates 10,25 in two maps simultaneously I'm not sure what'd happen. But I'm not quite sure how to check for that, but I could just use different Region IDs for the Fire spell on different maps. That would solve it too.

But otherwise, with this it works!
Screenshot 2025-10-26 104228.png
an alternative would have been to use parallel process instead of autorun, those are processed differently and can work several at the same time.

But checking the player position is probably the better way here - either by region ID like you did, or by coordinates XY if there are many possible fires.
Or calculate the facing next position and use get location info for the ID of the event the player stands in front of, and use script with the event ID variable instead of listing numbers like you did above.
an alternative would have been to use parallel process instead of autorun, those are processed differently and can work several at the same time.

But checking the player position is probably the better way here - either by region ID like you did, or by coordinates XY if there are many possible fires.

I considered this, but not sure Parallel is suitable long-term since I will almost certainly be using these events in the future to animate and move the player (like for a wind-elemental jump spell, for instance), and so being able to freely move during the event would be an issue!

Ah, I may be able to trim the conditions down now that you mention it, since the region ID is just there to enable the spell to be used as a field skill, but that doesn't necessarily mean it needs to be in the conditions as well.
EDIT: Yeah, I removed the RegionID condition and it's still working the same! Nice.


Or calculate the facing next position and use get location info for the ID of the event the player stands in front of, and use script with the event ID variable instead of listing numbers like you did above.

This process would be new to me so I might just give this a try anyway to figure it out! Always learning! Thanks for the suggestion!



EDIT:

Spoiler: Eventing Screenshot
Screenshot 2025-10-26 122728.png
Screenshot 2025-10-26 122743.png


@Andar I haven't fully tested but just wanted to know if this is sorta what you meant, or if I'm completely off.
This one's checking Region ID because I had a thought, but I think I'm wrong and will try Event IDs instead, but is the setup to check the tile the player's facing correct/what you meant?
yes

and when asking for event ID, it gets the ID of the first (or only) event on that tile, or zero if there is no event there.

Temporary and short parallels are usually no problem for modern computers.
the origins of the advice against too many parallels was constantly running and complex or badly programmed parallels.

the only thing you would have to make sure when using parallels is that there is a way to switch them off even if the player was standing in the wrong place when using fire.

but that is more an FYI, with the common event handling the identifying of the target events there is no need for any parallel or autorun on the events.
Gotcha! Thanks so much for the help!

Original thread: https://forums.rpgmakerweb.com/threads/vs-field-skills-only-working-if-used-on-events-in-numerical-order.180714/