oasis-b

Wiki / Events

Conditional branches and loops

Making events decide things, and repeating commands without copying them.

Conditional Branch checks one thing and runs different commands for yes and no ("Create Else Branch"). It can check switches, variables, self switches, the timer, actors, enemies, characters facing a direction, vehicles, gold, items, weapons, armors, a pressed button and, with Script, anything JavaScript can test.

Branches or pages?

Loops

Loop repeats everything inside until Break Loop runs. Put a Wait or a message inside, or the loop runs thousands of times per frame and the game stutters or hangs. A typical use: ask a question until the player gives the right answer.

Labels

Label and Jump to Label move to another spot in the same command list. Handy to restart a menu of choices, but long jumps make events hard to read.