Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   with (npcs[index]) question (https://forums.graalonline.com/forums/showthread.php?t=52915)

Googi 05-31-2004 04:48 AM

with (npcs[index]) question
 
When I use the command it invokes the command on the NPC that the with (npcs[index]) command is on, not the NPC of the specified index.

For example, say that I had two NPCs, one with an index of 0, and the other with an index of 1, and I put in a command like this into NPC 0.

NPC Code:
if (playerenters) {
with (npcs[1]) {
destroy;
}
}



Then if I enter the level, it's the NPC with the index of 0 that gets destroyed, not the one with the index of 1.

Does with (npcs[index]) only work online, or am I just using it wrong?

Python523 05-31-2004 04:59 AM

offline it ignores the with statements


All times are GMT +2. The time now is 12:44 AM.

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