Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   NPC prob (https://forums.graalonline.com/forums/showthread.php?t=217)

Psyker 03-15-2001 12:18 AM

How would I be able to put an NPC on top of another NPC?

For example, say I have a shelf npc, and I want to put a beer npc on top... how would I do that?

(I've tried already, either one of the npcs disappear on the bottom and can't be seen)

galen 03-15-2001 12:55 AM

create the shelf npc first, then the beer npc. npcs are displayed in the order which they were created

Lycia 03-15-2001 12:58 AM

Holy hell.

I didn't know that.

Psyker 03-15-2001 02:13 AM

okay, I'll try that. thanks galen.

Tyhm 03-15-2001 02:52 AM

Erm...
 
In the editor, that's often true....
At runtime though, it goes layer first (drawoverplayer beats regular beats drawunderplayer), then base Y (objects that touch the ground more to the south are drawn over same-layer objects "behind" them to the north.)

grim_squeaker_x 03-15-2001 06:48 PM

Hmm...
 
Well I tihnk that if you give the shelf drawunderplayer and the beer just plain nothing that it gets drawn over the shelf ^^, but anywho if you are making use of changeimgvis here's the true explanation of it:

changeimgvis index,0; Means drawunderplayer.
changeimgvis index,1; Means Drawasplayer, I.E. if a player is standing in front of it hes drawn over it, but if he stands besides it he's draw under it.
changeimgvis index,2; Means drawoverplayer. (Default)
changeimgvis index,4; Means draw as stat, this type of showimg also work slightly different and isn't effected by seteffect effects and is drawn over everything always.

Mustang1988 03-20-2001 08:49 AM

hehehe
 
Quote:

Originally posted by Lycia
Holy hell.

I didn't know that.

Hehehe... I KNEW THAT! lol

FatherDante 03-21-2001 08:49 AM

I found that out making my quest, I had a ton of NPCs in a row.

Psyker 03-23-2001 08:24 AM

Yay! Now the NPCs work, w00h00!


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

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