Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-05-2005, 02:45 PM
Raeiphon Raeiphon is offline
I never asked for this.
Join Date: Jun 2005
Posts: 855
Raeiphon is on a distinguished road
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.

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!
__________________

I hope for nothing. I fear nothing. I am free.
Reply With Quote
  #2  
Old 10-05-2005, 08:45 PM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
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.

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
Reply With Quote
  #3  
Old 10-06-2005, 01:33 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
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.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #4  
Old 10-06-2005, 01:26 PM
Raeiphon Raeiphon is offline
I never asked for this.
Join Date: Jun 2005
Posts: 855
Raeiphon is on a distinguished road
Thanks.

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

I hope for nothing. I fear nothing. I am free.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:21 AM.


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