Quest

From Esolang
Jump to navigation Jump to search

Quest is a language by User:ChuckEsoteric08 for making text-based games

Syntax

Syntax look like that

<text><command><arguments>

It prints <text> and executes command <command> that have arguments Commands are:

\ gets input and goes to line based on it. The arguments look like that:
<value>?<line>

It goes to line <line> if input is <value>(counting starts from 1). If there isn't anything before "?" then it goes to line if input is anything else. Arguments separated with spaces

/ goes to line specified by argument unconditionally. If there isn't anything after command, jump to next line. If you jumping out of bounds, program halts

Examples

Hello World

Hello, World!/

Truth machine

Input:\1?2 0?3
1/2
0/