2 triggers

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.

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)))]


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! :)
 

RaiJin

New Member
Reaction score
40
whats up with the weird trigger turn on's

and maybe try it with just 1 unit? and not multiple units :S
 

Devrak

New Member
Reaction score
17
whats up with the weird trigger turn on's

and maybe try it with just 1 unit? and not multiple units :S

The wierd trigger turn on's turn on a periodic event that creates an egg every X second near the unit.

And what do you mean with just 1 unit? :p
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
I assume ProduceEgg_Trigger[(Player number of (Owner of (Casting unit)))] is a trigger array
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top