HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit - Point Value

02-11-2008, 05:00 AM#1
chobibo
I've read it from the scripts & triggers section and I don't know what it is. I looked for it in the object editor and I found that it had a value of 100 for every unit. I just want to know what it is and where can it be useful. Thanks!
02-11-2008, 05:08 AM#2
Ant
You can edit it in the object editor, so it has a different value for every unit. This comes in very useful for holding additional data about a unit inside it. The uses are infinitely many. You could say, create a shield with a certain amount of HP and use the point value to store the amount of HP left on the shield, since you can use triggers to change the point value of individual units.

Or, perhaps simpler, you could use the point value to simply give a certain number of points to a player, or xp, for killing a certain unit.

Generally it's just a value attached to a unit so you can hold whatever data you feel like holding about it conveniently.
02-11-2008, 05:45 AM#3
Alevice
I thought point value was just the amount that goes to the unit kills score on the victory/defeat screen.
02-11-2008, 06:23 AM#4
chobibo
Thanks Ant! that was very helpful. Can you also tell me how to edit the point value using triggers, I couldn't find any function that does this. Thanks in advance.
02-11-2008, 07:12 AM#5
Ant
Hoops. My bad. Point value can be edited in the object editor, yes, but there isn't a GUI trigger to edit it. Thus it can only hold values that remain the same for each unit type, such as say a unit's length or size etc.

I confused point-value with custom value, which is the one you can change using triggers. :(. My bad.

@Alevice: I never bothered to check that lol. That's probably true too, but who cares about the end game score screen T_T
02-11-2008, 08:06 AM#6
Pyrogasm
It is used in calculating scores in the end of the game.

It does have uses, though; you could use it for classifying units as different types (if you had some sort of system in which you needed types of something, maybe armor). Say, a point-value of 20 means Magic Armor, and a value of 30 means Melee-Reducing Armor, and whatnot.