• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Why is this sequence of triggers bugged?

Status
Not open for further replies.
Level 6
Joined
Apr 23, 2009
Messages
94
  • Events
    • Time - Every 3.00 seconds of game time
  • Conditions
  • Actions
    • If ((Untitled Trigger 034 <gen> is on) Equal to True) then do (Trigger - Add to Untitled Trigger 034 <gen> the event (Time - Elapsed game time is 0.01 seconds)) else do (Do nothing)
    • Unit Group - Pick every unit in (Units within 350.00 of FEARTRAP matching (((Owner of (Matching unit)) is an enemy of Player 1 (Red)) Equal to True)) and do (Actions)
      • Loop - Actions
        • Set loc = (Position of (Picked unit))
        • Unit - Order SCARED to Neutral Pit Lord - Howl Of Terror
        • Unit Group - Pick every unit in (Units owned by Player 2 (Blue) matching (((Matching unit) has buff Scared) Equal to True)) and do (Actions)
          • Loop - Actions
            • Unit - Change ownership of (Picked unit) to Neutral Passive and Retain color
            • Unit - Order (Picked unit) to Move To (loc offset by (-500.00, (Facing of (Picked unit))))
            • Unit Group - Add (Picked unit) to FEARGROUP
  • Untitled Trigger 034
    • Events
    • Conditions
    • Actions
      • Unit - Create 1 Dummy for Player 1 (Red) at FEARTRAP facing Default building facing degrees
      • Set SCARED = (Last created unit)
      • Trigger - Turn off (This trigger)
  • Untitled Trigger 035 Copy
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in FEARGROUP and do (Actions)
        • Loop - Actions
          • If (((Picked unit) has buff Scared) Equal to False) then do (Unit - Change ownership of (Picked unit) to Player 2 (Blue) and Change color) else do (Do nothing)
Like it does what its supposed to, kind of. When the dummy casts the ability it puts a buff on the units. Problem is, for some reason before each 3 seconds, units get this buff, it doesn't make sense.
Dummy is ordered to cast it every 3 seconds, but before the 3 seconds it units get the buff.. Though i could also be something with the Changing Ownership.. causing some kind of lag.
Anyone?
 
Level 5
Joined
Apr 21, 2006
Messages
82
This looks pretty much strange; why add a 0.01 second event when it will stop the trigger in the end anyways? o_O And it won't start that dummy creator trigger anymoe with that "If" condition.

Maybe it's just me, but i can't understand what's the point of that creation trigger to be seperate and such. But i get it that you are trying to create the AoE Fear what you asked about. I suggeest you would use my trigger, just no need for the Silence and then pick units into a group variable, turn them into Neutral Hostile (with Neutral Passive you cannot cast spells on them) and then have such a movement ordering.

and you can leave that changing owner back as the same then
 
I didnt took a ful look at it im toom lazy
but what does this "Trigger - Add to Untitled Trigger 034 <gen> the event (Time - Elapsed game time is 0.01 seconds" supposed to do? The Game time of 0.01 seconds is already passed due your first trigger runs at 3 seconds game time first
If you just want to run this trigger do
  • Trigger - Run ( Untitled Trigger 034 <gen>) (checking conditions)
 
Level 16
Joined
Oct 12, 2008
Messages
1,570
-JonNny is right, as soon as the elapsed game-time is 3.00 seconds, you add an event that triggers if elapsed time is 0.01,, But that time has already passed, so it will never run, unless your map can travel back in time but i dont think so ;)
 
Level 6
Joined
Apr 23, 2009
Messages
94
Well i'm not sure why but, the Elapsed 0.01 trigger works fine. It creates the Dummy and he does the correct thing.
The problem is everytime he's ordered to do his ability, for some reason units get the buff before he's ordered to use the ability.
Everything else works as planned.

EDIT: Going to take out all of the chaning unit ownership stuff in the triggers and see if thats the problem.
 
Status
Not open for further replies.
Top