Devrak
New Member
- Reaction score
- 17
Ok, so I got two triggers which I could use some help with. When my unit uses the first trigger, my units movement speed is reduced to 0, and it starts producing eggs via the ProduceEgg_Trigger.
This part of the trigger works fine. However, when I use the second trigger "Stop Producing Eggs", things just go wierd.
The trigger removes the old abilities and adds the new abilites, BUT doesn't set the movement speed of the casting unit to 190 and I am not able to cast the "Start Producing Eggs" ability again. :banghead:
So, if anyone had a clue about what I have done wrong and why it doesn't work I'd love to have an answer!
Trigger:
- Start Producing Eggs
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Start Producing Eggs
- Actions
- Unit - Remove (Ability being cast) from (Casting unit)
- Unit - Add Return Gold and Lumber to (Casting unit)
- Unit - Add Stop Producing Eggs to (Casting unit)
- Unit - Set (Casting unit) movement speed to 0.00
- Trigger - Turn on ProduceEgg_Trigger[(Player number of (Owner of (Casting unit)))]
- Events
This part of the trigger works fine. However, when I use the second trigger "Stop Producing Eggs", things just go wierd.
Trigger:
- Stop Producing Eggs
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Stop Producing Eggs
- Actions
- Unit - Remove Return Gold and Lumber from (Casting unit)
- Unit - Remove (Ability being cast) from (Casting unit)
- Unit - Add Start Producing Eggs to (Casting unit)
- Unit - Set (Casting unit) movement speed to 190.00
- Trigger - Turn off ProduceEgg_Trigger[(Player number of (Owner of (Casting unit)))]
The trigger removes the old abilities and adds the new abilites, BUT doesn't set the movement speed of the casting unit to 190 and I am not able to cast the "Start Producing Eggs" ability again. :banghead:
So, if anyone had a clue about what I have done wrong and why it doesn't work I'd love to have an answer!