DDRtists
ɹoʇɐɹǝpoɯ ɹǝdns
- Reaction score
- 405
Hey this is prob gonna be really easy for you pros, but im making a map ( a hero line wars type map ) that gets a income every 30 sec. But i have made this unit called holy water ( a water elemental lvl 0 ), but when they buy them, the trigger is set to the right char, and i mached up with the worked trigger, it doesnt add to the income variable...here are the triggers:
This is when you buy it:
the add to var:
This is when you buy it:
Code:
North Spawns
Events
Unit - A unit Sells a unit
Conditions
((Sold unit) belongs to an ally of Player 1 (Red)) Equal to True
((Sold unit) is A Hero) Equal to False
Actions
Unit - Change ownership of (Sold unit) to Player 6 (Orange) and Change color
Unit - Move (Sold unit) instantly to (Random point in South Spawn <gen>)
the add to var:
Code:
Holy Water Income
Events
Unit - A unit Sells a unit
Conditions
(Unit-type of (Sold unit)) Equal to Holy Water
Actions
Set Income[(Player number of (Owner of (Sold unit)))] = (Income[(Player number of (Owner of (Sold unit)))] + 8)


