hello
I'm using Yanflys Extra Param Formula Plugin and im having trouble using the "New JavaScript Functions".
I'm trying to add +1 to actor 3's HIT param
$gameActors.actor(3));
actor.setHitPlus(1)
^^i try to enter that into a script call and it doesnt work. I'm sure im doing something wrong. if someone could help me out it would be greatly appreciated!
thanks
Help with Yanflys Extra Param Formula Plugin
● ARCHIVED · READ-ONLY
-
-
A few things to keep in mind. setHitPlus doesn't add to the existing number; it changes it to that number. You likely want addHit instead.
Also, 1 equals 100% in this context. I'm not sure if that's how you want it done, but if you only want 1%, you want .01 instead.
Overall, the code is more like this:
$gameActors.actor(3).addHit(1);
I think it adds to the base value, not the plus value. Not sure if that matters to you or not. -
exactly! thank you so much