RMMV Skill that deals more damage with every dead member

garret95

Pokémon Breeder
Member
Joined
Mar 15, 2017
Messages
17
Reaction score
4
First Language
Spanish
Primarily Uses
RMMV
Hi, I've had this idea for a skill in which the user deals more damage with each ally that currently has the death state.
I guess I could somehow go one by one in the damage formula, but there's probably a better way to do it in the skill notebox.

I have quite a few Yanfly plugins so feel free to suggest any solution related to them if needed.

Thanks in advance!
 
Joined
May 18, 2018
Messages
30
Reaction score
17
First Language
English
Primarily Uses
RMVXA
This sounds cool! I'm only just starting to learn these parts myself too, so I can't give any solutions, but I'd like to hear how to do it and get notifications from this thread when they appear. I'm also interested to hear any other innovative ways of developing skills like this. I just made one with the 'Critical Evasion' state that isn't used often, now I just need to make an enemy who this can apply to!
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
2,768
Reaction score
2,118
First Language
EN
Primarily Uses
RMMZ
You could try something like this for your skill formula:
JavaScript:
(a.atk + 10) * a.friendsUnit().deadMembers().length
I.e. "(normal damage formula) times the number of dead members in the user's friendly unit".
 
Joined
May 18, 2018
Messages
30
Reaction score
17
First Language
English
Primarily Uses
RMVXA
You could try something like this for your skill formula:
JavaScript:
(a.atk + 10) * a.friendsUnit().deadMembers().length
I.e. "(normal damage formula) times the number of dead members in the user's friendly unit".
This is neat. Is it something you think would work best to cast in battle using magic, or is there a way you can automatically apply this effect when your allies die?
 
Last edited:

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
2,768
Reaction score
2,118
First Language
EN
Primarily Uses
RMMZ
This is neat. Is it something you think would work best to add in battle, or is there a way you can automatically apply this effect when your allies die?
I'm not sure what you mean? :kaoswt:

What I suggested is a skill formula: you can use it in the formula box on a skill's page in the database, no plugins necessary. The formula is evaluated for each target when the skill is used, so you shouldn't need to add anything else~
 

garret95

Pokémon Breeder
Member
Joined
Mar 15, 2017
Messages
17
Reaction score
4
First Language
Spanish
Primarily Uses
RMMV
Thanks caethyril, I'll copy the formula and give it a try! I'll tell you the results later.

Edit: It works like a charm! I've tweaked it a bit though to make it more cohesive with how my game operates (It needs to deal damage even if no one is dead).

JavaScript:
(a.mat * 4) + ((a.mat * 2) * a.friendsUnit().deadMembers().length) - b.mdf * 2

At last I've finished all of my demon/soul magic skills, thank you one last time!
 
Last edited:

Latest Threads

Latest Profile Posts

Still alive! Totally did not finish in time for the Jam (boy that's late) but tl;dr of the last half a year is Work term -> Covid Lockdown -> Sick... again -> Full time Employment. Game stuff has been on hiatus but got a new graphics tablet so hopefully updates again soon. =D
Going on hiatus. Won't be back until mid October.:LZSoops:
Just read the English lyrics for Despacito. Ramen aint innocent no more! :kaodes:
Well today was blown away with nothing to show for it. I made a new character to my game who I was going to have a protection mechanic where he protects my main character randomly unless it's a critical, and no matter what, to check if an attack received will be critical, means checking the apply method. This means rewriting the entire method and I refused to do that.

Forum statistics

Threads
115,316
Messages
1,088,882
Members
149,961
Latest member
MrSunshine
Top