changing knockout/death

Joined
Jul 11, 2014
Messages
3
Reaction score
0
First Language
English
Primarily Uses
I wounder if anyone can help me with something.

i'm trying to make it so if a character is knocked out they are removed from the party. but if the main character is knocked out, you are teleported to town. I know (think) i can get a common event to do this, but i'm having trouble getting the common event to trigger before game over.

I've tried making a common event the runs parallel that says if actor 1 is knocked out, do this. I tried making a condition statement inside a troop event that said if actor 1 is knocked out call common event. neither of these have worked. any idea how to do this? 

thanks in advance
 

Heartbreak61

Wandering Noob
Veteran
Joined
Sep 5, 2012
Messages
187
Reaction score
90
First Language
Indonesian
Primarily Uses
RMMV
You can use this to transfer your player to certain map before game over. Maybe you can recover your party and transfer elsewhere, I don't know how it's work though.
Gameover Events
 
or use this snippet (select all the text, and save it as *.js file)

Code:
/*: * @plugindesc SSG Game Over Common Event *  * @help * * @param Common Event ID * @desc common event ID which you want to run before game over scene.  * Default value = 0 * @default 0 */ (function($) {// overwrite$.updateBattleEnd = function() {	var _params = $plugins.filter(function(plugin) {		return plugin.description.indexOf("SSG Game Over Common Event") != -1;	})[0].parameters;	var _id = Number(_params['Common Event ID']) || 0;	    if (this.isBattleTest()) {        AudioManager.stopBgm();        SceneManager.exit();    } else if ($gameParty.isAllDead()) {        if (this._canLose) {            $gameParty.reviveBattleMembers();            SceneManager.pop();        } else {			if (_id > 0) {				$gameParty.reviveBattleMembers();				$gameTemp.reserveCommonEvent(_id);				SceneManager.pop();			} else {				SceneManager.goto(Scene_Gameover);			}        }    } else {        SceneManager.pop();    }    this._phase = null;};})(BattleManager);
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

On my journey of character rework: I had this character, she was meant to be just a princess that joins your party. And at long term she was just uninteresting... So I tweaked her to be a rebel agaisn't the royalty before meeting up with the party.

Quick tip for any other ametuer pixel artists! When trying to create a colour palette, enabling Antialiasing can speed up the process of creating different shades! Just place your lightest colour and your darkest colour next to each other, select both pixels, and stretch it out!
Revolutionizing the JRPG Industry: Knocking on Doors.

Take that, murderhobos.
Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.

Forum statistics

Threads
106,054
Messages
1,018,580
Members
137,843
Latest member
Betwixt000
Top