Přeložení
Napsal: 09. 06. 2007 18:21
Dam tomu co mi přeloži članek a potom posle na Ondrejrehacek@seznam.cz dam vsechny moje monil eura (žadny PC translatror) at gto dava smysl
TOHLE JE TEN ČLÁNEK
To create your own rooms duplicate a map that has already been created
so that the room settings are passed onto the new room. Now just add the
tiles from the tile editor and add objects from the objects folder.
To create links:
Add the object objLink and ctrl+right click it and select creation code
You can set these 3 variables:
nextmap = mapname
nextx = new x position
nexty = new y position
example:
nextmap = "startmap"
nextx = 32
nexty = 32
To create solid areas over tiles just create add the object objSolid
over the tile you want to make solid.
Signs:
To create signs just add an objSign object and ctrl+right click it and
go to the creation code. Set text = "blah blah"
e.g
text = "Hellow world"
Chests:
To add chests just add the objChest object and ctrl+right click and click
creation code. set the variable item to the name of the object you
want to appear in the chest (from the items folder in the objects folder)
example
item = objHealth
Setting variables:
You can save variables to a players account so when theylog back in
they will still be set. So if you're making your own objects than
the script setvariable and getvariable will come in handy.
getvariable(name) returns the value of a variable stored on the
players account.
e.g
hasbomb= getvariable("hasbomb");
setvariable(name, value) sets a variable to the players account.
e.g setvariable("hasbomb", 1);
i used these scripts for the bomb and arrow weapons.
TOHLE JE TEN ČLÁNEK
To create your own rooms duplicate a map that has already been created
so that the room settings are passed onto the new room. Now just add the
tiles from the tile editor and add objects from the objects folder.
To create links:
Add the object objLink and ctrl+right click it and select creation code
You can set these 3 variables:
nextmap = mapname
nextx = new x position
nexty = new y position
example:
nextmap = "startmap"
nextx = 32
nexty = 32
To create solid areas over tiles just create add the object objSolid
over the tile you want to make solid.
Signs:
To create signs just add an objSign object and ctrl+right click it and
go to the creation code. Set text = "blah blah"
e.g
text = "Hellow world"
Chests:
To add chests just add the objChest object and ctrl+right click and click
creation code. set the variable item to the name of the object you
want to appear in the chest (from the items folder in the objects folder)
example
item = objHealth
Setting variables:
You can save variables to a players account so when theylog back in
they will still be set. So if you're making your own objects than
the script setvariable and getvariable will come in handy.
getvariable(name) returns the value of a variable stored on the
players account.
e.g
hasbomb= getvariable("hasbomb");
setvariable(name, value) sets a variable to the players account.
e.g setvariable("hasbomb", 1);
i used these scripts for the bomb and arrow weapons.