HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Working with Gold Bounty

04-30-2006, 09:01 PM#1
Karawasa
Is there a way to work the gold bounty of a unit?

Say for instance I have this ability called destroy. When activated, kills triggering unit, picks units around it and gives to the owners lets say 50% of the gold it normally would give if killed normally.

Is that possible? I know you can work with life, mana, point value etc. So, can I work with Gold bounty?
04-30-2006, 09:02 PM#2
Captain Griffen
There is no function to draw out a unit's gold bounty. You could store it in some other way, though.
04-30-2006, 09:25 PM#3
Karawasa
Quote:
Originally Posted by Captain Griffen
There is no function to draw out a unit's gold bounty. You could store it in some other way, though.
Could you please elaborate?
04-30-2006, 09:27 PM#4
Captain Griffen
Point value, if you aren't using that, or via two variable arrays (one of unit type, and one of average bounty), and check against that (possibly more efficient actually if you can change the unit type into a string to use game cache for that, so you don't have to check against a loop, but I'm not sure if you can do that).
04-30-2006, 10:04 PM#5
Karawasa
I am not using point value atm. Does point value affect the unit in anyway other then through triggers?
04-30-2006, 10:16 PM#6
Captain Griffen
No effect on gameplay. May have some effect on scores, but tests have shown that to not be true.
04-30-2006, 11:04 PM#7
Karawasa
Sounds good, +rep :).
05-01-2006, 11:12 PM#8
Immoralis
you can also make a dummy unit and transmute it, that why you dont have to set point vales for each building