• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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)
 
Level 29
Joined
Oct 24, 2012
Messages
6,543
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