• 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] How the Trigger would fare?

Status
Not open for further replies.
Level 9
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:
 
Level 9
Joined
Oct 13, 2009
Messages
110
make the Condition part has an "OR or AND multiple conditions",else it wont pick both your conditions.

pretty sure it didn't work for me with two conditions not inside "OR or AND multiple conditions"

btw the trigger runs almost instantly ,faster than 12 people clicking on it.
so it wont be a problem
 
Status
Not open for further replies.
Top