By just killing? Well, press F6. Go to the unit tab. Click the unit that you want to give gold after it dies.
Go scroll down a lot, it's near the end. Find Stats - Bount Awarded - Base. We'll want to give 9 gold. I don't remember the formula, cause I don't set gold often... But, try setting the base to 3. Go to the text form, set that to 1, and the next one and set it to 2. I think this is the formula.
(Base x Number of sides) x (Number of sides + Sides per die)
By trigger, here's one way (It will always give this amount of gold):
GoldGive
Events
Unit - A unit owned by Neutral Hostile Dies
Conditions
Actions
For each (Integer A) from 1 to PlayerInteger, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Killing unit) Equal to PlayersHeroUnit[(Integer A)]
Then - Actions
Player - Add 9 to (Owner of (Killing unit)) Current gold
Else - Actions
Do nothing
Of course, you'd have to set PlayersHeroUnit beforehand. |