2025/06/22 Update
Fixed Vow of Poverty. Fixed Vow of Poverty bonus feats not being restored onClientEnter. Added PRC option for spontaneous casters unlearning spells (@Rakiov) Gloura was double dipping caster level. Added NUI levelup spellpicker for most AMS classes (@Rakiov) Tweaked Tactical Insight. Updated ToB maneuver TLK entries to display correct prerequisites.
This commit is contained in:
27
nwn/nwnprc/trunk/scripts/prc_nui_dsc_evnt.nss
Normal file
27
nwn/nwnprc/trunk/scripts/prc_nui_dsc_evnt.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: PRC Spell Description NUI Events
|
||||
//:: prc_nui_dsc_evnt
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
This is the event logic used for the spell description nui
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Rakiov
|
||||
//:: Created On: 20.06.2005
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "prc_nui_consts"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPlayer = NuiGetEventPlayer();
|
||||
int nToken = NuiGetEventWindow();
|
||||
string sEvent = NuiGetEventType();
|
||||
string sElement = NuiGetEventElement();
|
||||
string sWindowId = NuiGetWindowId(oPlayer, nToken);
|
||||
|
||||
// if the OK button was clicked then we close the window.
|
||||
if (sElement == NUI_SPELL_DESCRIPTION_OK_BUTTON)
|
||||
DelayCommand(0.1f, NuiDestroy(oPlayer, nToken));
|
||||
}
|
||||
|
Reference in New Issue
Block a user