Hello all, I have a little question here. I've been trying to make (self) sell ability like in TowerDeffence maps. But as results I've only got fatal errors.
(PLS no point values, I want gold to appear next to building when it's sold)
Here's some triggers of few tries of mine.
I really appreciate your help!
(PLS no point values, I want gold to appear next to building when it's sold)
Here's some triggers of few tries of mine.
Sell = dummy unit (training)
Sell [EDITED] = Transmute ability
Sell [EDITED] = Transmute ability
TRIGGERS-1 (to quick removing dummy unit)
- Selling start
- Events
- Unit - A unit Begins training a unit
- Conditions
- (Unit-type of (Trained unit)) Equal to Sell
- Actions
- Unit - Add Sell [EDITED] to (Triggering unit)
- Selling finish
- Events
- Unit - A unit Finishes training a unit
- Conditions
- (Unit-type of (Trained unit)) Equal to Sell
- Actions
- Unit - Order (Triggering unit) to Neutral Alchemist - Transmute (Triggering unit)
- Unit - Remove (Trained unit) from the game
TRIGGERS-2 (Fattal error)
- Selling start
- Events
- Unit - A unit Begins training a unit
- Conditions
- (Unit-type of (Trained unit)) Equal to Sell
- Actions
- Unit - Add Sell [EDITED] to (Triggering unit)
- Selling finish
- Events
- Unit - A unit Finishes training a unit
- Conditions
- (Unit-type of (Trained unit)) Equal to Sell
- Actions
- Unit - Order (Trained unit) to Neutral Alchemist - Transmute (Triggering unit)
- Selling dummy remove
- Events
- Unit - A unit Finishes casting an ability
- Conditions
- (Ability being cast) Equal to Sell [EDITED]
- Actions
- Unit - Remove (Triggering unit) from the game