Ardenian
A
Ardenian
I faced several time the problem that a a very long and complex Jass script or a loop that could possibly run pseudo-infinite times just stopped working.
I recently heard the term 'operation limit', stating a function can perform only a limited amout of lines or something.
So, how do I concept a script to avoid this ?
Example:
Could I reduce the operations when externalizing one loop,
so I would have to call the function for every i from a GUI trigger, for example ?
What is the general concept to avoid reaching the operation limit, structure-wise ?
I recently heard the term 'operation limit', stating a function can perform only a limited amout of lines or something.
So, how do I concept a script to avoid this ?
Example:
JASS:
loop
exitwhen i > 100
loop
exitwhen i2 > 100
loop
exitwhen i3 > 100
set i3 = i 3 + 1
endloop
set i2 = i2 + 1
endloop
set i = i + 1
endloop
Could I reduce the operations when externalizing one loop,
so I would have to call the function for every i from a GUI trigger, for example ?
What is the general concept to avoid reaching the operation limit, structure-wise ?