Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   trigger() help (https://forums.graalonline.com/forums/showthread.php?t=70901)

Chompy 12-20-2006 09:17 PM

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?

Gambet 12-20-2006 09:57 PM

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.

Chompy 12-20-2006 10:38 PM

Quote:

Originally Posted by Gambet (Post 1255737)
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 :)

Gambet 12-20-2006 10:40 PM

Quote:

Originally Posted by Chompy (Post 1255754)
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.


All times are GMT +2. The time now is 08:19 PM.

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