Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-16-2006, 10:14 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Setting variables when a player enters a level

Alright.. I have a ladder NPC.
When the player enters the level, I want each ladder to tell the player where it is. A system handles climbing, based on this information.

When the player enters the level, it adds the ladder's ID to one array (ladders) and it adds the ladder's area to another array (ladder#).

When the player enters, the system clears the ladders, so old ladder placements aren't carried into the level.


However, the ladder ID array is randomly being erased. I'm guessing it's by the clearing of ladders when the player enters.
I tried making it set the ladder ID array after .5 seconds, but it still doesn't work.
The ladders array just randomly clears itself; if I update the level or relog, it works. However, like I said, after a while it clears itself for no reason.

Any ideas?
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:46 AM.


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