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 12-20-2006, 09:17 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
trigger() help

Well, I've been searching for quite some time now, but I haven't figured how to use trigger() properly.. ( I figured out it can be triggered like object.trigger(), but I don't know the other params (weapon, function, params, or?))

Here are some things I am wondering about:
  1. How do I use trigger() to trigger a other wnpc, or the same wnpc?
  2. Can anyone explain or show an example of how it's done?
__________________
Reply With Quote
  #2  
Old 12-20-2006, 09:57 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
What exactly are you trying to do?

trigger() is used to call a specified event with specified params, without causing any sort of delay in the script

If you want to trigger to another wNPC, then use triggeraction(). If you want to trigger to the same wNPC, then use triggerserver() or triggeraction().


I don't really see what you may need trigger() for, be a bit more specific.
Reply With Quote
  #3  
Old 12-20-2006, 10:38 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Gambet View Post
What exactly are you trying to do?

trigger() is used to call a specified event with specified params, without causing any sort of delay in the script

If you want to trigger to another wNPC, then use triggeraction(). If you want to trigger to the same wNPC, then use triggerserver() or triggeraction().


I don't really see what you may need trigger() for, be a bit more specific.
Well, I am making a head script, loading text files which contain some info about a skill the script is going to load, then send the info to a wnpc, I thought about trigger(), but I think I can do it with triggerserver() and triggerclient() then
__________________
Reply With Quote
  #4  
Old 12-20-2006, 10:40 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Chompy View Post
Well, I am making a head script, loading text files which contain some info about a skill the script is going to load, then send the info to a wnpc, I thought about trigger(), but I think I can do it with triggerserver() and triggerclient() then

Yeah, I don't think you'd use trigger() for what you're trying to accomplish.
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 12:32 AM.


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