RMMV Adding Turns Yanfly States/Buffs With Formula?

Bagy

Warper
Member
Joined
Jul 26, 2021
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
I would like my skill to do the equivalent of:

<State MyState Turns: +x>

where x = a.mat * 4 - b.mdf + b.luk

I'm simply confused about the exact syntax after reading about all the different note tags 100 times.

Do I want to use <Custom State name Turn> or <Custom Apply Effect>?

I have seen a few different methods of referencing the caster and target in various Tips & Tricks examples. Which ones do I need in this case?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,394
Reaction score
15,206
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Support. Thank you.

 

Bagy

Warper
Member
Joined
Jul 26, 2021
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
Solved it. Turns out the reason none of my previous attempts were working was down to a missing "s" typo in the documentation, as mentioned in this thread.

In case anyone else is looking to do this, the solution for the example in the OP was just:

<Custom State MyState Turns> turn += a.mat * 4 - b.mdf + b.luk; </Custom State MyState Turns>

If you paste that in your skill notetag, it will add turns to the state based on the results in the formula.

Again, be careful when copying from Yanfly's documentation here, as it incorrectly states <Custom State X Turn> with a singular "turn". You need to use plural <Custom State X Turns> or it won't work.
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

Is it weird that i feel overwhelmed from reading codes that i wrote few months ago? Lol.

I dont even know where to continue!:hsad:
Ami
Gosh,I want to Play this Game Again one more again!

Seeing my Own Character & Kannono Once Again!
Tales_of_the_World_Radiant_Mythology_3_JPN_PSP-Coverart.jpg
I've been a bit to depressed to get work done on the game lately. Don't worry, I'll be okay.
LunarFlareStudios wrote on Solar_Flare's profile.
Hey, my name is Lunar Flare Studios, and you're Solar Flare? That's so weird!

Forum statistics

Threads
115,303
Messages
1,088,765
Members
149,943
Latest member
Chymora
Top