- Joined
- Sep 2, 2015
- Messages
- 340
- Reaction score
- 589
- First Language
- English
- Primarily Uses
- N/A
I'm using Yanfly's Base Parameters Control and for some reason things are going wrong and I need to understand what because this is a big part of how sweeping love decides certain stats.
Okay let's say a characters base stats are 25 HP and they gain a small portion of their ATK, DEF, and AGI into their HP. I wanted to tell the game that 33% (for testing reasons, not the final number) of each of those stats goes into HP. so if each of those was 3 the player would have 28 HP.
Okay so I tried this:
((atk * 0.33) + (def * 0.33) + (agi * 0.33) + base + plus) * paramRate * buffRate + flat
and this
(atk * 0.33) + (def * 0.33) + (agi * 0.33) + (base + plus) * paramRate * buffRate + flat
and for MP this.
((mat * 0.33) + (mdf * 0.33) + (luk * 0.33) + base + plus) * paramRate * buffRate + flat
and for some reason it makes HP 1 and MP 0.
Shouldn't this logically make it so that the 33% of each of those stats is added into HP and MP along with the base number? I haven't even gotten to the part where I need to use Math.floor() to make it so they round to the lowest interger and I'm already messing up.
Sometimes I worry I'll never understand this stuff.
Okay let's say a characters base stats are 25 HP and they gain a small portion of their ATK, DEF, and AGI into their HP. I wanted to tell the game that 33% (for testing reasons, not the final number) of each of those stats goes into HP. so if each of those was 3 the player would have 28 HP.
Okay so I tried this:
((atk * 0.33) + (def * 0.33) + (agi * 0.33) + base + plus) * paramRate * buffRate + flat
and this
(atk * 0.33) + (def * 0.33) + (agi * 0.33) + (base + plus) * paramRate * buffRate + flat
and for MP this.
((mat * 0.33) + (mdf * 0.33) + (luk * 0.33) + base + plus) * paramRate * buffRate + flat
and for some reason it makes HP 1 and MP 0.
Shouldn't this logically make it so that the 33% of each of those stats is added into HP and MP along with the base number? I haven't even gotten to the part where I need to use Math.floor() to make it so they round to the lowest interger and I'm already messing up.
Sometimes I worry I'll never understand this stuff.