2025/12/12 Update

Updated PEPS
Hooked up module GUI event for spell effect manager.
Updated nim tools.
Full compile.
This commit is contained in:
Jaysyn904
2025-12-12 14:33:30 -05:00
parent 36565033c9
commit e2ef284388
411 changed files with 13207 additions and 9627 deletions

View File

@@ -16,7 +16,7 @@ void main()
//SetLocalInt (oPC, AI_NO_NUI_SAVE, TRUE);
//DelayCommand (0.5f, DeleteLocalInt (oPC, AI_NO_NUI_SAVE));
string sText = " [Single player]";
if(AI_SERVER) sText = " [Server]";
if(ai_GetIsServer()) sText = " [Server]";
// ************************************************************************* Width / Height
// Row 1 ******************************************************************* 500 / 73
json jRow = JsonArrayInsert(JsonArray(), NuiSpacer());
@@ -30,25 +30,31 @@ void main()
// Add row to the column.
jCol = JsonArrayInsert(jCol, NuiRow(jRow));
// Row 3 ******************************************************************* 500 / 101
sText = "Monster AI (nw_c2_default1): " + ResManGetAliasFor("nw_c2_default1", RESTYPE_NCS);
jRow = CreateLabel(JsonArray(), sText, "monster_1_ai", 470.0f, 20.0f, NUI_HALIGN_CENTER);
// Add row to the column.
jCol = JsonArrayInsert(jCol, NuiRow(jRow));
sText = ResManGetAliasFor("nw_c2_default1", RESTYPE_NCS);
if(sText != "")
{
jRow = CreateLabel(JsonArray(), "Monster AI (nw_c2_default1): " + sText, "monster_1_ai", 470.0f, 20.0f);
jCol = JsonArrayInsert(jCol, NuiRow(jRow));
}
// Row 4 ******************************************************************* 500 / 157
sText = "Monster AI (j_ai_onheartbeat): " + ResManGetAliasFor("j_ai_onheartbeat", RESTYPE_NCS);
jRow = CreateLabel(JsonArray(), sText, "monster_2_ai", 470.0f, 20.0f, NUI_HALIGN_CENTER);
// Add row to the column.
jCol = JsonArrayInsert(jCol, NuiRow(jRow));
sText = ResManGetAliasFor("j_ai_onheartbeat", RESTYPE_NCS);
if(sText != "")
{
jRow = CreateLabel(JsonArray(), "Monster AI (j_ai_onheartbeat): " + sText, "monster_2_ai", 470.0f, 20.0f);
jCol = JsonArrayInsert(jCol, NuiRow(jRow));
}
// Row 5 ******************************************************************* 500 / 213
sText = "Associate AI (nw_ch_ac1): " + ResManGetAliasFor("nw_ch_ac1", RESTYPE_NCS);
jRow = CreateLabel(JsonArray(), sText, "henchman_ai", 470.0f, 20.0f, NUI_HALIGN_CENTER);
// Add row to the column.
jCol = JsonArrayInsert(jCol, NuiRow(jRow));
sText = ResManGetAliasFor("nw_ch_ac1", RESTYPE_NCS);
if(sText != "")
{
jRow = CreateLabel(JsonArray(), "Associate AI (nw_ch_ac1): " + sText, "henchman_ai", 470.0f, 20.0f);
jCol = JsonArrayInsert(jCol, NuiRow(jRow));
}
// Row 6 ******************************************************************* 500 / 241
jRow = JsonArrayInsert(JsonArray(), NuiSpacer());
jRow = CreateButton(jRow, "Set NPC's scripts", "btn_npc_scripts", 150.0f, 20.0f, -1.0, "btn_npc_scripts_tooltip");
jRow = JsonArrayInsert(jRow, NuiSpacer());
jRow = CreateButton(jRow, "Set Reputations", "btn_set_reputation", 150.0f, 20.0f, -1.0, "btn_set_reputation_tooltip");
jRow = CreateButton(jRow, "Set Commandable", "btn_set_commandable", 150.0f, 20.0f, -1.0, "btn_set_commandable_tooltip");
jRow = JsonArrayInsert(jRow, NuiSpacer());
jRow = CreateButton(jRow, "Clear Party Rep.", "btn_clear_reputation", 150.0f, 20.0f, -1.0, "btn_clear_reputation_tooltip");
jRow = JsonArrayInsert(jRow, NuiSpacer());
@@ -146,8 +152,8 @@ void main()
// Row 6
NuiSetBind(oPC, nToken, "btn_npc_scripts_event", JsonBool(TRUE));
NuiSetBind(oPC, nToken, "btn_npc_scripts_tooltip", JsonString(" Forces NPC to use Philos AI scripts!"));
NuiSetBind(oPC, nToken, "btn_set_reputation_event", JsonBool(TRUE));
NuiSetBind(oPC, nToken, "btn_set_reputation_tooltip", JsonString(" Sets a creatures faction to neutral for all standard factions."));
NuiSetBind(oPC, nToken, "btn_set_commandable_event", JsonBool(TRUE));
NuiSetBind(oPC, nToken, "btn_set_commandable_tooltip", JsonString(" Sets a creatures to commandable."));
NuiSetBind(oPC, nToken, "btn_clear_reputation_event", JsonBool(TRUE));
NuiSetBind(oPC, nToken, "btn_clear_reputation_tooltip", JsonString(" Clears the party's reputation with creature's faction."));
// Row 7