• 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] Quick Question

Status
Not open for further replies.
Level 6
Joined
Sep 11, 2006
Messages
172
Hey, it's been a while since I did any work on a map and I wanted to ask a quick question.

Does this leak?

  • Collect Vis
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Set PlayerVisamene[(Integer A)] = (PlayerVisamene[(Integer A)] + (Number of units in (Units owned by Players[(Integer A)] matching ((Unit-type of (Matching unit)) Equal to |cff0066ccVisamene Extractor|r))))
          • Set PlayerVisamene[(Integer A)] = (PlayerVisamene[(Integer A)] + ((Number of units in (Units owned by Players[(Integer A)] matching ((Unit-type of (Matching unit)) Equal to |cff0066ccVisamene Extractor|r (Charged)))) x 2))
      • Wait 10.00 seconds
      • Trigger - Run (This trigger) (checking conditions)
 
if u dont have any conditions u should run trigger ignoring conditions. i would also change the event over since its running every 10 seconds. change it to periodic timer w 10 second interval. and for each integer A u should make ur own variable since the for each integer A is slower than ur own variable and it can cause some really weird bugs when used w some things
 
Status
Not open for further replies.
Top