Credit goes to original creator: Virusman. Squatting Monk and Zebranky for their work with the examine hooks.
A version of the nwnx_events that has been fixed to work with 1.69. It does not use a GetLocalObject hook anymore but gets its event target by other means,obj id. Compiled with Visual studio 2008. Runtimes here: Link
Functions:
//Returns TRUE is nwnx_events.dll is responding
int GetNWNXEventsAlive( );
//Returns the type of event that triggered the nwnx event script
int GetNWNXEventType( );
//Returns the target that caused OBJECT_SELF to trigger the nwnx event
object GetNWNXEventTarget( );
!Updated! object hook now works again. Available events include:
DownloadCharacter( ) triggers when a PC clicks "save character" in the options menu.
Pickpocket( ) triggers when someone clicks the pickpocket. NWNX target is the attempted target.
Attack( ) triggers when a PC clicks to engage. NWNX target is the PLC or creature engaged by the PC.
Examine( ) triggers when someone examines something. NWNX target is the object examined.
ToggleMode( ) triggers when any mode (expect stealth) is toggled by the player. It sadly doesn't detect if the game toggles it for the PC.
StealthMode( ) triggers when a PC enters or exits stealth by any means (scripts, engien, toggle, etc). Hooked this because the above one doesnt detect if the PC exits stealth due to hitting things/castingspells etc.
DevastatingCritical( ) this one fires on all critical hits (unless the creature is immune) and the check if the creature is entitled to devastating is made ingame (function for this is provided). The game never rolls the devastating critical roll but fires the script instead and treats the cirtical hit as a normal crit. Recommended to use if( !GetIsPC( oPC ) )return; before doing the actual code. NWNX target is the item used and GetAttackTarget is used to get the person taking the beating.
UnPolymorph( ) triggers upon unshifting. The PC is still "polymorphed" when this one fires.
TrapTrigger( ) triggers before the normal on_enterscript. NWNX target is the trap triggered.
EndDialog( ) triggers when a PC escapes a converation either by pressing esc or running away.
RemoveSanctuary( ) triggers whenever a sanctuary effect is removed from a creature.
All hooks can be turned off/on as desired with the nwnx.ini parameters provided.
Posted by OldTimeRadio at 2011-01-07 12:17:59 Voted 10.00 on 01/07/11
This is really great work and I hope you continue! I'm experimenting with it as part of an alternate firearm system developed by GiveMeDeath (look under my submissions).
case EVENT_ATTACK:
AssignCommand( oPC, (SetFacingPoint(GetPosition(oTarget))));
//STOP ATTACKING - works very quickly//
AssignCommand( oPC, ClearAllActions( TRUE));
AssignCommand( oPC, ActionPlayAnimation(ANIMATION_LOOPING_CUSTOM3, 10.0, 0.3));
That sort of thing. So instead of cannibalizing an existing ranged weapon or the futility of trying to make a new one, all the animations are moved over to custom looping and firearm combat is simulated.
Posted by Coolty3000 at 2010-06-11 23:40:06 Voted 9.00 on 06/11/10
Very cool. We extensively use this plugin on our server. One of the problems I've noticed is that the OnExamine event doesn't fire for items that aren't in the examiner's inventory.
For example, it doesn't fire when a DM examines a player's item or a player examines an item in a placeable container. It's only a minor problem but it would be great if you could find a fix for it.
Also, how difficult would it to port the OnUseItem event over from Linux? I would like to bypass the animation that plays when players use unique properties on items. I've done it on Linux but this plugin doesn't seem to have that functionality.
Overall, I am very impressed! Keep up the great work! :)
Posted by Ben Harrison at 2010-05-04 11:43:50 Voted 10.00 on 05/04/10
Posted by Aedrielle at 2010-04-23 03:47:35 Voted 10.00 on 04/23/10
Terra, you the gratest ;)
Thank you very much.
Posted by Squatting Monk at 2009-11-15 15:06:20 Voted 10.00 on 11/15/09
Thanks for this, I was hoping someone would fix this so I could play with NWNX toys again. :) _________________________ Shadows & Silver PW Development Blog
You must be Logged In to post comments in this section.