Driftwood Gaming
Knight
- Xy$
- 0.00
I need help with finding the code that returns the remaining HP and/or MP or an actor. Not the Max HP/MP, but the current remaining HP / MP.
user.param_base(0) = Max HP
user.param_base(1) = Max MP
user.param_base(2) = ATK
user.param_base(3) = DEF
user.param_base(4) = MAT
user.param_base(5) = AGI
user.param_base(6) = LUK
user.param_base(7) = ???
user.param_base( 8 ) = ???
user.param_base(9) = ???
user.param_base(10) = ???
If someone could correct me here, Id really appreciate it.
[doublepost=1446490425,1446484641][/doublepost]I've figured it out, but if anyone else was wondering (5) is MDF, (6) is AGI and (7) is LUK. The others are refferenced here:
https://books.google.com/books?id=Z2InCgAAQBAJ&pg=PA58&lpg=PA58&dq=rpg+maker+mv+code+that+returns+the+remaining+hp+of+the+user&source=bl&ots=0iSMu3MWrB&sig=5s8X_Y5IqtPVL1R5R3xs4E513gE&hl=en&sa=X&ved=0CCoQ6AEwAWoVChMIpYL_4KLyyAIVStZjCh1Hxg8H#v=onepage&q&f=false
and for calculating current hp remaining in the damage formula you use: a.hp
user.param_base(0) = Max HP
user.param_base(1) = Max MP
user.param_base(2) = ATK
user.param_base(3) = DEF
user.param_base(4) = MAT
user.param_base(5) = AGI
user.param_base(6) = LUK
user.param_base(7) = ???
user.param_base( 8 ) = ???
user.param_base(9) = ???
user.param_base(10) = ???
If someone could correct me here, Id really appreciate it.
[doublepost=1446490425,1446484641][/doublepost]I've figured it out, but if anyone else was wondering (5) is MDF, (6) is AGI and (7) is LUK. The others are refferenced here:
https://books.google.com/books?id=Z2InCgAAQBAJ&pg=PA58&lpg=PA58&dq=rpg+maker+mv+code+that+returns+the+remaining+hp+of+the+user&source=bl&ots=0iSMu3MWrB&sig=5s8X_Y5IqtPVL1R5R3xs4E513gE&hl=en&sa=X&ved=0CCoQ6AEwAWoVChMIpYL_4KLyyAIVStZjCh1Hxg8H#v=onepage&q&f=false
and for calculating current hp remaining in the damage formula you use: a.hp