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
1,134
Reaction score
617
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
1,134
Reaction score
617
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

Finally working actively on Tundra! I'd like to share my wife's WIP art for the starting map and a rough draft of one of the later characters, Katrina. She's very eager to hear any feedback you might have!1623790662347.png
Got my first vax today, arm is a bit numb, but nothing odd so far. :kaopride:
dYOm9IY.jpg
image_2021-06-15_212613.png
Looks a bit.....kid friendly. Then again, I suppose that does with with a lot of retro themes... Crap, already spotted a flaw xD
What a stupid week so far! I was really short on sleep yesterday thanks to my back hurting and not falling asleep fast enough, now today I am 2 hours late for work because my damn alarm clock changed from the alarm setting, to the radio setting which I always keep muted.
I introduced "booby trap" as another indirect way to fight supernatural threats in the game.
But, some of my players are using it to blow up random citizens on the street.
Not sure how "creative" they can go with it. :kaojoy:

Forum statistics

Threads
112,263
Messages
1,066,918
Members
145,878
Latest member
UnitedStars111
Top