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
959
Reaction score
504
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
959
Reaction score
504
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

Alberest so far, got a lot done but still ALOT left to do.
Wish I had a better means of taking screenshots...
Map is 148x98

concept: zombie slayer fest.

Lag because of outdated hardware.

Lots todo:
-Terrax lightning should have another step for the flashlight, between up down left right.
-Also Online mv from Nelderson should emit the flashlight from the other player.
-Animation needed for killing the zombie...
Before adding it to #crypchania.
Working on a case. Get all the evidence to prosecute some bad guys. :kaojoy:
But, the game development schedule delayed. :kaoswt2:
The moral of the story: No good deed goes unpunished... I guess...
Except that, nothing to see here. :kaoswt2:
just beat ff7 original for the first time since 2010. having played remake last year, I have a much better appreciation for the original oddly enough. I still like some of the character presentation in remake more, but the original's got a lot going for it.

Forum statistics

Threads
111,455
Messages
1,061,235
Members
144,826
Latest member
ziipan
Top