Graal Forums  

Go Back   Graal Forums > Private forums > Graal4 Forums > Graal V4 Main Forum
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 02-21-2006, 11:07 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
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
  #2  
Old 02-22-2006, 12:36 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 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();
}
}
  #3  
Old 02-22-2006, 02:24 AM
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
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.
  #4  
Old 02-22-2006, 03:16 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
  #5  
Old 02-22-2006, 05:07 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 ApothiX
You can't trigger from serverside to clientside in a Local NPC, AFAIK.
umm....
....
That was meant to be two different npcs....
 


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 11:56 PM.


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