Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-22-2005, 08:06 PM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
Triggers to the clientside

Do triggers to the clientside work with the new engine?

I have an NPC weapon.
It sends a trigger to a DB.
The DB extracts the data requested.
The DB returns the data to the player.

The problem is, once it returns to the player I need it to send an action to the clientside, telling the weapon that it got the data. It doesn't receive the trigger to the client.

NPC Code:
function onReturnData(category,list) {
triggeraction(0,0,"clientside",#N,category,list);
}
//#CLIENTSIDE
function onActionClientside() {
player.chat = "Received.";
}




onReturnData is being called properly.
onActionClientside isn't being called at all.

And I don't have v4, so triggerclient isn't an option.
Reply With Quote
  #2  
Old 06-22-2005, 09:53 PM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
Try onactionclientside

I do believe that triggeractions are Case Sensitive.

EDIT:
I do believe there is a triggerclient function as well. Might want to check into it.
__________________
In a world of change... Who'll you believe?
Reply With Quote
  #3  
Old 06-22-2005, 10:04 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
If Velox's suggestions don't work, try changing #N to the weapon's name. Maybe mixing old GScript with new is causing problems.
Reply With Quote
  #4  
Old 06-22-2005, 11:23 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by Velox Cruentus
I do believe that triggeractions are Case Sensitive.
Nope.
__________________
Liek omigosh.

Reply With Quote
  #5  
Old 06-23-2005, 04:13 PM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
Nope, I've already tried both. :/
Reply With Quote
  #6  
Old 06-23-2005, 04:37 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
If you are using the new engine, why are you using old engine constructs?

HTML Code:
function onReturnData(category, list)
{
  player.triggerclient(player.weapon.name, temp.category, temp.list);
}

//#CLIENTSIDE
function onActionClientside()
{
  player.chat = "Received.";
}
Reply With Quote
  #7  
Old 06-23-2005, 04:40 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by Rick
If you are using the new engine, why are you using old engine constructs?
"And I don't have v4, so triggerclient isn't an option. "
__________________
Reply With Quote
  #8  
Old 06-23-2005, 05:30 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Quote:
Originally Posted by Kaimetsu
"And I don't have v4, so triggerclient isn't an option. "
triggerclient is serverside. So it works fine.
Reply With Quote
  #9  
Old 06-23-2005, 05:34 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by Rick
triggerclient is serverside. So it works fine.
I'm not saying that I agree with his reason. I'm just pointing out that he did post one.
__________________
Reply With Quote
  #10  
Old 06-23-2005, 05:37 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Quote:
Originally Posted by Kaimetsu
I'm not saying that I agree with his reason. I'm just pointing out that he did post one.
Oh, whoops. I missed that bit at the end of his post.
Reply With Quote
  #11  
Old 06-24-2005, 06:23 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Would be nice if save[index] could save strings/arrays aswell.
__________________
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 03:05 PM.


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