Grumphlu

Veteran
Veteran
Joined
Mar 25, 2015
Messages
34
Reaction score
8
First Language
Français
Primarily Uses
Hi Everyone,

I would like to make a skill that increase the damage depending on how many allies are dead in the party.
I am realy not good at formules and i tried to look if there is a possibility to count how many allies are dead, but i didn't found.

Is there a formule or a way with Yanfly sequences to make my skill possible ?

Thanks in advance
 

HumanNinjaToo

The Cheerful Pessimist
Veteran
Joined
Apr 18, 2013
Messages
1,226
Reaction score
606
First Language
English
Primarily Uses
RMMV
With javascript knowledge, using Lunatic code for Yanfly, you could probably check if an actor ID is affected by death state, if yes then add to a variable; and then use the variable in a damage formula. I think it's definitely possible, I'm just not proficient with javascript… so I can't really help there, sorry.

Maybe in a damage formula you could check if an actor has death by:

$gameActor.actors()[actorIndex].isDeathStateAffected();
 

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,761
Reaction score
1,684
First Language
English
Primarily Uses
RMMV
For a skill that deals 100 damage, plus 50 per dead member:

Code:
100 + 50 * $gameParty.deadMembers().length
 

Grumphlu

Veteran
Veteran
Joined
Mar 25, 2015
Messages
34
Reaction score
8
First Language
Français
Primarily Uses
For a skill that deals 100 damage, plus 50 per dead member:

Code:
100 + 50 * $gameParty.deadMembers().length

Thank you so Much @Aesica, it work like a charm, it will be realy great for my necromancer that can sacrifice his allies then deal great damage with this skill :)

Thanks for both answering that fast,
Have a great day !
 

Latest Threads

Latest Profile Posts

100 degrees here (38 degrees C) god I need ac
I wish I can work faster on my game. But I don't want to get burned out. :(
I've been working on something on and off for a few years now, and I've been reluctant to share any details on the project before I had anything playable because I did not want to generate hype only for the project to go back on hiatus. That being said I believe what I'm working on is very unique and pushes the boundaries of what RPG Maker projects can be. Bold claims, I know but just wait.
Happy Mother's Day to all the moms :)
Create Anime Art w/ AI, Tall Sprites with Aurora, Customize Variable Display | RPG Maker News #34

Forum statistics

Threads
111,207
Messages
1,059,265
Members
144,461
Latest member
Rookie
Top