HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

wats custom value?????

02-29-2004, 02:11 PM#1
Archimonde_lich
well hats custom value, plz giv me an example. like action set the custom value of ... to ... and what is it used for???:D
02-29-2004, 02:38 PM#2
jmoritz
Custom value is an integer you attach to a unit. Just like HP and mana are integers attached to a unit. Only custom value doesn't do anything, unless you, the map maker, use it in triggers. For example, to add shields (like in SC) to units, you could use custom value to store the amount of shield points a unit has left. Whenever a unit is damaged, you run a trigger that checks the custom value of the unit, and subtract the amount of damage done from the custom value.

Of course there's more to it that that: you'd need to add back the damage done to the HP, and need something that can show the shield points a unit has left. But this is only an example :gsmile: