• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] How the Trigger would fare?

Status
Not open for further replies.
Level 10
Joined
May 21, 2014
Messages
580
  • Pet Always Follow
    • Events
      • Player - Player 1 (Red) Selects a unit
      • Player - Player 2 (Blue) Selects a unit
      • Player - Player 3 (Teal) Selects a unit
      • Player - Player 4 (Purple) Selects a unit
    • Conditions
      • ((Triggering unit) is in TranscendentMainUnits) Equal to True
      • (Owner of (Triggering unit)) Equal to (Triggering player)
    • Actions
      • Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Matching unit) is in TranscendentPetUnits) Equal to True)) and do (Actions)
        • Loop - Actions
          • Set MainPosUnit = (Position of (Triggering unit))
          • Set PetPosUnit = (Position of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Distance between MainPosUnit and PetPosUnit) Greater than 300.00
            • Then - Actions
              • Unit - Move (Picked unit) instantly to MainPosUnit
            • Else - Actions
          • Unit - Order (Picked unit) to Follow (Triggering unit)
          • Custom script: call RemoveLocation (udg_MainPosUnit)
          • Custom script: set udg_MainPosUnit = null
          • Custom script: call RemoveLocation (udg_PetPosUnit)
          • Custom script: set udg_PetPosUnit = null
I need help analyzing a trigger that I just made. Because of the really lack of experience and knowledge, I would not really know how the trigger will be run if players started to spam select the unit.

I would like know if the players started to spam click like heck if they got bored, will the trigger cause something like... Hm... Like they will be ran twice?
Or are triggers always run in queues? If they run in queues, then there is no reason now to observe the trigger I have. :ogre_hurrhurr:
 
Status
Not open for further replies.
Back
Top