How to Suicide/Sacrifice Skill?

Status
Not open for further replies.

Luozcurator

Villager
Member
Joined
Jul 17, 2018
Messages
11
Reaction score
1
First Language
Spanish
Primarily Uses
RMMV
I want to add a skill that kills the user and/or a party member after using it to my game. And I don’t know how.

It’s mainly for enemies and I want them to show the common death animation instead of just disappearing.
I did search in the forum and found this thread, but most of the information is outdated or seems more for VX Ace. If I’m wrong, please correct me.

Thanks for your time and attention!
 

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,523
Reaction score
1,415
First Language
English
Primarily Uses
RMMV
Does the skill deal damage to targets while killing the user, like the Final Fantasy "Bomb" enemies? If so, you can use something like this in the damage formula:

Code:
c = a.hp; a.addState(1); c
Note the important part here is a.addState(1) because state 1 is death.
 

Luozcurator

Villager
Member
Joined
Jul 17, 2018
Messages
11
Reaction score
1
First Language
Spanish
Primarily Uses
RMMV
Does the skill deal damage to targets while killing the user, like the Final Fantasy "Bomb" enemies? If so, you can use something like this in the damage formula:

Code:
c = a.hp; a.addState(1); c
Note the important part here is a.addState(1) because state 1 is death.
Yes, some do. Others heal the rest of the party while killing the user, and some I want to do massive damage to the enemy but as cost kill a party member.

This formula might work, thanks!

Edit: It does work, but it doesn't show the enemies' death animation. And it makes it look akward in battle. I need a method that shows it.
 
Last edited:

Nemesis666

Veteran
Veteran
Joined
Sep 5, 2019
Messages
36
Reaction score
3
First Language
FR
Primarily Uses
RMMV
Excuse me to ask this question but, who is "c" ?
I know "a", I know "b", but... About "c" it's blurry xD ...

Is it all the enemy group ? All the party members ? Or maybe this letter doesnt exist :o ?
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,842
Reaction score
5,222
First Language
Dutch
Primarily Uses
RMXP

Nemesis666, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,017,004
Members
137,562
Latest member
tamedeathman
Top