This repository was archived by the owner on Sep 24, 2022. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 1
Loops!
Satakun Utama edited this page May 24, 2021 · 1 revision
At the time, StoryScript has Loops now! But It's a bit weird.
Loopfor loop is a loop that will loop for a specified amount of times.
For example:
loopfor 10 print ("ting") end
This will print ting
10 times. And as you can see, You needed to put the end
keyword at the end of the loop instruction.
It would be bad If we can only run 1 instruction in a loop. To include multiple commands, use &&
as a Separator.
For example:
loopfor 10 print ("ting") && print ("tong") end
This will print ting
and tong
10 times.