ChaosGameMaker

Villager
Member
Joined
Apr 10, 2021
Messages
9
Reaction score
1
First Language
English
Primarily Uses
RMMZ
I am trying to set my damage formula for skills like the formulas for final fantasy 7:
(Spell power*22)+[(level+magic attack)*6]

But instead of spell power, I want to use the skills mastery level from yanfly skill mastery plug-in.

Not sure how to make it do.

Thank you
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
908
Reaction score
480
First Language
English
Primarily Uses
RMMV
From the Skill Mastery help file: a.skillMasteryLevel(skillId)
 

ChaosGameMaker

Villager
Member
Joined
Apr 10, 2021
Messages
9
Reaction score
1
First Language
English
Primarily Uses
RMMZ
Okay, I still dont think i understand how this functions.
Would i just substitute spellpower with a.skillMasteryLevel(skillId)?

[a.skillMasteryLevel(skillId)*22]+[(level+magic attack)*6]

in the damage formula window for the skill???
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
908
Reaction score
480
First Language
English
Primarily Uses
RMMV
Your syntax is...not right. If you read what I gave you that you pasted in, "skillId" doesn't mean anything, you need to type in the ID of the skill you're checking the level of.

Additionally, this is game code, just typing the words "level" and "magic attack" doesn't mean anything.

Additionally additionally, you can't use braces in your damage formula - this isn't math, it's code.

Additionally additionally additionally, your formula currently doesn't take into account any stats from the target defending against the attack, which is almost certainly not what you want.

You should look at and read the example formula provided in the editor, and then read how damage formulae work before making up your own. Here's a good thread:
 

ChaosGameMaker

Villager
Member
Joined
Apr 10, 2021
Messages
9
Reaction score
1
First Language
English
Primarily Uses
RMMZ
Thank you, The guidance is very much appreciated.
 

Latest Threads

Latest Profile Posts

Happy Mother's Day to all the moms :)
Create Anime Art w/ AI, Tall Sprites with Aurora, Customize Variable Display | RPG Maker News #34

[My favorite slow moving track I've made so far]
dd_airport2.jpgdd_combat.jpg
dd_town.jpg
I did an experiment to try to solve the art style problem between RTP and 3D models.
But, it feels this grimdark world is going to end even faster. :kaoswt2:
Solovei wrote on caethyril's profile.
Hi, just wanted to say, thank you for helping me fix that event with the step count! I followed your example exactly and it works now:kaojoy:

Forum statistics

Threads
111,192
Messages
1,059,145
Members
144,437
Latest member
foxiee05
Top