Interesting Companion Script Ideas…

Common Companion Variables to Define:

short HasBeenHired
short WeaponOut
short CombatStyleRanged
short CombatStyleMelee
short IsFollowingDefault
short IsFollowingshort
short IsFollowingLong
short FollowerSwitchAggressive
short Waiting
short DoOnce
short bLoadedOnce;
short bTalking;
short bshortercomConversationActive;

On load, bump up sneak value:

Begin OnLoad
; set up base stats
if (bLoadedOnce == 0)
SetActorValue sneak 100;
set bLoadedOnce to 1;
evp

endif

end

Add to above to make sure we set the right combat style on loading.

;Script to make sure we set the right combat style on loading.
If (CombatStyleRanged == 1)
SunnyREF.SetCombatStyle FollowersCombatStyleRanged;
Else
SunnyREF.SetCombatStyle FollowersCombatStyleMelee;
EndIf

Refresh when combat over:

BEGIN OnCombatEND

if ( GetPlayerTeammate == 1 )
resethealth
restoreav perceptioncondition 100
restoreav endurancecondition 100
restoreav leftattackcondition 100
restoreav leftmobilitycondition 100
restoreav rightattackcondition 100
restoreav rightmobilitycondition 100
endif
END
This entry was posted in Fallout New Vegas, Game Modding. Bookmark the permalink.