• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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

Status
Not open for further replies.
Level 16
Joined
Mar 27, 2011
Messages
1,349
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.
Top