Moved Player Tool check from Heartbeat to onEnter & onLevelup. Added Trash Barrel to several areas. Updated ms_name_inc
37 lines
980 B
Plaintext
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);
|
|
} |