BSL:BFW Scripting Language: Difference between revisions

From OniGalore
Jump to navigation Jump to search
Line 12: Line 12:
*Wanna make minor (yet cool-looking) changes to the original level logic?
*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 script a "patch" that's effective in every level but doesn't affect the original logic?
*Wanna create completely new level logic from scratch? [[OSL:Tutorials/Scratch|Here you are]]
*Wanna create completely new level logic from scratch? [[OSL:Tutorial/Scratch|Here you are]]
 
==Overview==
==Overview==
{| border="1" cellpadding="5" cellspacing="0" align="center"
{| border="1" cellpadding="5" cellspacing="0" align="center"

Revision as of 18:30, 15 November 2005

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

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