• 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.

[Solved] Trigger lag

Status
Not open for further replies.
Level 2
Joined
Dec 24, 2013
Messages
8
Why does this trigger makes my map to lag when the unit enters the map ? :s

  • Auto harv
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) has buff Devotion Aura) Equal to True
            • Then - Actions
              • Unit - Order (Entering unit) to Harvest Nearby Lumber
            • Else - Actions
  • SB
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Disable Spell Book for (Picked player)
 
Level 2
Joined
Dec 24, 2013
Messages
8
  • Auto harv
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) has buff Devotion Aura) Equal to True
            • Then - Actions
              • Unit - Order (Entering unit) to Harvest Nearby Lumber
            • Else - Actions
still get the lag :s but then another ideea came to me , duno why i didnt saw it

  • Auto harv
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Unit - Order (Entering unit) to Harvest Nearby Lumber
and it works quite well, no lags, and if unit has no harvest ability, it stops ^^ the effect i wanted is still the same, ty solved :D
 
Level 2
Joined
Dec 24, 2013
Messages
8
it is for a vampirism type of map, so all units will be trained, wont pre-place ^^
 
Status
Not open for further replies.
Top