HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Set Damage and Life

03-02-2004, 12:22 AM#1
volvo64
I have a problem. I need to find a way to set the life and damage of several units i'm spawning. What i really need is some functions like the following: SetMaxLife(unit, value);
SetDamageBase(unit, value);
SetDamageNumDice(unit, value);
SetDamageNumDiceSides(unit, value);

Can anyone help me with this??!?! Thank you in advance.
03-02-2004, 12:45 AM#2
weaaddar
No such natives exist, unfortuantly.

I have created a small set of functions which can add bonuses to Max life and damage by using 10 abilities each to give a range of 0-1023. (The full set uses 40 abilities so it can also modify mana and armor).
http://kattana.users.whitehat.dk/viewfunc.php?id=226

The idea is you assign the abilities at accending powers of 2. (ie. 2^0,2^1,2^2,2^3...2^n-1 (where n is the power 2 is raised to to get the maximum bonus).