• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Not a bug [Indev 0.51] [GameMode] Stacking :while: doesn't work.

Status
Not open for further replies.
J

jianmingyong

Guest
Describe the bug you experienced here.

What I expected to happen:
Somehow able to stack :while: at some point so that I don't have to think of alternative ways to loop certain script.

What actually happened:
Once the inner :while: has been ended, the entire :while: switches will stop. Kind of like it exit every single :while:

Steps to reproduce:
No idea where to start....

Code:
@Storage.set(int,a,0)
@Storage.set(int,b,0)
:while:<Storage.get(int,a)>=0
    @Text.show(Test 1)
    :while:<Storage.get(int,b)>=0
        @Text.show(Test 2)
        @Storage.set(int,b,1)
    :endwhile
:endwhile
@Text.show(while Ended)
:end
 

nilllzz

Original Developer
Administrator
P3D Developer
:while is not stackable.
To stack :while loops, start a new script with a while loop in there.
 
J

jianmingyong

Guest
:while is not stackable.
To stack :while loops, start a new script with a while loop in there.
Somehow.... Start a new script to loop also don't work properly. It kind of like stuck in the inner most loop.
 
Status
Not open for further replies.
Top