BSL:BFW Scripting Language: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (OSL:Oni Scripting Language moved to BSL: about time)
(No difference)

Revision as of 22:02, 6 April 2007

Oni Scripting Language (or OSL)

is what Oni scripts are written in. It's a programming language akin to C with some shell-script features as well.

Knowledge database

For the theoretical minds, everything you'll ever need to know about OSL

More on modding basics

And some random (so far) useful pages

Tutorials

For the practical minds who don't care (too much) about the theory.

  • Wanna make minor (yet cool-looking) changes to the original level logic?
  • Wanna script a "patch" that's effective in every level but doesn't affect the original logic?
  • Wanna create completely new level logic from scratch? Here you are

Overview

OSL syntax overview table
OSL separators
; , # "
{ } ( )

Click on a separator for details

OSL operators
+ - = !
and or eq ne
< > <= >=

Click on an operator for details

OSL keywords
at float if repeat string
bool for int return using
else fork iterate schedule var
every func over sleep void

Click on a keyword for details