script and npc changes

This commit is contained in:
EpicValor
2023-09-02 22:56:38 -05:00
parent be5bd6b0bc
commit b3a5e77663
18 changed files with 1916 additions and 58 deletions

View File

@@ -18,8 +18,8 @@ void main()
float fOrient = GetFacing( oBench );
// Calculate location of the 2 pillows
location locPillow1 = Location( oArea, locBench + AngleToVector( fOrient + 90.0f ) / 2.0f, fOrient );
location locPillow2 = Location( oArea, locBench + AngleToVector( fOrient - 90.0f ) / 2.0f, fOrient );
location locPillow1 = Location( oArea, locBench + AngleToVector( fOrient + 90.0f ) / 2.1f, fOrient );
location locPillow2 = Location( oArea, locBench + AngleToVector( fOrient - 90.0f ) / 2.1f, fOrient );
// Create the 2 pillows
oPillow1 = CreateObject( OBJECT_TYPE_PLACEABLE, "plc_invisobj", locPillow1 );

View File

@@ -22,9 +22,9 @@ void main()
SetLocalInt(OBJECT_SELF, "X2_NUMTIMES_BLOCKED",0);
ClearAllActions();
}
if(GetAbilityScore(OBJECT_SELF, ABILITY_INTELLIGENCE) >= 5)
if(GetAbilityScore(OBJECT_SELF, ABILITY_INTELLIGENCE) >= 2)
{
if(GetIsDoorActionPossible(oDoor, DOOR_ACTION_OPEN) && GetAbilityScore(OBJECT_SELF, ABILITY_INTELLIGENCE) >= 7 )
if(GetIsDoorActionPossible(oDoor, DOOR_ACTION_OPEN) && GetAbilityScore(OBJECT_SELF, ABILITY_INTELLIGENCE) >= 4 )
{
DoDoorAction(oDoor, DOOR_ACTION_OPEN);
}