O sorry I didn't understand you. I thought u would like to do something with decimals.
U need it for example here:
U have an barbarian who deals more dmg depending on the health missing
I would make it that way
(a.atk*((a.mhp*1.0/a.hp)**(-1))- b.def)
Without the decimal i wouldn't get the percentage.
the scrip ("damage=[damage, 1].max") looks a lttle bit strange in my eyes would mind posting the link? I am interested in the reason doing it that way.
This would be enough to get the same goal:
[a.atk*4 - b.def*2, 1].max
and this can be user without other scripts
The script-let wouldn't work the way u planned it u forgot the 4
a.atk*4<b.def*2 ? 1 : a.atk* - b.def*2
a.atk*4<b.def*2 ? 1 : a.atk*4 - b.def*2
regards Bot
U need it for example here:
U have an barbarian who deals more dmg depending on the health missing
I would make it that way
(a.atk*((a.mhp*1.0/a.hp)**(-1))- b.def)
Without the decimal i wouldn't get the percentage.
the scrip ("damage=[damage, 1].max") looks a lttle bit strange in my eyes would mind posting the link? I am interested in the reason doing it that way.
This would be enough to get the same goal:
[a.atk*4 - b.def*2, 1].max
and this can be user without other scripts
The script-let wouldn't work the way u planned it u forgot the 4
a.atk*4<b.def*2 ? 1 : a.atk* - b.def*2
a.atk*4<b.def*2 ? 1 : a.atk*4 - b.def*2
regards Bot