Setting an actor's EX-Paramater with a formula

pkdarmstrong

Villager
Member
Joined
Feb 19, 2015
Messages
27
Reaction score
1
First Language
English
Good evening,

In terms of writing a damage formula, how do you set the value of an EX-Parameter, if at all possible? I am looking to change an xparam value of an actor to be inversely proportionate to their HP (in this case, CRI) when a status effect is active, and I can't seem to find a JavaScript code to set the equal to a formula.

I'm looking to do something like this:
user.cri = (1 / (user.hp/user.mhp))
**I know this is not proper JavaScript, but just to give you an idea of what I'm looking for.

I am currently using YEP.50 - Buff and States Core, YEP.69 - Extra Parameter Formulas, and YEP.12 - Auto Passive States.

Thank you for your time.
 
Last edited:

pkdarmstrong

Villager
Member
Joined
Feb 19, 2015
Messages
27
Reaction score
1
First Language
English
I will have to edit my original post, my apologies for not being specific.

I'm looking for a way to change X-Params through the use of a formula that is through a passive state that is applied. So the conditions would be that if passive state X is applied to the actor, then they would have their X-Param (in this case, CRI) set equal to a damage formula.

This is what I have so far in the State notebox:

<Custom Action Start Effect>
if (user.result().isStateAdded(4)) {
var user = $gameActors.actor(actorId);
user.cri = (user.hp/user.mhp)
}
</Custom Action Start Effect>

The underlined section is what I'm looking to replace with a formula. I do not believe user.cri can be set with a '=' operator.
 

Guanto

Auteur
Veteran
Joined
Jul 18, 2018
Messages
111
Reaction score
10
First Language
English
Primarily Uses
RMMV
Did you ever figure this out OP?
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top