*********************************
*         DCS   &   PWD 	*
*********************************

1) Francais
COBBLER Ver 4.0

a) les fonctions

	EMIT-SFX fonctionne a 100%
	EXPLODE  fonctionne a 100%
	

b) nouveaux operateurs

	>   support 
	>=  support

ex: IF (RAND(1,10) >= 5)

	if ( variable [op] ! variable )  est support '[op] = operateur'
 
ex: IF (moving == !bmoving)

note : dans cette example moving est une variable et bmoving une static-var


c) Modification de fonction complexe a faire sur les bos 

1er example de fonction complexe dans un bos

	if (moving && ( level == 1 || level == 4))
		{
		call-script walk();
		}

1er example de remplacement de cette fonction dans le bos
	
	if (moving)
		{
		if (level == 1)
			{
			call-script walk();
			}
		if (level == 4)
			{
			call-script walk();
			}
		}

2eme Example de fonction complexe

	if (moving &&  level == 1 && !active)
		{
		sleep <500>;
		}

2eme example => remplacement dans le bos

	if (moving)
		{
		if (level == 1)
			{
			if (!active)
				{
				sleep <500>;
				}
			}
		}

Remarque : COBBLER Ver 4.0 ne prend que les examples de remplacement

NOTE : ouvrez ARMAMPH.BOS pour voir un example de code

d) Erreur possible due a une mauvaise definition des variables

en general les erreurs sont caus par une variable static non declar dans
static-var ou un nom de piece non dclar dans PIECE

donc vrifiez bien votre script

IMPORTANT : dans un WHILE ou un IF ,vous devez avoir 1 seul operateur

example de fonction correct:

	IF (TRUE)
	IF (!moving)
	IF (moving == 0)
	IF (moving == bmoving)
	IF (moving == !bmoving)

Dans cette example , l'operateur est ==

example de mauvaise fonction:

	IF ((moving == !bmoving) || aim)   // il y a 2 operateurs ' == , || '
	IF ((moving == !bmoving) == aim)   // il y a 2 operateurs ' == , == '

List des operateurs

==
||
&&
<=
<
>=
>
^^
!=

Bonne cration a TOUS



2) ENGLISH
COBBLER Ver 4.0

a) function

	EMIT-SFX work 100%
	EXPLODE  work 100%

b) new operator

	>   can be used 
	>=  can be used

ex: IF (RAND(1,10) >= 5)

	if ( variable [op] ! variable )  can be used '[op] = operator' 

ex: IF (moving == !bmoving)
note : in this example 'moving' is var and 'bmoving' is static-var

c) Update to do about complicated function  in BOS file before using COBBLER

1er example of complicated function in a .bos

	if (moving && ( level == 1 || level == 4))
		{
		call-script walk();
		}

1er example of update for this function 
	
	if (moving)
		{
		if (level == 1)
			{
			call-script walk();
			}
		if (level == 4)
			{
			call-script walk();
			}
		}

2eme Example of complicated function

	if (moving &&  level == 1 && !active)
		{
		sleep <500>;
		}

2eme example => update in the .BOS

	if (moving)
		{
		if (level == 1)
			{
			if (!active)
				{
				sleep <500>;
				}
			}
		}

Note : COBBLER Ver 4.0 work with updated example only

NOTE : OPEN ARMAMPH.BOS TO SEE COMPATIBLE EXAMPLE CODE

d) Error caused by wrong definition in a .BOS file

Generaly error are caused by a missing static-var name in field definition (STATIC-VAR)
or a missing piece name in field definition (PIECE) 

THEN verify your fields ( STATIC-VAR  and PIECE ) in your script


IMPORTANT : in a WHILE or IF function you must only use 1 operator

example of good function:

	IF (TRUE)
	IF (!moving)
	IF (moving == 0)
	IF (moving == bmoving)
	IF (moving == !bmoving)

in these example , the operator is ==

example of bad function

	IF ((moving == !bmoving) || aim)   // you have 2 operators ' == , || '
	IF ((moving == !bmoving) == aim)   // you have 2 operators ' == , || '

List of operators

==
||
&&
<=
<
>=
>
^^
!=

GOOD works.

