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
bs2_codinghelp_bs2_presets [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: Function split() is deprecated in /var/www/siebn.de/wiki/inc/parser/metadata.php on line 289

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

Help Main Menu

Premade Functions

Within BS2, there is a file called functions.bs2. This contains many helpful functions that Sieben has prepared. All can be called with

EXEC functionname

replacing functionname with the name of the function.

listgroups

The listgroups function refreshes the groups side of the menu. There are no parameters, and pasting EXEC listgroups in the bottom of your mod is recommended to stop confusion.

listelements

Similar to listgroups, listelements will refresh the elements side of the menu. Also, there is a parameter you must put in order for it to work; this is merely the name of the group you wish to show the elements of.

EXEC listelements Stones

would show all the elements of the Stones group.

sublistelements

The function sublistelements lists all the elements of a group in a submenu. This is called already by right clicking a group, and is used in several compact interfaces created by modders. You must also specify the group as the first parameter, like listelements.

setcustomcolorsX

setcustomcolors1, 2, and 3 are used for the graphical filters located on right click of the zoom menu.

togglepause

This is a very useful function; togglepause, well, toggles the speed from your current to 0 and back.

clearall

Probably the most powerful, clearall completely resets the Sandbox.

clearmenus

This clears all the menus.

clearscreen

This turns the entire Sandbox to clear.

loaddefaultsandbox

This restores your Sandbox to its default BS2 settings.

clearkeys

This is the second most powerful function. It resets all key functions to nothing.

Using these and other Functions in your Mod

Coming Soon!

 

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
bs2_codinghelp_bs2_presets.txt · Last modified: 2008/08/08 14:19 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki