Files
Amon_PRC8/_module/nss/x1_playerlevelup.nss
Jaysyn904 22d435b0f1 2026/06/09 Update
Moved Player Tool check from Heartbeat to onEnter & onLevelup.
Added Trash Barrel to several areas.
Updated ms_name_inc
2026-06-09 08:41:07 -04:00

37 lines
980 B
Plaintext

//::///////////////////////////////////////////////
//:: x1_playerlevelup
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Levels up the player's henchman
*/
//:://////////////////////////////////////////////
//:: Created By:
//:: Created On:
//:://////////////////////////////////////////////
#include "x0_i0_henchman"
#include "hench_i0_henutil"
void main()
{
// SpawnScriptDebugger();
object oPC = GetPCLevellingUp();
while (GetIsObjectValid(oPC))
{
if (!GetHasFeat(FEAT_PLAYER_TOOL_01, oPC))
{
object oHide = GetItemInSlot(INVENTORY_SLOT_CARMOUR, oPC);
if (GetIsObjectValid(oHide))
{
FloatingTextStringOnCreature("Player Tool 1 acquired. Use this to direct companions.", oPC, FALSE);
AddItemProperty(DURATION_TYPE_PERMANENT, ItemPropertyBonusFeat(IP_CONST_FEAT_PLAYER_TOOL_01), oHide);
}
}
oPC = GetNextPC();
}
CopyFamiliarAnimalCompanionItems(oPC);
LevelUpXP1Henchman(oPC);
}