Spot and Listen events:
bInvisible = StringToInt(NWNX_Events_GetEventData("TARGET_INVISIBLE"));
bInvisibleBefotre = StringToInt(NWNX_Events_GetEventData("BEFORE_RESULT"));
Always returns 0
Because of this, it is unclear when the character was found or when it was hidden.
As OBJECT_SELF I used NPC
Reveal plugin
Did I understand correctly that these functions serve with an event Spot and Listen?
I used them in Spot and Listen events.
Functions from the plugin do not change anything.
D [19:43:16] [NWNX_Events] [Events.cpp:203] Dispatching notification for event 'NWNX_ON_DO_SPOT_DETECTION_BEFORE' to script 'td_spot_bef'.
D [19:43:16] [NWNX_Core] [Events.inl:9] Pushing argument 'TARGET'. Event 'GET_EVENT_DATA', Plugin: 'NWNX_Events'.
D [19:43:16] [NWNXLib] [Events.cpp:40] Calling event handler. Event 'GET_EVENT_DATA', Plugin: 'NWNX_Events'.
D [19:43:16] [NWNX_Events] [Events.cpp:189] Getting event data: 'TARGET' -> '7ffffffd'.
D [19:43:16] [NWNX_Core] [Events.inl:38] Returning value '7ffffffd'. Event 'GET_EVENT_DATA', Plugin: 'NWNX_Events'.
D [19:43:16] [NWNX_Core] [Events.inl:9] Pushing argument '7ffffffd'. Event 'StringToObject', Plugin: 'NWNX_Object'.
D [19:43:16] [NWNXLib] [Events.cpp:40] Calling event handler. Event 'StringToObject', Plugin: 'NWNX_Object'.
D [19:43:16] [NWNX_Core] [Events.inl:38] Returning value '7ffffffd'. Event 'StringToObject', Plugin: 'NWNX_Object'.
D [19:43:16] [NWNX_Core] [Events.inl:9] Pushing argument 'TARGET_INVISIBLE'. Event 'GET_EVENT_DATA', Plugin: 'NWNX_Events'.
D [19:43:16] [NWNXLib] [Events.cpp:40] Calling event handler. Event 'GET_EVENT_DATA', Plugin: 'NWNX_Events'.
D [19:43:16] [NWNX_Events] [Events.cpp:189] Getting event data: 'TARGET_INVISIBLE' -> '0'.
D [19:43:16] [NWNX_Core] [Events.inl:38] Returning value '0'. Event 'GET_EVENT_DATA', Plugin: 'NWNX_Events'.
D [19:43:16] [NWNX_Core] [Events.inl:9] Pushing argument '1'. Event 'RevealTo', Plugin: 'NWNX_Reveal'.
D [19:43:16] [NWNX_Core] [Events.inl:9] Pushing argument '11478'. Event 'RevealTo', Plugin: 'NWNX_Reveal'.
D [19:43:16] [NWNX_Core] [Events.inl:9] Pushing argument '7ffffffd'. Event 'RevealTo', Plugin: 'NWNX_Reveal'.
D [19:43:16] [NWNXLib] [Events.cpp:40] Calling event handler. Event 'RevealTo', Plugin: 'NWNX_Reveal'.
D [19:43:16] [NWNXLib] [Events.cpp:40] Calling event handler. Event 'SKIP_EVENT', Plugin: 'NWNX_Events'.
D [19:43:16] [NWNX_Events] [Events.cpp:279] Skipping last event.
Spot and Listen events: bInvisible = StringToInt(NWNX_Events_GetEventData("TARGET_INVISIBLE")); bInvisibleBefotre = StringToInt(NWNX_Events_GetEventData("BEFORE_RESULT")); Always returns 0 Because of this, it is unclear when the character was found or when it was hidden. As OBJECT_SELF I used NPC
Reveal plugin Did I understand correctly that these functions serve with an event Spot and Listen? I used them in Spot and Listen events. Functions from the plugin do not change anything.
etc...