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,771
Reaction score
2,122
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,771
Reaction score
2,122
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

Tiamat-86 wrote on ATT_Turan's profile.
apparently since its turning 15 years old this year the ps3 is considered "retro". now how old do you feel?
guess that means im an "antique" gamer since ill still play games as old as i am.
"you know your getting old when your childhood console changes ethnicity" lol it turned yellow
I'm making Toilet in Wonderland 2. and tell vinny about it lol
WE ARE THE BORG. YOUR BIOLOGICAL AND TECHNOLOGICAL DISTINCTIVENESS WILL BE ADDED TO OUR OWN. RESISTANCE IS FUTILE.
D2R save files are so broken. how was the beta test better then the full release. blizzard's last hope crashed and burned.
they're getting no more chances from me.

Forum statistics

Threads
115,338
Messages
1,089,140
Members
150,013
Latest member
keda27
Top