joket

Veteran
Veteran
Joined
Apr 24, 2021
Messages
119
Reaction score
19
First Language
English
Primarily Uses
RMMZ
Hello everyone I'm adding a passive state through YEP plugin. In the notes, I've added a flat atk bonus of +2.

1632591434985.png

But for lv 1 actor, it goes with: base class stat + that buffer. Let's say as example: 10 atk + 2 = 12 atk (lv1).
If the actor levels up, the formula grows on the class side (let's say at lv 100 it reaches 1000 Atk) --> 1000+2 = 1002 atk (lv100).


I'd like to adjust the buffer for Actor level, what do you suggest me to try out? Of course that example in the screen doesn't work:

1632590966285.png

This doesn't work out (it cancel the flat addition totally):
1632591381682.png
 
Last edited:

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
970
Reaction score
432
First Language
english
Primarily Uses
RMMV
try user.level
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,173
Reaction score
1,162
First Language
English
Primarily Uses
RMMV
When you're asking for help, it would be helpful to tell us what plugin is directly involved - I had to look 3 places to figure out this is a notetag from Yanfly's Base Parameter Control :stickytongue:

So as a general rule, you will be explicitly told when a field can accept JavaScript. However, in the FLAT section of the documentation, it references plugin parameter fields using "user," so it's worth trying Tiamat's answer.

Just as a side note, the "a." nomenclature is only used in damage formulae, and...well, I have no idea where you got ActorLevel from.
 

joket

Veteran
Veteran
Joined
Apr 24, 2021
Messages
119
Reaction score
19
First Language
English
Primarily Uses
RMMZ
You're right sorry for forgetting what plugin I'm using. However I thought it was just a Javascript term question, that's why I didn't specified in the message (however it is specified in the title: YEP passive state) :D
Anyway, unfortunately it doesn't work :(
1632597868894.png
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
970
Reaction score
432
First Language
english
Primarily Uses
RMMV
passive state is just how the state is being added and has nothing to do with the notetag on the state itself. the notetag having trouble with is from a completely different plugin which is why he had to search for it.
base parameter control link
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,173
Reaction score
1,162
First Language
English
Primarily Uses
RMMV
however it is specified in the title: YEP passive state
the notetag having trouble with is from a completely different plugin
I even said that in my post...
Anyway, unfortunately it doesn't work :(
Yeah, I'm not surprised. As I said, Yanfly is pretty good at saying clearly which fields can use JavaScript expressions. The flat rate is for, as it says, just a flat number.

Quasi's Param Plus plugin should be able to do what you want, his notetags say you can use JS expressions.
 

joket

Veteran
Veteran
Joined
Apr 24, 2021
Messages
119
Reaction score
19
First Language
English
Primarily Uses
RMMZ
I even said that in my post...

Yeah, I'm not surprised. As I said, Yanfly is pretty good at saying clearly which fields can use JavaScript expressions. The flat rate is for, as it says, just a flat number.

Quasi's Param Plus plugin should be able to do what you want, his notetags say you can use JS expressions.
Tried that Quasi's Param Plus, unfortunately it doesn't work..Am I making something wrong?

1632636664144.png (this is from actor notes)


(I'm using both YEP passive state and YEP Basic Param Control; tried Quasi Param Plus but none of them work)
 
Last edited:

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
970
Reaction score
432
First Language
english
Primarily Uses
RMMV
looking at quasi's link there it looks like that plugin should recognize a.level
(because 1 of his examples is <ratesFormula>cri: (a.agi / 5) / 100</ratesFormula>)

the user.level suggestion was because "code" on yanfly plugins usually doesnt recognize a. and b. with states but instead uses origin. user. and target.

edit:
<params>Param: Value</params>

Where param can be: MHP, MMP, ATK, DEF, MAT, MDF, AGI, LUK, any of the new Parameters included or any of the new Parameters that you create.
Value can be any number or even a formula. Can use a and v[] but not b!

so try
<params>DEF: 2*a.level</params>

and looks like it should only be 1 line in the notetags not 3 lines
 
Last edited:

joket

Veteran
Veteran
Joined
Apr 24, 2021
Messages
119
Reaction score
19
First Language
English
Primarily Uses
RMMZ
looking at quasi's link there it looks like that plugin should recognize a.level
(because 1 of his examples is <ratesFormula>cri: (a.agi / 5) / 100</ratesFormula>)

the user.level suggestion was because "code" on yanfly plugins usually doesnt recognize a. and b. with states but instead uses origin. user. and target.

edit:
<params>Param: Value</params>

Where param can be: MHP, MMP, ATK, DEF, MAT, MDF, AGI, LUK, any of the new Parameters included or any of the new Parameters that you create.
Value can be any number or even a formula. Can use a and v[] but not b!

so try
<params>DEF: 2*a.level</params>

and looks like it should only be 1 line in the notetags not 3 lines
Okay thank you! this way it works:
it now goes like
lv1 ATK 8 --> ATK 10 at lv 1 (8+2*a.level)
lv99 ATK 80 -> ATK 278 at lv 99 (80+2*99)

What if I'd like to mod multiple stats? es. double lines?
This both doesn't work:
1632645154126.png1632645299583.png

Should I code them differently?
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
970
Reaction score
432
First Language
english
Primarily Uses
RMMV
the link shows examples of 2 stats in 1 line.
try <params>ATK: 2*a.levelDEF: 2*a.level</params>
also ; is used for javascript code. this isnt code its just a predefined plugin notetag
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,173
Reaction score
1,162
First Language
English
Primarily Uses
RMMV
Tried that Quasi's Param Plus, unfortunately it doesn't work..Am I making something wrong?
What I'm seeing across your threads is you need to try to read the instructions more carefully. It's fine to ask for help when something isn't working right, but this is, like, three times now that your mistake is something that's included in the plugin documentation's examples.

Especially when you're getting into code/pseudo-code/notetags, read slowly and carefully because you have to write it exactly in the format the instructions say.
 

joket

Veteran
Veteran
Joined
Apr 24, 2021
Messages
119
Reaction score
19
First Language
English
Primarily Uses
RMMZ
You're right. It's just that....when you find multiple plugin answering differently the same problem, it's hard to focus (when you have short time to work on) on any given instruction. However I'll try to post less mindlessly. Sorry for that.
 

joket

Veteran
Veteran
Joined
Apr 24, 2021
Messages
119
Reaction score
19
First Language
English
Primarily Uses
RMMZ
the link shows examples of 2 stats in 1 line.
try <params>ATK: 2*a.levelDEF: 2*a.level</params>
also ; is used for javascript code. this isnt code its just a predefined plugin notetag
unfortunately it doesn't work that way

Ouch sorry for double posting, how can I erase the previous?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,173
Reaction score
1,162
First Language
English
Primarily Uses
RMMV
You're right. It's just that....when you find multiple plugin answering differently the same problem, it's hard to focus (when you have short time to work on) on any given instruction. However I'll try to post less mindlessly. Sorry for that.
I wasn't trying to make you feel bad and apologize, just give what I consider to be helpful advice - if you go a little more slowly and read the stuff more thoroughly, you'll probably have fewer things that don't work in the first place.

unfortunately it doesn't work that way
So...AGAIN...if you read the actual documentation for the plugin (not Tiamat's answer, which was well-intentioned, and not the forum post, which has typos), it wants a line break to separate multiple parameters.

So the help file says:
Code:
Example 1:
<params>
MHP: 100
ATK: 20
</params>
Would result in that state adding 100 to max hp and 20 to attack.
 

joket

Veteran
Veteran
Joined
Apr 24, 2021
Messages
119
Reaction score
19
First Language
English
Primarily Uses
RMMZ
Yeah Tiamat-86 told:
"and looks like it should only be 1 line in the notetags not 3 lines"

that's why I didn't listen to documentation. Sorry for the bad english

Tried your version, it works.
For anyone coming after this, this is the formula:


<params>

ATK: 2*a.level

DEF: 2*a.level

</params>

Thank you very much and sorry again!
 
Last edited:

Latest Threads

Latest Profile Posts

One uncomfortable truth that has withstood the test of time, is how most people will stand by while they see a crime happening, unless it's illegal to stand by. We probably wouldn't have stories about "special heroes" or games about heroes if the "everyday common folk" were largely capable of being heroes. Heroes face dangers that most people are not willing to.
I'm having toooo much fun designing the new MP (Mental Psyche) system. I've only worked it out for enemies so far, but it's fun to stun them, then go after their MP and delete them instead to farm for better item drops.
anyone know of a place I can promote my game? sorta like game awards but for indie devs, like a place where I can drop a trailer and like stir up some hype
Doing RPG Maker News for 17th October 2021

That moment when you came up with a very good game title, but when you searched it, it has already been used... T.T

Forum statistics

Threads
115,876
Messages
1,093,677
Members
151,123
Latest member
Smitty
Top