I'd like to call a Common Event when the fight ends in victory: preferably, when the battle screen has actually cleared and you're back on the map. The Common Event will do a number of things in different circumstances but mostly, it will restore the whole party and reset numerous variables used with fights.
I tried to do this myself, in my infantile-to-nonexistent scripting abilities, by going to Scene_Battle1, Battle Ends, and around line 150 or so right below Scene.Map.new, placing: "$game_temp.common_event_id = [50]"
This causes my game to give the following error after fights:
Script 'Interpreter 1' line 72: NoMethodError occurred.
undefined method '>' for [50]:Array
I tried using a neat script I found at http://rmrk.net/index.php?topic=41716.0 -- but it's for RMVX, and it causes an error when I start the game related to class Scene_Base.
I will accept pretty much any solution, a keenly directed "Here's where you can put it in yourself", "Here's how to make what you're already doing not crash", or a script that does this, a link to a script that does this already, or whatever. Thanks for the assistance.
I tried to do this myself, in my infantile-to-nonexistent scripting abilities, by going to Scene_Battle1, Battle Ends, and around line 150 or so right below Scene.Map.new, placing: "$game_temp.common_event_id = [50]"
This causes my game to give the following error after fights:
Script 'Interpreter 1' line 72: NoMethodError occurred.
undefined method '>' for [50]:Array
I tried using a neat script I found at http://rmrk.net/index.php?topic=41716.0 -- but it's for RMVX, and it causes an error when I start the game related to class Scene_Base.
I will accept pretty much any solution, a keenly directed "Here's where you can put it in yourself", "Here's how to make what you're already doing not crash", or a script that does this, a link to a script that does this already, or whatever. Thanks for the assistance.