Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graal V4 Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=143)
-   -   ughhh help (https://forums.graalonline.com/forums/showthread.php?t=64261)

Warcaptain 02-21-2006 11:07 AM

ughhh help
 
first off id like to say.. making npcs in the editor and then uploading them is LAME and realllllllly sucks.. i cant wait til Er1c finishes the online level editor..

now... im making an NPC.. its supposed to trigger a door in the level to open when you touch the npc.. clientside though so it wont open for everyone.

BUT.. its not working.. no idea what to do and im frustrated

on top of that.. this.ani npc.ani and ani= do not work clientside in local npcs
also.. message() and this.chat npc.chat chat= do not work either

so.. grrrr

ontop of that.. i summoned up this error in f2 window:

GraalScript: Function setSelection not found in script of StartScript_GraalGui
GraalScript: Function makeFirstResponder not found in script of StartScript_GraalGui

jake13jake 02-22-2006 12:36 AM

Quote:

Originally Posted by Warcaptain
now... im making an NPC.. its supposed to trigger a door in the level to open when you touch the npc.. clientside though so it wont open for everyone.

don't know if this would work. Might need to do triggeraction instead. I know triggeraction triggers both serverside and clientside in v4.

npcs[i].trigger("DoorOpen",player.account);

//#CLIENTSIDE

function onDoorOpen(acct) {
if (player.account == acct)
hide();
sleep(time);
show();
}
}

Admins 02-22-2006 02:24 AM

Hmmm I normally add npcs by editing the level file (edit as text) or adding a dbnpc. With online editor it should be much better though.
I have no idea why this.chat or this.ani are not working for you though.

ApothiX 02-22-2006 03:16 PM

Quote:

Originally Posted by jake13jake
don't know if this would work. Might need to do triggeraction instead. I know triggeraction triggers both serverside and clientside in v4.

npcs[i].trigger("DoorOpen",player.account);

//#CLIENTSIDE

function onDoorOpen(acct) {
if (player.account == acct)
hide();
sleep(time);
show();
}
}

You can't trigger from serverside to clientside in a Local NPC, AFAIK.

jake13jake 02-22-2006 05:07 PM

Quote:

Originally Posted by ApothiX
You can't trigger from serverside to clientside in a Local NPC, AFAIK.

umm....
....
That was meant to be two different npcs....


All times are GMT +2. The time now is 06:31 PM.

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