MOG_ChronoEngine - Changing character sprite mid-battle

Shadwmoses

Hoarder of Plugins
Member
Joined
Aug 15, 2019
Messages
8
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hello, I apologize if my questions get confusing to understand. I've tried to get to actors to change their sprite into a ghost sprite upon death (the sprites are all given the necessary action pose suffixes except the default "$hero01.png".)" in the ATB Chrono Battle mode while being affected by an Immortal State (to bypass gameover) but to no avail.

Is there any work around or method to change the sprite mid-battle? I've tried [Change Image] but it only works for a moment before it returns to default sprite poses. It also works once the battle is over, which defeats the purpose as the dead actor is removed post-battle. If there's any information needed to solve this, I'll try and provide it.
 

Restart

Veteran
Veteran
Joined
Mar 15, 2019
Messages
523
Reaction score
415
First Language
English
Primarily Uses
RMMV
not sure but try "this.setCharacterName()"
 

Shadwmoses

Hoarder of Plugins
Member
Joined
Aug 15, 2019
Messages
8
Reaction score
0
First Language
English
Primarily Uses
RMMV
Thanks for the response!

I'm still learning this stuff, so I apologize if my question is foolish: Is that a Scriptcall?

If it is, do I replace the CharacterName into the ghost sprite set's name?
(I named it $hero01dead with action suffix poses such as $hero01dead_damage)

I have a feeling I gave that set the wrong name. :hswt:
 

Restart

Veteran
Veteran
Joined
Mar 15, 2019
Messages
523
Reaction score
415
First Language
English
Primarily Uses
RMMV
yeah it's a script call. put it in as this.('$hero01dead') whenever you need it

alternatively you can patch in dead pose functionality, which mog has half-implemented but never put in.

Try adding these as a plugin at the end, see if it works.
Code:
//==============================
// * do we need a faint Pose
//==============================
Game_CharacterBase.prototype.isFaintPose = function() {
	
	 if (!this.hasNoFaintPose &&this.battler().actorId && this.battler().isDead()) {return true
	 }else{
		 if (this.battler().isDead())
		 {
			 this.hasNoFaintPose=true;
		 }
	 };
};


//==============================
// * set faint Pose
//==============================
Game_CharacterBase.prototype.setFaintPose = function() {
	 if (this.battlerPoses()) {
		 this._poses.idle[1] = this._poses.idle[2];
	     return this._originalName.name + "_death";
	 };
	 return "";
};
Note that this will require _death poses for your actors otherwise rmmv will do the standard 'I don't have this image' hissy fit.
 

Shadwmoses

Hoarder of Plugins
Member
Joined
Aug 15, 2019
Messages
8
Reaction score
0
First Language
English
Primarily Uses
RMMV
This works! Thank you so much for your help!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,078
Members
137,580
Latest member
Snavi
Top