[RMMZ] CALLING ON A COMMON EVENT AFTER A FIGHT

Posts

Pages: 1
Hi !

All is said.
Do you have a solution to call a common event ID: x after a scripted or random fight ?

Thanks in advance
Marrend
Guardian of the Description Thread
21781
Like, a specific Common Event, or does the Common Event that is called is based on some other factor? If it's a specific Common Event, you can definitely call that Common Event after a scripted fight. In regards to calling one after a random fight (ie: one that's generated from the map properties), that would probably require a script/plug-in. One might exist already, but, I'm not particularly aware of what's available out there.

If the Common Event that is called is based on some other factor, that might take some research into how they are called to begin with. I'd start with looking at rmmz_objects.js, and doing a search on "common event" within the context of the `Game_Interpreter` class. Again, a script/plug-in for this might already exist?
You could have an auto run or parallel common event activated by a switch, and turn that switch on during the battle via a battle event - it will run when returning to the map in that case.

Otherwise plugin is the best route - $gameTemp.reserveCommonEvent(id) queues an event to run on return to the map.

(MZ is a queue, MV has only one reserved event that replaces any previous one, IIRC)
Pages: 1