Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   A multitude of questions. (https://forums.graalonline.com/forums/showthread.php?t=61606)

Raeiphon 10-05-2005 02:45 PM

A multitude of questions.
 
I'm remaking a jousting arena requested, and I'd like some help and input.

Is there any way to make a respawning bush? Like the one in unholy nation horse barn.

How can you edit tiles, in a simple way, that I can understand? I was told about tile arrays, but i'm completely confused. :confused:

Also, would you prefer a jousting arena where you run along side by side (real life jousting) or the graal equivelent, where you practically spar on a horse.

Thanks for your time!

ChibiChibiLuc 10-05-2005 08:45 PM

Quote:

Originally Posted by Raeiphon
I'm remaking a jousting arena requested, and I'd like some help and input.

Is there any way to make a respawning bush? Like the one in unholy nation horse barn.

How can you edit tiles, in a simple way, that I can understand? I was told about tile arrays, but i'm completely confused. :confused:

Also, would you prefer a jousting arena where you run along side by side (real life jousting) or the graal equivelent, where you practically spar on a horse.

Thanks for your time!


O_o Well, I'll answer one question..

The only way to respawn a bush is to update the level or replace the tiles.

tiles[x,y] is the tile of x,y
To change it, you go to the tileset in the editor.
Move your mouse to the tile you want to use.
You'll see a number like (162,9)
To change a tile to that tile, you'd use: tiles[x,y] = 162 + 9 * 16;
If you wanted to use the tile 8,3, you'd use: tiles[x,y] = 8 + 3 * 16;
After you change tiles, you have to use updateboard so the new tiles appear.
updateboard(x,y,width,height);

updateboard(x,y,1,1); will show the changes you made to that one tile.
updateboard(x,y,2,2); will show the changes you made to the tiles in a 2x2 box

ForgottenLegacy 10-06-2005 01:33 AM

Quote:

Originally Posted by Raeiphon
Is there any way to make a respawning bush? Like the one in unholy nation horse barn.

Bushes, by normal, respawn on their own. In the serveroptions, have the 'respawntime' option set to 3 or 4, for 3 or 4 seconds. That controls how often they respawn.

Raeiphon 10-06-2005 01:26 PM

Thanks.

Is there any way to set that in the offline test?


All times are GMT +2. The time now is 02:35 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.