Creation/Dev/Script/Client/TServerLevel: Difference between revisions

From Graal Bible
mNo edit summary
 
(version update, new formatting)
Line 1: Line 1:
<pre>
Inherits [[Creation/Dev/Script/Client/TGraalVar|TGraalVar]]
  TServerLevel (TGraalVar):
=Variables=
    compsdead - boolean (read only)
{| border="1" cellpadding="2" width="100%"
    isnopkzone - boolean (read only)
| '''Name'''
    issparringzone - boolean (read only)
| '''Type'''
    nopkzone - boolean (read only) - same like 'isnopkzone'
| '''Description'''
    findareanpcs(float, float, float, float) - returns object - returns an array of all npcs at the specified rectangle (x,y,width,height)
|-
    hitcompu(int, int, float, float)
| compsdead
    putbomb(int, float, float)
| boolean (read only)
    putcomp(str, float, float)
| Returns true if there is no living baddy in the level.
    putexplosion(int, float, float)
|-
    putexplosion2(int, int, float, float)
| height
    puthorse(str, float, float)
| integer (read only)
    putnewcomp(str, float, float, str, int)
|
    reflectarrow(int)
|-
    removearrow(int)
| isnopkzone
    removebomb(int)
| boolean (read only)
    removecompus()
| Whether players may kill each other in this level. (noplayerkilling() function used)
    removeexplo(int)
|-
    removehorse(int)
| issparringzone
    removeitem(int)
| boolean (read only)
    setz(int, int, int, int, float, float, float, float)
|
    shoot(float, float, float, float, float, float, str, str) - shoots a projectile with x,y,z,angle,zangle,strength,ani,aniparams
|-
    testbomb(float, float) - returns integer
| nopkzone
    testexplo(float, float) - returns integer
| boolean (read only)
    testhorse(float, float) - returns integer
| See ''isnopkzone''
    testitem(float, float) - returns integer
|-
    testnpc(float, float) - returns integer
| tilelayercount
    testsign(float, float) - returns integer
| integer (read only)
    tiletype(float, float) - returns integer
|
</pre>
|}
 
=Functions=
 
{| border="1" cellpadding="2" width="100%"
| '''Name'''
| '''Return Type'''
| '''Description'''
|-
| findareanpcs(float x, float y, float width float height)
| object
| Returns an array of all npcs within the specified area.
|-
| hitcompu(int id, int power, float fromx, float fromy)
|
| Hurts a baddy.
|-
| putbomb(int power, float x, float y)
|
| Places a bomb on the level. (power of 0 - bomb, 1 - superbomb, 2 - joltbomb)
|-
| putcomp(str baddyname, float x, float y)
|
| Places a baddy on the level.
Baddy Names:
* graysoldier
* bluesoldier
* redsoldier
* shootingsoldier
* swampsoldier
* frog
* octopus (spider)
* goldenwarrior
* lizardon
* dragon
|-
| putexplosion(int power, float x, float y)
|
|
|-
| putexplosion2(int power, int radius, float x, float y)
|
|
|-
| puthorse(str image, float x, float y)
|
|
|-
| putnewcomp(str baddyname, float x, float y, str imgname, int power)
|
|
|-
| reflectarrow(int id)
|
|
|-
| removebomb(int id)
|
|
|-
| removecompus()
|
|
|-
| removeexplo(int id)
|
|
|-
| removehorse(int id)
|
|
|-
| removeitem(int id)
|
|
|-
| setz(int, int, int, int, float, float, float, float)
|
|
|-
| shoot(float x, float y, float z, float angle, float zangle, float strength, str ani, str aniparams)
|
| shoots a projectile
|-
| testbomb(float x, float y)
| integer
|
|-
| testexplo(float x, float y)
| integer
|
|-
| testhorse(float x, float y)
| integer
|
|-
| testitem(float x, float y)
| integer
|
|-
| testnpc(float x, float y)
| integer
|
|-
| testsign(float x, float y)
| integer
|
|-
| tiletype(float x, float y)
| integer
|
|}

Revision as of 10:27, 13 March 2006

Inherits TGraalVar

Variables

Name Type Description
compsdead boolean (read only) Returns true if there is no living baddy in the level.
height integer (read only)
isnopkzone boolean (read only) Whether players may kill each other in this level. (noplayerkilling() function used)
issparringzone boolean (read only)
nopkzone boolean (read only) See isnopkzone
tilelayercount integer (read only)

Functions

Name Return Type Description
findareanpcs(float x, float y, float width float height) object Returns an array of all npcs within the specified area.
hitcompu(int id, int power, float fromx, float fromy) Hurts a baddy.
putbomb(int power, float x, float y) Places a bomb on the level. (power of 0 - bomb, 1 - superbomb, 2 - joltbomb)
putcomp(str baddyname, float x, float y) Places a baddy on the level.

Baddy Names:

  • graysoldier
  • bluesoldier
  • redsoldier
  • shootingsoldier
  • swampsoldier
  • frog
  • octopus (spider)
  • goldenwarrior
  • lizardon
  • dragon
putexplosion(int power, float x, float y)
putexplosion2(int power, int radius, float x, float y)
puthorse(str image, float x, float y)
putnewcomp(str baddyname, float x, float y, str imgname, int power)
reflectarrow(int id)
removebomb(int id)
removecompus()
removeexplo(int id)
removehorse(int id)
removeitem(int id)
setz(int, int, int, int, float, float, float, float)
shoot(float x, float y, float z, float angle, float zangle, float strength, str ani, str aniparams) shoots a projectile
testbomb(float x, float y) integer
testexplo(float x, float y) integer
testhorse(float x, float y) integer
testitem(float x, float y) integer
testnpc(float x, float y) integer
testsign(float x, float y) integer
tiletype(float x, float y) integer