Skip to content
This repository was archived by the owner on Sep 24, 2022. It is now read-only.
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

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.

Using Multiple commands in a loop

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.

Clone this wiki locally