Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-20-2006, 08:23 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
NPCs in other levels not loading?

I'm not sure if gmaps have always acted like this, but NPC scripts outside the player's level on a gmap aren't running.

I have a ladder that draws itself on the clientside, using showimg. However, the showimg hides if the player leaves the single level with the NPC in it.
So, if I'm a level below, I won't see the ladder. If I'm a level to the left, I won't see the ladder.

Is there any way to change/fix this?

EDIT: Kai, well Skyld cleared it up. Clientside only uses the one level you're in, on the gmap. Is there any way to make it load NPCs outside the level?

Last edited by Yen; 04-20-2006 at 08:54 PM..
Reply With Quote
  #2  
Old 04-20-2006, 11:55 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Yen
I'm not sure if gmaps have always acted like this, but NPC scripts outside the player's level on a gmap aren't running.

I have a ladder that draws itself on the clientside, using showimg. However, the showimg hides if the player leaves the single level with the NPC in it.
So, if I'm a level below, I won't see the ladder. If I'm a level to the left, I won't see the ladder.

Is there any way to change/fix this?

EDIT: Kai, well Skyld cleared it up. Clientside only uses the one level you're in, on the gmap. Is there any way to make it load NPCs outside the level?
Well, I can say your options include to showimg from the level connecting to the outside level, or to just setimg an NPC.
Reply With Quote
  #3  
Old 04-21-2006, 02:24 AM
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
That's too much trouble, these NPCs are made so that idiots can easily place them.. :/

And yeah, the ladder is 3 seperate images; the top, the bottom, and each rung.
Reply With Quote
  #4  
Old 04-21-2006, 02:46 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Yen
That's too much trouble, these NPCs are made so that idiots can easily place them.. :/

And yeah, the ladder is 3 seperate images; the top, the bottom, and each rung.
That's why I love ganis.
Reply With Quote
  #5  
Old 04-21-2006, 12:51 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
I am not sure what the problem is, scripts are ran for all npcs in the surrounding 3x3 levels. The level name #L/#F might not match, but everything else is fine, otherwise the lamps on Era or Kingdoms wouldn't work.
Reply With Quote
  #6  
Old 04-21-2006, 03:35 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
hmm... maybe your NPCs are in a weird level border position (although I doubt it?)?
Reply With Quote
  #7  
Old 04-21-2006, 08:41 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
I tried to put it in a gani, but it still only shows if you're in the same level..
Perhaps it's just me?
If anyone could, log on Aetherforge. The gmap should be 2x3. At the very bottom, you won't see the ladder, but you can still climb it. If you jump up the platforms to your right and go over to the ladder, you'll be able to see it since you entered the same level.

PHP Code:
if (created) {
  
hideimgs(0,100);
  for (
0<= params[0] + 1a++) {
    if (
== 0) {
      
showimg(a,"tom_ladder3.png",x,y);
    }
    else if (
== params[0]+1) {
      
showimg(a,"tom_ladders2.png",x,y+(45/16)+(34/16)*(a-1));
    }
    else {
      
showimg(a,"tom_ladder.png",x,y+(45/16)+(34/16)*(a-1));
    }
    
findimg(a).layer 0;
  }

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 12:27 AM.


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