- Joined
- Mar 24, 2023
- Messages
- 59
- Reaction score
- 26
- First Language
- Deutsch/German
- Primarily Uses
- RMMV
Hey
I started RPG maker (MV) recently and now I'm trying to learn more about plugins and Javascript.
So I tried to vary, how the HP in YEP base parameter control plugin works.
Original line:
(base + plus) * paramRate * buffRate + flat
My try:
Somehow my HP always turn to 1 after changing that. When i increased variable 12 and refreshed map, my hp didn't increase. So I'm doing something wrong, but I can't find out what exactly.
Would appreciate a bit of help.
I started RPG maker (MV) recently and now I'm trying to learn more about plugins and Javascript.
So I tried to vary, how the HP in YEP base parameter control plugin works.
Original line:
(base + plus) * paramRate * buffRate + flat
My try:
Code:
(base + plus + user.isActor() ? ($gameVariables.value(12) : 0)) * paramRate * buffRate + flat
Somehow my HP always turn to 1 after changing that. When i increased variable 12 and refreshed map, my hp didn't increase. So I'm doing something wrong, but I can't find out what exactly.
Would appreciate a bit of help.
Hey,
this thread is a bit older, but is close to the question I have, so i though I would try my luck here.
I also wanted to alter the formula in Yep Base Parameter Control, in my case to :
(base + plus + user.isActor() ? (gameVariables.value(12) : 0) ) * paramRate * buffRate + flat
what i though it would do is:
1. check if user is actor
2.a when yes, add var(12)
2.b when no, add 0
but it doesent work, any idea what I'm doing wrong with it?
Last edited: