Hey all.
Curious if it's possible to use percentages as part of the stat boosts using the Lunatic stuff for the Equip Core. With the custom parameters, I've been trying to find a way to have the bonus get increased by a percentage (e.g. Base stat is 200, the Custom Parameter would give 20% of the base stat, meaning the actor would have 240 of that stat), to no avail.
If someone could help me, it'd be very much appreciated.
Percentage boosts are the default boosts in the database (under traits/features), that's why they don't need to be added by plugins/scripts
I unfortunately can't use that. The problem being is that I wish to attach the percentages to variables. So if say $gameVariables.value(17) is 20, and it affects HP, the Actor would get that 20% bonus.
EDIT:
I apologize I wasn't thorough in my description in the opening post.
Not sure if you can put float values into variables, but the best way to do that is with normal floats. Basically, 1 = 100%. 0.2 = 20%.
So for the stat, you would do stat = stat + (stat * 0.2). This would make the stat get set to 200 and would add on the additional 20%, which is 40 and would equal 240. Hope this helps at all.
Then I guess
mdf += mdf*$gameVariables.value(17)*0.01
doesn't work either.
Hmm... can you declare a new var in Lunatic mode?
If that's possible, couldn't you store the value of your mdf in it and use that on the right side?
With the help on Yanfly, I managed to get what I needed for a formula.
STAT = user.paramBase(ID) * ($gameVariables.value(ID) * 0.01)
Strangely enough, if I did STAT = user.paramBase(ID) + user.paramBase(ID) * ($gameVariables.value(ID) * 0.01) , it doubles your base stat and then adds the percentage based on the gamevariable value, even though it should be the more correct formula. Either way, this is solved.
Thank you.
a little late but what about
stat = stat * ((100+$gameVariables.value(ID)) * 0.01)