The script of " the Damned Grounds " (further SPZ) represents a simple language of programming. Unfortunately, as it has already been told, skriptovye programs are inaccessible, and we can be content with only separate calls of commands. For this reason description SPZ here is not full and not too consecutive. 

In descriptions of commands I shall use such or such font for names of functions, formal parameters to designate so, and in [square] brackets to write down unessential parts of expressions, symbols... To designate recurrence of the previous expression. 

In descriptions of commands I shall use such or such font for names of functions, formal parameters to designate so, and in [square] brackets to write down unessential parts of expressions, symbols... To designate recurrence of the previous expression. 

So, some general data about SPZ: the call of procedure or function is applied to performance of any actions as èìÿ_êîìàíäû ([ïàðàìåòð_1] [, ïàðàìåòð_2] [...]). As parameters can act both direct values, and calls of functions. Names funtsy and procedures do not depend on the register of symbols (i.e., GetX and gEtx designate same). For arithmetic and logic operations calls of functions (we shall tell, numbers develop call Add (a, b)) are used 

Examples: 
SetCP (GetObject (4517), 40,135,0) 
KillUnit (GetObjectByName ("NSheriff")) 
FixWorldTime (0) 

In SPZ it is used four various such as the data: 

float 
The material number, for internal representation is used 4 bajta. In the console this type is applied to all numerical parameters and returned values. In descriptions I shall sometimes refer to it as on bool, emphasizing, that in this case value such as float is interpreted as bulevoe: lie if value is equal to zero, and true if it is equal to unit (to unit - PZ badly concern to attempt to present true as any nonzero value). 

string 
Line of symbols. At the task as direct value consists in " double inverted commas ". 

object 
As follows from the name, this type is used for representation of objects of game. More often in their role units act. Object, perhaps, most widely used type. 

group 
This type represents a set of copies such as object. It is used for the informative purposes - to define, whether there are units of the player in the set area, to set with a view of a quest group of monsters for destruction, etc. 
The most interesting to the player, obviously, is the type object, allowing to influence units. To receive copies such as object it is possible by means of corresponding functions. The basic way thus is call GetObject (), receiving object on the identifier of a unit - to the number unequivocally determining the given separately taken unit on the given card. For example, on a card of a multiquest two the nearest to an input in a game zone of a wild boar (in the north) have " Treasures of robbers " identifiers 4517 and 4651, and general Iriskell on a card of a multiquest " Intrusion on Gipat " has the identifier 1001936. The most simple way to learn the identifier of a unit - to include system messages of group ai by means of a console command filter and to trace values of identifiers in the console. 
Other specific way to receive a copy object - to take advantage of function GetObjectByName (), receiving object by name a unit. In the near future I shall publish the list of these names. 

One more fact to which it is necessary to pay attention, that any unit is attributed to any player is. The question is not players-people, and about abstract sushchnostjah, used basically for grouping units and the task of mutual relations for these groups. The player is defined by number, for example, 0 is by default used for all units controlled by people, and 7 - for the above mentioned wild boars 4517 and 4651. See GetPlayer (). 
It is necessary to remember and that the most part skriptovyh commands operates only on a server. I shall try objasnit it more in detail: in a single the player-person one, and it can easily use all commands - its computer and is a server of game. In a multiplayer the situation is a little bit more complex. The matter is that the game zone, position of units on it, working spelly, and all other parameters are supported on a computer of a server, and the client cannot affect it. Some exception is that time when the client is on base: thus the card of base is supported exclusively by its computer, without participation of a server, therefore on base skriptovye commands can be used and the client.