scn BetsyTheBrahminScript
int Waiting ; 0 = Not waiting, 1 = Waiting
int CombatStyleMelee ; 0 = Not melee, 1= Melee
int CombatStyleRanged ; 0 = Not ranged, 1 = Ranged
int IsFollowingDefault ; 0 = Not following default, 1 = Is following default range
int IsFollowingLong ; 0 = Not following long, 1 = Is following long
int FollowerSwitchAggressive ; 0 = Passive (wait on player), 1 = Aggressive (attack when see enemies)
int AbandonedPlayer ; 0 = Haven't abandoned, 1 = Abandoned
int BetsyState ; 0 = Default, will run away when the player sleeps
; 1 = Ran away, back at Kevin's
; 2 = Hired for real, won't run away
;------------------------------------------------------------------------------------------------------------------------------
begin OnLoad
; Set Betsy's carry weight to a super high number
; setav carryweight 600
end
;------------------------------------------------------------------------------------------------------------------------------
begin MenuMode
; Added conditional code to reduce the cost of running the script on every frame. Part of a game-wide revision of scripts - Jorge 03/14/10
;if VNPCFollowers.BetsyHired == 1
; ; Betsy sneaks away when the player sleeps
; if isPCSleeping == 1 && BetsyState == 0
;
; ; Should add another condition here to only do this when Betsy has stuff
; if BetsyREF.GetItemCount Everything >= 50
;
; ; Move all of the items that the player put on Betsy to Tom's other chest
; BetsyREF.removeallitems VFSTomDooleyPlayerStuffMerchantBoxREF
;
; ; Make Tom use that chest for his store
; VFSTomDooleyREF.SetMerchantContainer VFSTomDooleyPlayerStuffMerchantBoxREF
;
; ; Set vars to make Betsy stay in Kevin's pen again
; set BetsyState to 1
; BetsyREF.evp
; BetsyREF.MoveTo BetsyHomeMarker
;
; ; Change Betsy's name
;; SetActorFullName BrahminNameMsg
;
; Remove Betsy from the party, so the Companion Wheel stops for her
; set VNPCFollowers.BetsyHired to 0
; set VNPCFollowers.bPlayerHasFollower to 0
; RemoveFromFaction FollowerFaction
; SetPlayerTeammate 0
; endif
; endif
; endif
end
;---------------------------------------------------------------------------------------------------------------------------------------------
begin OnDeath
; if VNPCFollowers.BetsyHired == 1
; set VNPCFollowers.bPlayerHasFollower to 0
; set VNPCFollowers.BetsyHired to 0
;; ShowMessage FollowerMessageDeadBetsy
; endif
end
;---------------------------------------------------------------------------------------------------------------------------------------------
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