A downloadable game for Windows and Linux

:) to make comments

Stop(#)

Say("_____")

Ask(___)

Var _____ = _______ :) ro make a variable (Doesn't work with equations for values)

Say(response)

Say(varname)

Say("Hello " response "!")

if response is _____ then _________ :)Don't use quotation marks for comparisons with the response variable

if ___  >, is, < ____ then ____code_____

randnum(#,#) to generate a random number within a certain range

For loops do 

loop # do {

code

}

additionally:

add a + in between lines of code to put multiple code lines on one line

and, or, otherwise(else)

to change the value of a variable do variablename=newvalue

example code:

Var e = 5

Var f = "Hello there"

Stop(1)

Say("Hello")

Ask("Do you know da wae?")

Say("You entered:" response)

if response is "hello" then Say(f)

Say(e)

Var e = randnum(1,10)

if e > 5 then Say("Higher")

if e is 5 then Say("Mid")

if e < 5 then Say("Lower")


Ask(What's 9 + 10?)

if response is 21 then Say("Correct") :) both have to be on the same line or else Correct will show up no matter what you type in.


Download

Download
BentleyScript.html 15 kB
Download
Random number generator.bs 52 bytes

Leave a comment

Log in with itch.io to leave a comment.