[Solved] Loop inside a loop and spacing in Jass scripts

Status
Not open for further replies.
Level 16
Joined
Mar 27, 2011
Messages
1,347
1.) Is putting a loop inside a loop bad?

  • Loop
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • For each (Integer A) from 1 to 10, do (Actions)
            • Loop - Actions
              • Unit - Create 1 Footman for (Owner of (Picked unit)) at (Center of (Playable map area)) facing Default building facing degrees
This is just an example, but can it put too much load on a person's computer and cause crashes, DC's, fatals, etc?

2.) To put a space or not to put a space?

  • Custom script: call RemoveLocation (udg_TempPoint)
  • Custom script: call RemoveLocation(udg_TempPoint)
I saw somebody say that this could be a problem. All my maps use spaces, obviosuly it works, however is it more buggy than without a space? Whats the story?
 
Status
Not open for further replies.
Back
Top