RPG Maker MV

RPG Maker MV

Slime absorb
I am trying to figure out how to have an attack that damages the enemy and heals yourself.
The program seems to not allow that easily... Does anyone know how to do this?
< >
Affichage des commentaires 1 à 4 sur 4
The easiest way is to make the skill trigger a common event, which will play after the damage is done. Make this common event trigger a new skill, a skill with the same formula, but make this skill target the user, and replace "HP damage" with "HP recover"

I realize you might have to take some extra steps to make the second skill be used by the right actor... I hope I've send you in the right direction. If you are still stuck, let me know.
Dernière modification de JohnDoeNews; 27 févr. 2020 à 5h33
If you want a "life steal" kinda attack you can simply change the skill's damage type from HP Damage to HP Drain. =D

Otherwise, another option is to use gainHp in your damage formula. Here's a couple of examples:
  1. a.gainHp(50); a.atk * 4 - b.def * 2
    Gives the skill user +50 HP, then returns "a.atk * 4 - b.def * 2" as the formula result.

  2. var r = a.atk * 2 - b.def; a.gainHp(r); 2 * r
    Calculates "a.atk * 2 - b.def" and stores that in a temporary variable, "r". The skill user gains +r HP, then the result of the formula is 2 times r. :lunar2020ratinablanket:
Hajami 27 févr. 2020 à 8h34 
Thank you for sharing Caethyril, this is very useful.
Caethyril a écrit :
If you want a "life steal" kinda attack you can simply change the skill's damage type from HP Damage to HP Drain. =D
Omg... I totally forgot about drain :p
< >
Affichage des commentaires 1 à 4 sur 4
Par page : 1530 50

Posté le 27 févr. 2020 à 5h18
Messages : 4