Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parserutils.php on line 205

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parserutils.php on line 208

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parserutils.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parserutils.php on line 530

Deprecated: Function split() is deprecated in /var/www/siebn.de/wiki/inc/auth.php on line 154
variables [Burning Sand Wiki]
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /var/www/siebn.de/wiki/inc/template.php on line 242
 

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parser/parser.php on line 66

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parser/lexer.php on line 292

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parser/handler.php on line 22

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parser/handler.php on line 49

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parser/handler.php on line 213

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parser/handler.php on line 241

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parser/handler.php on line 295

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parser/handler.php on line 328

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parser/handler.php on line 575

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parser/xhtml.php on line 939

Predefined Variables

Global Variables

  • SCROLLX: Scrolling X Offset.
  • SCROLLY: Scrolling Y Offset.
  • WIDTH: The width of the Sandbox.
  • HEIGHT: The height of the Sandbox.
  • WRITEX: The width of the last WRITE action.
  • WRITEY: The height of the last WRITE action.
  • X: The last X-Coordinate of the Cursor.
  • Y: The last Y-Coordinate of the Cursor.
  • ABSX: The last absolut X-Coordinate of the Cursor.
  • ABSY: The last absolut Y-Coordinate of the Cursor.
  • ZOOM: Zoomfactor. Must be between 1 and 255.
  • VIEW: the View.
  • ALPHA1, ALPHA2: coming soon.
  • VIEWMAXPOS, VIEWMAXNEG: coming soon.
  • VIEWR, VIEWG, VIEWB, VIEWPOSR, VIEWPOSG, VIEWPOSB, VIEWNEGR, VIEWNEGG, VIEWNEGB: coming soon.
  • BORDER: The border of the sandbox. Must be 0, 1 or 2.
  • SPEED: The maximum speed. 0 is paused.
  • FPS: the last FPS.
  • REVERSE: 1 means reversed gravity.
  • SOLIDDRAW: 1 means solidraw is activated.
  • MENUTOP, MENULEFT, MENURIGHT, MENUBOTTOM: Width/Height of Menus.
  • PHYSICS: 0 means all physics are deactivated (very fast). 1 means physics are enabled.
  • GRAVITY: Gravity factor. Default is 1000.
  • INTERACTIONS: 0 means interactions are disabled. 1 means interactions are enabled.
  • DEATH: 0 means death is disabled. 1 means death is enabled.
  • SHOWPREVIEW: If 1 then it shows a preview before drawing.
  • WIND: Wind. Defaul is 0.
  • CURSOR: The cursor for the sandbox.
  • CONSOLE: 1 means console is activated.
  • MSEC: time since start of BS in msek.
  • YEAR, MONTH, DAY, HOUR, MINUTE, SECOND: the current time.
  • UNIXTIME: the current unixtime.
  • SHOWKEYCODE: If 1 then the currently pressed keycode is shown in the console.
  • KEYREPEATDELAY: The delay until a pressed key is repeated.
  • KEYREPEATRATE: The rate at which a pressed key is repeated.
  • ALLOWALLIPS: If 1 then you can connect to BS2 from every IP.
  • DEBUGPARSER: If 1 then the parser writes a logfile to stdout.txt.
  • DEBUGPARAMETER: If 1 then parameters are written to stdout.txt.
  • DEBUGTRIGGER: If 1 then executed triggers are written to stdout.txt.
  • DEBUGACTION: If 1 then executed actions are written to stdout.txt.
  • DEBUGVAR: If 1 then the calculated vars are written to stdout.txt.
  • DEBUGFRAME: If 1 then information about frames are written to stdout.txt.
  • BORDERR, BORDERG, BORDERB: The color of the menuborder.
  • BACKGROUNDR, BACKGROUNDG, BACKGROUNDB: The background color of the menu.
  • MENUFONTCOLORR, MENUFONTCOLORG, MENUFONTCOLORB: The font color in the menu.
  • FGLAYERTRANSPARENT: If 1 then the foregroundlayer has a t ransparent color.
  • FGLAYERTRANSPARENTR, FGLAYERTRANSPARENTG, FGLAYERTRANSPARENTB: The transparent color of the foregroundlayer.
  • FGLAYERALPHA: The alpha value of the foregroundlayer.
  • SEED: The random seed for the Physics. Will be increased by 1 every frame.
  • BSVERSION: The versionnumber of BS2.
  • COUNT:GROUPS: The number of groups.
  • ELEMENT:COUNT: The number of elements.
  • AUTOEXEC: If 1 you don't have to write EXEC in front of a trigger. BS2 won't be able to show you errors in you config.

Key Variables

  • CTRL: This is 1 if a CTRL key is pressed.
  • LCTRL, RCTRL: This is 1 if the left or the right CTRL key is pressed.
  • ALT, LALT, RALT: The same as CTRL.
  • SHIFT, LSHIFT, RSHIFT: The same as CTRL.
  • CAPSLOCK: This is 1 if CAPSLOCK is activated.
  • NUMLOCK: This is 1 if NUMLOCK is activated.

Draw Variables

  • X: The current X-Coordinate of the Cursor.
  • Y: The current Y-Coordinate of the Cursor.
  • CLICK: This is 1 if the mousebotton was just pressed.
  • BUTTON: 1 means left mousebutton, 2 means middle mousebutton, 4 means right mousebutton
  • PREVIEW: 1 means you draw to presentation layer, not to sand layer.

FOR EACH Variables

  • FOREACHX: The X-Coordinate of the current pixel.
  • FOREACHY: The Y-Coordinate of the current pixel.

CLOSEST Variables

  • CLOSESTX: The X-Coordinate of the nearest pixel.
  • CLOSESTY: The Y-Coordinate of the nearest pixel.
  • CLOSESTD: The euclidean distance of the nearest pixel.

Menuclick Variables

  • X: The current X-Coordinate of the Cursor relative to the topleft edge of the button.
  • Y: The current Y-Coordinate of the Cursor relative to the topleft edge of the button.
  • CLICK: This is 1 if the mousebotton was just pressed.
  • BUTTON: 1 means left mousebutton, 2 means middle mousebutton, 4 means right mousebutton.

InteractionTrigger Variables

  • X1: The current X-Coordinate of the first element.
  • Y1: The current Y-Coordinate of the first element.
  • X2: The current X-Coordinate of the second element.
  • Y2: The current Y-Coordinate of the second element.
  • INTERACTION1: The elementID of the second element.
  • INTERACTION2: The elementID of the second element.

WINDOWRESIZED Variables

  • WINDOWWIDTH: The max width of a visible Sandbox.
  • WINDOWHEIGHT: The max height of a visible Sandbox.

ELEMENTS Variables

They must be use in combination with an element. Add ”:” and the element name at end of variable.

Example: if the var is “ELEMENTR” then use it this way “ELEMENTR:Water”

  • ELEMENTR: The Red color of an element.
  • ELEMENTG: The Green color of an element.
  • ELEMENTB: The Blue color of an element.
  • ELEMENTWEIGHT: The Weight of an element.
  • ELEMENTSPRAY: The Spray of an element.
  • ELEMENTSLIDE: The Slide of an element.
  • ELEMENTVISCOUSITY: The Viscousity of an element.
  • ELEMENTCUSTOMR1: The Red color of the first custom color.
  • ELEMENTCUSTOMG1: The Green color of the first custom color.
  • ELEMENTCUSTOMB1: The Blue color of the first custom color.
  • ELEMENTCUSTOMR2: The Red color of the second custom color.
  • ELEMENTCUSTOMG2: The Green color of the second custom color.
  • ELEMENTCUSTOMB2: The Blue color of the second custom color.
  • ELEMENTCUSTOMR3: The Red color of the third custom color.
  • ELEMENTCUSTOMG3: The Green color of the third custom color.
  • ELEMENTCUSTOMB3: The Blue color of the third custom color.
  • ELEMENTDEATHRATE:0: The first Deathrate of an element
  • ELEMENTDEATHRATE:X: The Xth Deathrate of an element

So if you want to change the Weight of the Earth Element to 100 do this:

SET ELEMENTWEIGHT:Earth 100

or

ELEMENTWEIGHT:Earth = 100
 

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /var/www/siebn.de/wiki/inc/template.php on line 785
variables.txt · Last modified: 2009/02/25 02:08 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki