Added Spellcast NUI menu

Added Spellcast NUI menu.
Organized modding tools.
Full compile.
This commit is contained in:
Jaysyn904
2025-05-31 20:09:10 -04:00
parent 67bb78d085
commit 2d439cc179
45 changed files with 136 additions and 74 deletions

BIN
_module/_tools/NWN.CLI.exe Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
_module/_tools/cygwin1.dll Normal file

Binary file not shown.

Binary file not shown.

BIN
_module/_tools/cygz.dll Normal file

Binary file not shown.

View File

@@ -0,0 +1,10 @@
{
"OutputPath": "../output/",
"HakList": [
{
"Name": "amon_prc_top",
"Path": "../hak/amon_prc_top/",
"CompileModels": false
},
]
}

Binary file not shown.

View File

@@ -4962,7 +4962,7 @@
},
"Mod_MinPerHour": {
"type": "byte",
"value": 3
"value": 6
},
"Mod_Name": {
"type": "cexolocstring",
@@ -5024,7 +5024,7 @@
},
"Mod_OnPlrGuiEvt": {
"type": "resref",
"value": ""
"value": "mod_gui"
},
"Mod_OnPlrLvlUp": {
"type": "resref",
@@ -5036,7 +5036,7 @@
},
"Mod_OnPlrTarget": {
"type": "resref",
"value": "prc_onplaytarget"
"value": "hif_onplaytarget"
},
"Mod_OnPlrTileAct": {
"type": "resref",
@@ -5355,6 +5355,21 @@
"type": "int",
"value": 1
}
},
{
"__struct_id": 0,
"Name": {
"type": "cexostring",
"value": "PRC_BIOWARE_INVISIBILITY"
},
"Type": {
"type": "dword",
"value": 1
},
"Value": {
"type": "int",
"value": 1
}
}
]
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -22,9 +22,9 @@ void main()
{
SetMaxHenchmen(2);
SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_NUI_EVENT, "mod_nui");
SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_PLAYER_TARGET, "mod_target");
SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_PLAYER_GUIEVENT, "mod_gui");
//SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_NUI_EVENT, "mod_nui");
//SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_PLAYER_TARGET, "mod_target"); <-- No
//SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_PLAYER_GUIEVENT, "mod_gui");
NUI();

View File

@@ -0,0 +1,6 @@
void main()
{
ExecuteScript("prc_onplaytarget");
ExecuteScript("mod_target");
}

View File

@@ -1,10 +1,41 @@
//::
//:: woa_mod_onnui.nss
//::
//::///////////////////////////////////////////////
//:: NUI Events
//:: woa_mod_onnui (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 "nui_i_main"
#include "prc_nui_consts"
void main()
{
NUI();
object oPlayer = NuiGetEventPlayer();
int nToken = NuiGetEventWindow();
string sWindowId = NuiGetWindowId(oPlayer, nToken);
ExecuteScript("mod_nui");
// 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_sb_event");
}
return;
}