Hello!
This is a converter TP to HP:
c = a.tp*a.mhp/100.to_i; a.tp = 0; c
The only problem is, it cost at least (1 TP) and of course that mean the formula is "wrong".
I wish to get the missing "1 TP" before the formula. I tried lot of things:
c = a.tp+1*a.mhp/100.to_i; a.tp = 0; c
c = a.tp+1;a.mhp*a.tp/100.to_i; a.tp = 0; c
a.tp+1 c = a.mhp/100.to_i; a.tp = 0; c
Everything failed with weired result or RGSS Console report.
Thanks in advance !
This is a converter TP to HP:
c = a.tp*a.mhp/100.to_i; a.tp = 0; c
The only problem is, it cost at least (1 TP) and of course that mean the formula is "wrong".
I wish to get the missing "1 TP" before the formula. I tried lot of things:
c = a.tp+1*a.mhp/100.to_i; a.tp = 0; c
c = a.tp+1;a.mhp*a.tp/100.to_i; a.tp = 0; c
a.tp+1 c = a.mhp/100.to_i; a.tp = 0; c
Everything failed with weired result or RGSS Console report.
Thanks in advance !