Warcraft III resources & community, 2003–2006 · archived

spell help

3 posts
#1

spell help

im making a direct damage spell which deals random damage with a minimum equal to (0.4 x Str) damage. but i cant seem to get that under conditions. can anyone help?
#2
An attribute is under an integer I believe.

What do you mean by conditions though?
#3
coz (0.4 * str) = (4*str)/10

so, just use random integer number, so you'll make "damage target equal to
IntegerToReal((Random Integer between 4 to 8) * str)/10

you can change 8 with any number that you like.