PRC8/nwn/nwnprc/trunk/scripts/prc_onplayernui.nss
Jaysyn904 6b1d73cbfb 2025/06/21 Update
Update NUI spellbook notes.
Magic staves are quarterstaves.
Champion of Torm & Eldritch Knight were missing a fighter bonus feat.
Added an entry for Risen Reunited in epicspells.2da.
Fixed icon for ImpCrit Goad.
Unseen Seen & Ult. Magus's spellcasting marker feats names were swapped.
Added more sanity checking to Luminous Armor.
Updated Warforged & Warforged Chargers descriptions.
Enlightened Fist requires Arcane CL 2 not 2nd Circle spells.
No such thing as Luck AC in NWN.
Added sanity check for Blackguard's Aura.
Updated NUI spellcasting menu.
2025-06-20 18:52:50 -04:00

38 lines
963 B
Plaintext

//::///////////////////////////////////////////////
//:: NUI Events
//:: prc_onplayernui (hp_nui_events)
//:://////////////////////////////////////////////
/*
This handles any NUI events and sends them to
appropriate NUI Event handler depending on the
window Id
*/
//:://////////////////////////////////////////////
//:: Created By: Rakiov
//:: Created On: 22.05.2005
//:://////////////////////////////////////////////
#include "prc_nui_consts"
void main()
{
object oPlayer = NuiGetEventPlayer();
int nToken = NuiGetEventWindow();
string sWindowId = NuiGetWindowId(oPlayer, nToken);
// Open the Power Attack NUI
if(sWindowId == NUI_PRC_POWER_ATTACK_WINDOW)
{
ExecuteScript("prc_nui_pa_event");
}
// Open the Spellbook NUI
if(sWindowId == PRC_SPELLBOOK_NUI_WINDOW_ID
|| sWindowId == NUI_SPELL_DESCRIPTION_WINDOW_ID)
{
ExecuteScript("prc_nui_sc_event");
}
return;
}