enderalse/scripts/source/_00e_banditdialogue_functions.psc

54 lines
1.8 KiB
Plaintext

Scriptname _00E_BanditDialogue_Functions extends Quest
;=====================================================================================
; FUNCTIONS
;=====================================================================================
Function SwitchFarmNehrimeseToAggressive()
If bFarmNehrimeseAggressive
Return
EndIf
bFarmNehrimeseAggressive = True
MQ09b_SC01_BattlemageREF.SetFactionRank(NehrimArmyFaction, 0)
MQ09b_SC01_NehrimeseSoldier01.SetFactionRank(NehrimArmyFaction, 0)
MQ09b_SC01_NehrimeseSoldier02.SetFactionRank(NehrimArmyFaction, 0)
SwitchFarmActorToPostScene(MQ09b_SC01_BattlemageREF)
SwitchFarmActorToPostScene(MQ09b_SC01_NehrimeseSoldier01)
SwitchFarmActorToPostScene(MQ09b_SC01_NehrimeseSoldier02)
EndFunction
Function SwitchFarmActorToPostScene(Actor akActor)
akActor.SetActorValue("Variable01", 1.0)
akActor.EvaluatePackage()
EndFunction
Function StartCombatFarm()
SwitchFarmNehrimeseToAggressive()
MQ09b_SC01_FarmerREF.StartCombat(MQ09b_SC01_BattlemageREF)
MQ09b_SC01_BattlemageREF.StartCombat(MQ09b_SC01_ArkGuardREF)
MQ09b_SC01_NehrimeseSoldier01.StartCombat(MQ09b_SC01_ArkGuardREF)
MQ09b_SC01_NehrimeseSoldier02.StartCombat(MQ09b_SC01_ArkGuardREF)
EndFunction
;=====================================================================================
; PROPERTIES
;=====================================================================================
ACtor Property MQ09b_SC01_BattlemageREF Auto
ACtor Property MQ09b_SC01_NehrimeseSoldier01 Auto
ACtor Property MQ09b_SC01_FarmerREF Auto
ACtor Property MQ09b_SC01_FarmerWifeREF Auto
ACtor Property MQ09b_SC01_FarmerChildREF Auto
ACtor Property MQ09b_SC01_NehrimeseSoldier02 Auto
ACtor Property MQ09b_SC01_ArkGuardREF Auto
Faction Property NehrimArmyFaction Auto
Bool bFarmNehrimeseAggressive