kasilopana
New Member
- Reaction score
- 1
E'llo!
I'm making a trigger. When a unit enters a region, he should be killed, and a new unit should be replacing him, with the cost of 50 g.. I just cant figure out how to make him lose the 50 g ;(
Here's the triggers:
I'm making a trigger. When a unit enters a region, he should be killed, and a new unit should be replacing him, with the cost of 50 g.. I just cant figure out how to make him lose the 50 g ;(
Here's the triggers:
Trigger:
- player red gold
- Events
- Time - Every 0.20 seconds of game time
- Conditions
- Actions
- Set PlayerRedGOLD = (Player 1 (Red) Current gold)
- Events
Trigger:
- Headhunter
- Events
- Unit - A unit enters HeadhunterHERO <gen>
- Conditions
- (Owner of (Entering unit)) Equal to Player 1 (Red)
- PlayerRedGOLD Greater than or equal to 50
- Actions
- Unit - Kill (Entering unit)
- Unit - Create 1 Troll Headhunter for (Owner of (Entering unit)) at (Center of HeroSPAWN <gen>) facing Default building facing degrees
- Wait 0.50 seconds
- Set PlayerRedGOLD = ((Player 1 (Red) Current gold) - 50)
- Camera - Pan camera for (Owner of (Entering unit)) to (Center of HeroSPAWN <gen>) over 1.00 seconds
- Events