BSL:BFW Scripting Language: Difference between revisions

From OniGalore
Jump to navigation Jump to search
Line 1: Line 1:
== Oni Scripting Language (or OSL) ==
== Oni Scripting Language (or OSL) ==
is what Oni scripts are written in.
is what [[OSL:Scripts|Oni scripts]] are written in. It's a programming language akin to C with some shell-script features as well.
 
===Knowledge database===
Please excuse the mess.
For the theoretical minds, everything you'll ever need to know about OSL
 
*[[OSL:Statements|Statements]]
*[[OSL:Variables|Variables]]
*[[OSL:Functions|Functions]]
*[[OSL:Operators|Operators]]
*[[OSL:Data|Data types]]
===[[OSL:Tutorial|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? [[OSL:Tutorials/Scratch|Here you are]]
==Overview==
{| border="1" cellpadding="5" cellspacing="0" align="center"
{| border="1" cellpadding="5" cellspacing="0" align="center"
|+'''OSL syntax overview table'''
|+'''OSL syntax overview table'''
Line 80: Line 90:
|}
|}
|}
|}
[[Scripting : Simple Scripts|Here]] is a tutorial section on how to write simple scripts. Its a work-in-progress.

Revision as of 17:31, 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