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_bs1_modding [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
 

Help Main Menu

Groups

Creating a group.
Syntax:

Group GroupName MenuOrder PictureType PictureText
  • GroupName is the name you want to refer to in your code.
  • MenuOrder is the order it will appear in the sandbox. meaning your elements must have the same MenuOrder

as its group.

  • PictureType can be FILE or TEXT
  • PictureText
    • If PictureType was FILE then you must put the filename of the picture.
    • If PictureType was TEXT then you must input a text that will be displayed.

Here is a group with a picture:

GROUP Stones 100 FILE stonegroup.bmp

If i want to display “Stone” instead of a picture:

GROUP Stones 100 TEXT "Stone"

Elements

Creating an element.
Syntax:

ELEMENT Group ElementName Red Green Blue Weight Spray Slide Viscousity Deathrate Dieto Menuorder Picturetype Picturetext
  • Red,Green,Blue must be a value between 0 and 255.
  • Weight must be a value between -30000 and +32000.
    • Negative will make element go up, like gases.
    • 0 will make it not move, like earth, wall …
    • Positive will make element fall, like salt, sand …
  • Spray must be a value between 1 and 32000.
  • Slide must be a value between 1 and 32000.
  • Viscousity must be a value between 1 and 32000.
  • Deathrate must be a value between 0 and 32768.
  • Dieto must be the name the element it will transform into once deathrate has completed. so clear will make it

disappear while lets say waters dieto is fire. that would make it turn to fire once it died.

  • Picturetype and Picturetext see Menu Commands.

Here is some basic element from BS2 to take example from

Sand

Element Stones Sand 230 180 0 900 1 1 1 0 Clear 400 File sand.BMP

Water

Element Liquids Water 0 0 255 700 100 20 1 0 Clear 0 File water.BMP

Cloud

Element Liquids Cloud 150 150 255 0 1 1 1 250 Clear 100 File cloud.BMP

Earth

Element Stones Earth 200 127 0 0 1 1 1 0 Clear 200 File earth.BMP

Fire

Element Burning Fire 255 0 0 -400 1 1 1 3100 Clear 100 File fire.BMP

Gas

Element Gases Gas 140 40 140 -50 2 1 5 0 Clear 100 File gas.BMP

Stone

Element Stones Stone 100 100 100 1400 1 1 1 0 Clear 800 File stone.BMP

Seed

Element Nature Seed 0 180 0 20 1 1 10 0 Clear 600 File seed.BMP

Basic Interactions

Syntax:

INTERACTION ElementName1 ElementName2 NewElementName1 NewElementName2 Rate [Exception]
  • ElementName1 and ElementName2 would be the 2 reacting elements
  • NewElementName1 is what ElementName1 will transformed into
  • NewElementName2 is what ElementName2 will transformed into
  • Rate is the rate at wich the interaction happen. 100 is a slow interaction and 32768 is an instant reaction.
  • The last parameters in bracket [Exception] is not needed unless you specify an interacion with all, and want the interaction to happen with all but one element.

Default BS2 interactions example

Salt & Water

Interaction Salt Water Clear Saltwater 10000

Plant & Water

Interaction Plant Water Plant Plant 2000

Plant & Fire

Interaction Plant Fire Plant(burning) Clear 6000

Acid

Interaction Acid All Acid Clear 500 Wall

Parasite & Plant

Interaction Parasite Plant Parasite Parasite 400
Interaction Parasite Plant Clear Parasite 400
Interaction Parasite Plant Parasite Plant 100000
This one is a little bit more complex:
  • The Parasite touch the Plant; both are transformed in Parasite (replication)
  • The Parasite touch the Plant; Parasite turn to Clear and Plant turn to Parasite (eaten effect)
  • The Parasite touch the Plant; both transform into themself (eating effect)

Creating a source

Here is the original BS2 code for the Salt Source:

Element Stones Saltsource 200 200 200 0 1 1 1 0 Clear 700 File saltsource.BMP
Interaction Saltsource Clear Saltsource Salt 1000

Basically when the Saltsource element touch Clear, the Saltsource stay the same, and Clear is replaced by Salt. Making the Saltsource element dropping Salt when it touch Clear

 

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