HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Changing a unit's point value?

12-21-2005, 07:07 PM#1
PCPharaoh
There are two different integers regarding point value, "Point Value of Unit" and "Point Value of Unit-Type". This leads me to believe that there might be a way to change point value through triggers. The only problem is that I can't find it in GUI. So am I blind, is there something in JASS that I could use, or does no such action exist?

EDIT: I looked through the API Browser, and the only functions I could find were GetUnitPointValue and GetUnitPointValueByType. My situation is looking grim.
12-21-2005, 07:13 PM#2
Blade.dk
As far as I'm aware, such a function doesn't exist.

I've just searched for SetUnitPointValue with The Jass Vault's function finder, it found nothing so it most likely doesn't exist.
12-21-2005, 07:35 PM#3
shadow1500
its there but its commented out, look in common.j
i guess blizzard decited not to do it for some reason.
12-21-2005, 07:55 PM#4
Blade.dk
Yes, but only the SetUnitPointValueByType native is there.

And since it's commented out, I suppose it is not working too well.
12-21-2005, 10:41 PM#5
PCPharaoh
Well that's interesting. SetUnitPointValueByType is commented out. So that means Blizzard was going to add it, but was too lazy to do it, or fix any bugs that it had. What a shame.
12-21-2005, 11:23 PM#6
Vexorian
but what would be the use for that anyways? Point value doesn't serve any purpose than being a value that helps triggers know something else about a unit type, gamecache works better as a way to have variables attached to units
12-21-2005, 11:41 PM#7
PCPharaoh
I'm making a sell system, so I'm using point value for their sell value. The problem is, one of the high-end towers can "summon" one of the low-end towers. I want to give these summoned towers a sell value of zero, so the buyer can't make money off of them.

So I guess what I'll be doing instead is having two towers, one that is built, and another which is summoned.
12-22-2005, 06:10 AM#8
RaeVanMorlock
Quote:
Originally Posted by Vexorian
but what would be the use for that anyways? Point value doesn't serve any purpose than being a value that helps triggers know something else about a unit type, gamecache works better as a way to have variables attached to units

Isn't point value the number of points you get for creating/killing something? I know alot of people don't seem to care much about it, but I personally like to have the point value of something actually represent it's worth so that the scores at the end of the game are representative of how well the players did.
12-22-2005, 06:53 AM#9
Ezula
I just tested a map where I have to kill a peasant to win and see the scoreboard. I made the pointvalue of peasant be 100 000, but my final score was not looking better... Point value could still be used to get a good following of how well your doing in the game and how many "points" you got for your kills.