View previous topic :: View next topic |
Author |
Message |
max196
Joined: 26 Jun 2008 Posts: 30
|
Posted: Mon Sep 22, 2008 19:55 Post subject: |
|
|
Is there a way to catch the "set trap" event?
Using skill event set_trap do not catch any event? Is it normal? |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Mon Sep 22, 2008 23:00 Post subject: |
|
|
It's possible catch it in OnUnacquire event.
example:
Code: | object oItem = GetModuleItemLost();
object oPC = GetModuleItemLostBy();
if(GetSkillRank(SKILL_SET_TRAP,oPC,TRUE)>0 && GetItemHasItemProperty(oItem,ITEM_PROPERTY_TRAP))
{
object oTrapped = GetNearestTrapToObject(oPC,FALSE);
} |
but I think its not reliable and it deserve nwnx event _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
FunkySwerve
Joined: 02 Jun 2005 Posts: 377
|
Posted: Tue Sep 23, 2008 1:24 Post subject: |
|
|
It's reliable, just hacky. There's a trap system on the vault that uses it, and HG used it for years without issue. Also, if I remember correctly, it makes getting the set trap, as opposed to the kit that was unacquired, more complicated. All in all, I think an event would be nice, if unnecessary.
Funky |
|
Back to top |
|
|
jec2
Joined: 17 Jul 2008 Posts: 49
|
Posted: Mon Sep 29, 2008 20:09 Post subject: |
|
|
acaos wrote: | scarface wrote: | Any news on my request? |
I did some research and it would take a while to do. However, using instant feats doesn't disable attacking - you might consider using those instead.
jec2 wrote: | Occasionally getting this message :
EVENTS: OnCreate() failed. |
You'll need to post the output of the nwnx_events.txt log as well.
Acaos |
Thanks, sorry it took so long. I had to catch it when it happened in order to get the log file, as it is overwritten at every reset.. it has happened quite often, but i haven't had time to monitor it, so much that i could have posted this sooner..
Anyway, here is the log file you requested for this issue..
Thanks.
NWNX Events version 1.3.1 for Linux.
(c) 2006-2008 by virusman (virusman@virusman.ru)
X Could not find SaveChar function or hook failed: 0
X Could not find ActPickPocket function or hook failed: 0
X Could not find ActAttack function or hook failed: 0
X Could not find UseItem function or hook failed: 0
X Could not find ConversationNodeSelect function or hook failed: 0
X Could not find ConditionalScript function or hook failed: 0
X Could not find SendServerToPlayerQuickChatMessage function or hook failed: 0
X Could not find ExamineItem function or hook failed: 0
X Could not find ExamineCreature function or hook failed: 0
X Could not find ExaminePlaceable function or hook failed: 0
X Could not find ExamineDoor function or hook failed: 0
X Could not find UseSkill function or hook failed: 0
X Could not find UseFeat function or hook failed: 0
X Could not find ToggleMode function or hook failed: 0
X Could not find CastSpell function or hook failed: 0
X Could not find TogglePause function or hook failed: 0
X Could not find PossessFamiliar function or hook failed: 0
! RunProc hooked at 8261f94. |
|
Back to top |
|
|
gabonacorp
Joined: 27 Dec 2007 Posts: 12
|
Posted: Mon Oct 20, 2008 23:59 Post subject: |
|
|
hi,
I downloaded 1.2.2, but I can't find CastSpell event in it. Do I remember wrong when I expect CastSpell event? |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Tue Oct 21, 2008 0:26 Post subject: |
|
|
gabonacorp wrote: | hi,
I downloaded 1.2.2, but I can't find CastSpell event in it. Do I remember wrong when I expect CastSpell event? | The version with CastSpell has not been officially released yet. |
|
Back to top |
|
|
gabonacorp
Joined: 27 Dec 2007 Posts: 12
|
Posted: Tue Oct 21, 2008 16:40 Post subject: |
|
|
Can I count on it in the near future? |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Mon Oct 27, 2008 15:42 Post subject: |
|
|
Yes, but the current version needs testing before release. |
|
Back to top |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Mon Oct 27, 2008 17:21 Post subject: |
|
|
We've been using the current version very, very extensively on HG for months without issues.
Acaos |
|
Back to top |
|
|
jec2
Joined: 17 Jul 2008 Posts: 49
|
Posted: Tue Nov 11, 2008 9:46 Post subject: Events errors from latest events log(svn 190) |
|
|
NWNX Events version 1.3.1 for Linux.
2006-2008 by virusman (virusman@virusman.ru)
! SaveChar hooked at 805d910.
! ActPickPocket hooked at 810a3f4.
! ActAttack hooked at 81188d4.
! UseItem hooked at 81159bc.
! ConversationNodeSelect hooked at 823deac.
! ConditionalScript hooked at 823cab0.
! SendServerToPlayerQuickChatMessage hooked at 8068dec.
! ExamineItem hooked at 8073f9c.
! ExamineCreature hooked at 8073958.
! ExaminePlaceable hooked at 8074668.
! ExamineDoor hooked at 8074c50.
! UseSkill hooked at 812b1d8.
! UseFeat hooked at 812a004.
! ToggleMode hooked at 812bcb4.
! CastSpell hooked at 811610c.
X Could not find TogglePause function or hook failed: 0
X Could not find PossessFamiliar function or hook failed: 0
! RunProc hooked at 8261f94.
not a big deal, but thought id post so you can see it..
thanks.
jec2 |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Wed Nov 12, 2008 12:47 Post subject: |
|
|
NWNX Events 1.3.1 (Linux)
http://data.virusman.ru/nwn/nwnx_events-1.3.1-linux.rar
- New events:
- EVENT_TYPE_CAST_SPELL (Acaos)
- EVENT_TYPE_TOGGLE_PAUSE (elven)
- EVENT_TYPE_POSSESS_FAMILIAR (elven)
- New function:
Code: | void SetGlobalEventHandler(int nEventID, string sHandler); |
|
|
Back to top |
|
|
max196
Joined: 26 Jun 2008 Posts: 30
|
Posted: Sun Dec 14, 2008 15:00 Post subject: |
|
|
Is there a way to get the "cancel polymorph" event?
Thanks,
Max |
|
Back to top |
|
|
Nob
Joined: 16 Apr 2005 Posts: 21
|
Posted: Wed Feb 18, 2009 10:24 Post subject: |
|
|
So far in my experimenting it appears that the toggle mode hook only works when a mode is explicitly toggled, rather than when it's activated/deactived by another means. (eg attacking out of stealth, moving while in expertise)
Is there anyway we can have toggle mode work regardless of what triggers the mode to be activated or deactivated? |
|
Back to top |
|
|
Nob
Joined: 16 Apr 2005 Posts: 21
|
Posted: Thu Feb 19, 2009 0:19 Post subject: |
|
|
Also future requests:
Could we possibly get an on counterspell event as well similar to the present events? It'd be nice to be able to bypass event under certain circumstances. |
|
Back to top |
|
|
Zunath
Joined: 06 Jul 2006 Posts: 183
|
Posted: Wed Mar 04, 2009 17:18 Post subject: |
|
|
It's probably a lost cause, but is there any chance we'll see the SelectConversationNode events for Windows? |
|
Back to top |
|
|
|