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,159
Reaction score
634
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,159
Reaction score
634
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 Posts

Latest Profile Posts

I've been in Fort Myers since Thursday night. I'm going home tomorrow or the next day... lol, I desperately need a good taste of homemade Japanese food. I might not be Japanese or even Asian (I'm American born and raised), but I absolutely love authentic Japanese cooking. Restaurant food doesn't do it justice.
Haven't been working on any of my projects or resources lately as I'll soon be moving to a new apartment. It's been a stressful move but I'm really looking forward to it.
//Sees it's the same price at Best Buy for a new SSD as Amazon
//Sees it's 103F outside and Best Buy is half a hour of driving.
//Orders from Amazon.
I'll wait the 2-3 days. :LZSwink:
Just a little teaser screenshot of Mountain Village...

Screenshot (364).png

Forum statistics

Threads
112,373
Messages
1,067,867
Members
146,025
Latest member
urmomsbigbazoongas
Top