• 🏆 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!

3rd Loop

Status
Not open for further replies.
Is it possible to have a third loop?
I know that I can do an trigger which will run loop times and set the one integer plus 1 each time and do the 2 other loops in it. But I really don't want to waste so many triggers for that. I need it for my own Save-Load-Code system.

It works fine but I really hope there is an other easier way how to do that.

Would be glad to get better solutions.:thumbs_up:
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
if you use an integer variable in 1 trigger only where you don't need to "remember" the value (e.g. integers that are only used for determining the dmg of a spell in 1 trigger only that doesn't affect any gameplay) you can safely re-use this integer in your 3rd loop.
Also, if you CAN avoid loop in loop in loop, do so. it consumes quite some memory if you loop in another loop... especially if you go from e.g. 1 to 50.
 
Status
Not open for further replies.
Top