scriptname.bsk
files inside the skript/
directory.a-z0-9
) and allow underscores _
. They must start with a letter (a-z
).myscript.bsk
, cool_thing.bsk
, MyScript.bsk
, My_Cool_Script123.bsk
.on [script] load
event to start off. Multiple handlers can be added for the same event, which will start separate processes.{curly}
brackets.a-z0-9
) and allow underscores _
. They must start with a letter (a-z
).{myvar}
, {my_var}
, {number}
, {CoolThing}
, {var_123}
.return
effect.run func({arg1}, {arg2})
function func(param1, param2)
set...
, add...
, delete...
, and run...
effects.if, else/if, else
tree structure.while
loop will run until the condition fails.loop %Number% times
will loop the specified number of times. (Crazy, right?)loop %Variable% in %Objects%
will loop through the collection of objects, storing each one in the variable and running the loop for it.size
method from Map
and List
are different - they don't share an interface.