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
35
Reaction score
18
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,123
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
35
Reaction score
18
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,123
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

Just finished eventing a couple simple puzzles in RMMV, for my very first game "Sample Quest." Just messing around, throwing things together, and calling it a story XD On a non-RM note, got my hair cut today!
I feel the need to inform everyone on the forums NOT to go with Web Hosting Canada for your hosting needs. It is by far the worst customer service and just overall experience I have ever had with hosting and I am Canadian...
BCj
Got another eye surgery monday. Hope I'll recover quick and all's well. A bit tired of surgeries. On a happy note, working on the next chapter of Escalia so hope I can continue soon :)
Celebrating the arrival of autumn in the Northern Hemisphere :)

Forum statistics

Threads
115,366
Messages
1,089,303
Members
150,055
Latest member
Cthulhu95
Top