YEP EX Param - Using Variables in Notetags

udime123

Director of Fate
Veteran
Joined
Mar 29, 2018
Messages
98
Reaction score
14
First Language
English
Primarily Uses
RMMV
Hello!
So, I'm using Yanfly's EX Paramater Formula plugin because I want certain classes to use different stats to affect their EX Params, such as a Thief using AGI to affect EVA while a Mage would use MAT.

The page provides notetags you can add to Actors, Classes, and Equipment to manually adjust those EX Parameters, but while it's pretty straightforward using an Actor's stats for the formulas in the Plugin Menu, so far my tinkering with the notetags has been less fruitful.

Right now, I'm focusing on getting one character's Hit Rate to increase by his Luk stat without letting Luk affect Hit Rate in the base formula by putting the Notetag into their respective Class.
I was able to get the notetag to work using a flat number:
Code:
<hit Plus: +1%>
Needless to say, that worked without any issue, but just a flat number isn't what I'm looking for. So, next, I tried using user.luk:
Code:
<hit Plus: +user.luk%>
That did not affect the parameter. I tried some other syntax in hopes of that working as well.
Code:
<hit Plus: +a.luk%>
No dice, so I tried pulling from the actor's Luck directly in hopes that this would do the trick.
Code:
<hit Plus: +$gameActors.actor(13).param[7]%>
Unfortunately, this failed as well. Getting a little impatient, I decided to test if a simple formula would go through:
Code:
<hit Plus: 1+1%>
I was surprised to find not even that went through, though I wouldn't be surprised if it was due to my syntax being incorrect. I did test it with parentheses as well just to be sure, but to no avail.

Most of Yanfly's plugins allow for complicated formulas and variables to be applied, especially to notetags, so I have trouble believing this one just refuses to acknowledge anything outside flat numbers. That said, I know the plugin itself is functioning properly, as my first test of adding a flat +1 worked without issue. Does anyone know where I might be going wrong here?
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,118
Reaction score
1,526
First Language
EN
Primarily Uses
RMMZ
Most of Yanfly's plugins allow for complicated formulas and variables to be applied, especially to notetags, so I have trouble believing this one just refuses to acknowledge anything outside flat numbers. That said, I know the plugin itself is functioning properly, as my first test of adding a flat +1 worked without issue. Does anyone know where I might be going wrong here?
Unfortunately this plugin's notetags are parsed as numbers, not formulae. :(

One option, if this is supposed to apply only to a specific actor, may be to modify the plugin's HIT formula, e.g.
JavaScript:
(base + plus) * rate + flat + ((user.isActor() && user.actorId() === 1) ? user.luk : 0)
I.e. default formula plus "if user is an actor with actor ID 1 [change as needed], their LUK value, else 0". Haven't tested it, though, and if you want multiple sources of this sort of thing then it could quickly become messy. :kaoswt:

Otherwise you could try requesting an add-on or alternative plugin over on the Plugin Requests board~
 

udime123

Director of Fate
Veteran
Joined
Mar 29, 2018
Messages
98
Reaction score
14
First Language
English
Primarily Uses
RMMV
Unfortunately this plugin's notetags are parsed as numbers, not formulae. :(

One option, if this is supposed to apply only to a specific actor, may be to modify the plugin's HIT formula, e.g.
JavaScript:
(base + plus) * rate + flat + ((user.isActor() && user.actorId() === 1) ? user.luk : 0)
I.e. default formula plus "if user is an actor with actor ID 1 [change as needed], their LUK value, else 0". Haven't tested it, though, and if you want multiple sources of this sort of thing then it could quickly become messy. :kaoswt:

Otherwise you could try requesting an add-on or alternative plugin over on the Plugin Requests board~
Luckily, this is only for a specific actor so I did briefly consider altering the formula instead, but it just seemed like there would have been a more straightforward way to go about it! Thank you very much though, this should do the trick!

EDIT: So, I can't say I know why, but using this formula caused the stat to increase by the user's LUK multiplied by 100. It was a pretty easy fix, simply changing the value to (user.luk/100), but I wanted to point this out anyways just in case anyone plans on using this.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top