Updated henchman inventory
turned off their combat one-liners and added treasure script to destroy itself 30s after closing
This commit is contained in:
@@ -126,7 +126,7 @@ void main()
|
||||
|
||||
SetLocalObject(oArea, "DOA" +sTag, OBJECT_SELF);
|
||||
|
||||
if(GetCurrentHitPoints(OBJECT_SELF) <= -30)
|
||||
if(GetCurrentHitPoints(OBJECT_SELF) <= -10)
|
||||
{
|
||||
SetDidDie(TRUE, OBJECT_SELF);
|
||||
SetHenchmanDying(OBJECT_SELF, FALSE);
|
||||
@@ -242,7 +242,7 @@ void HenchmanBleed(object oHench = OBJECT_SELF)
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if(GetLocalInt(oArea, "nCHP" +sTag) <= -10)
|
||||
else if(GetLocalInt(oArea, "nCHP" +sTag) <= -20)
|
||||
{
|
||||
SetDidDie(TRUE, oHench);
|
||||
SetHenchmanDying(oHench, FALSE);
|
||||
|
@@ -16,10 +16,10 @@ void main()
|
||||
{
|
||||
//This is the equivalent of a force conversation bubble, should only be used if you want an NPC
|
||||
//to say something while he is already engaged in combat.
|
||||
if(GetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION))
|
||||
{
|
||||
ActionStartConversation(OBJECT_SELF);
|
||||
}
|
||||
//if(GetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION))
|
||||
//{
|
||||
//ActionStartConversation(OBJECT_SELF);
|
||||
//}
|
||||
|
||||
// * July 2003
|
||||
// * If in Stealth mode, don't attack enemies. Wait for player to attack or
|
||||
@@ -37,10 +37,10 @@ void main()
|
||||
if(GetIsEnemy(GetLastPerceived()))
|
||||
{
|
||||
SetFacingPoint(GetPosition(GetLastPerceived()));
|
||||
if(d4(1) == 1)
|
||||
{
|
||||
BattleCry(); //In 69_hench_lib
|
||||
}
|
||||
//if(d4(1) == 1)
|
||||
//{
|
||||
//BattleCry(); //In 69_hench_lib
|
||||
//}
|
||||
HenchmenCombatRound(OBJECT_INVALID);
|
||||
}
|
||||
//Linked up to the special conversation check to initiate a special one-off conversation
|
||||
|
@@ -10,5 +10,5 @@ void main()
|
||||
{
|
||||
ExecuteScript("prc_onmodload", OBJECT_SELF);
|
||||
ExecuteScript("x2_mod_def_load", OBJECT_SELF);
|
||||
SetMaxHenchmen(3);
|
||||
SetMaxHenchmen(2);
|
||||
}
|
||||
|
5
_module/nss/onclosetreasure.nss
Normal file
5
_module/nss/onclosetreasure.nss
Normal file
@@ -0,0 +1,5 @@
|
||||
void main()
|
||||
{
|
||||
|
||||
DelayCommand( 30.0, DestroyObject(OBJECT_SELF));
|
||||
}
|
@@ -12,5 +12,5 @@ void main()
|
||||
// Sit in the assigned chair.
|
||||
string sChairTag = "CHAIR_Queen";
|
||||
object oChair = GetNearestObjectByTag(sChairTag);
|
||||
ActionSit(oChair);
|
||||
DelayCommand(15.0, ActionSit(oChair));
|
||||
}
|
||||
|
Reference in New Issue
Block a user