PRC8/nwn/nwnprc/trunk/scripts/prc_nui_dsc_evnt.nss
Jaysyn904 a882749366 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.
2025-06-22 19:40:24 -04:00

28 lines
835 B
Plaintext

//::///////////////////////////////////////////////
//:: 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));
}