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
404
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
404
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

Government : "Hehehe~ I will spread lies that the earth is round so that I could sell globes~"
Anyone here managed to never burn out on programming? My current limit is 3 months(6-8 hours per day, 7 days per week, 50 hour programming week on average), and then I just have to take a break, sometimes lasting few days(with at most 2 hours on programming per day). I've been always like this so far, so I admire those who can always be so passionate on programming :)

Forum statistics

Threads
99,658
Messages
967,759
Members
131,338
Latest member
Vattitheminish
Top