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

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

Resources

This is a list of premade mods that you can insert into your mod.

*JoeMaximum's Aim and Fire Template - Includes inferno's compact version

Examples

Various Examples by inferno.

A Simple Wave

Waves in Burning Sand 1 and 2 are simple. A basic one uses this template:

 Element Group Wave.... Deathrate Dis...
 Element None Dis.... Deathrate Deathelement... (more of Dis can be used to create multi-color waves)

 Interaction Wave Element(s) Wave Wave Rate

The only things really vital to a wave is the deathrates of the wave element and the trailing Dis elements, and the rate of growth, indicated by the simple interaction.
Dis elements are sometimes given an interaction that makes them “eat” the wave (Interaction Dis Wave Dis Dis Rate) to prevent looping, where the wave repeats, usually in a continuous cycle.
??? in BS1 and 2 are good examples of waves, as is the electricity in plastik's Electricity Mod.

Multiple Exceptions

(This is based off BS2's ???)

As you should know from reading the rest of JoeMaximum's guides, and exception is, well, an exception from an interaction. Inferno has nearly perfected it for multiple interactions. Note that this should only be used if you want more than one exception, but not very much more.
Multiple exceptions are created by the following steps:

  1. Set each element to be exempted from the interaction as a variable, like
SET elementexception ELEMENT:Exception

It is recommended that you make the variables all lowercase, and name them so that they are recognizable.

  1. Set up the interaction.
INTERACTIONTRIGGER Element All ElementTrigger Rate Exception

You should set one of the elements you want to be exempted as the regular exception.

  1. Create the trigger.

Structure:

REMOVETRIGGER TriggerName
ON TriggerName IF *exceptions* <DRAW element3 POINT X1 Y1>
ON TriggerName IF *exceptions* <DRAW element4 POINT X2 Y2>

Element3 represents the normal third section of an interaction, and element4 represents the fourth portion of an interaction.

Exceptions are done with the following syntax:

((INTERACTION2 != elementvariable) && (INTERACTION2 != elementvariable2))

For more than two, add

 && (INTERACTION2 != elementvariablex)

in between the last two parentheses.

Simple Missile

Horizontal missiles are easy to make, but are only capable because of Burning Sand's bias.
To set up a missile, it uses a minimum of two elements… ANY two elements. They also run on a single interaction.

Interaction Element1 Clear Element2 Element1 32768

Simple enough, right?

 

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_examples.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