66 lines
2.3 KiB
Plaintext
66 lines
2.3 KiB
Plaintext
Scriptname _00E_CrimeQuest_Functions extends Quest
|
|
|
|
;=====================================================================================
|
|
; FUNCTIONS
|
|
;=====================================================================================
|
|
|
|
Function ReduceMainSkills()
|
|
|
|
String sActorValueToReduce01
|
|
String sActorValueToReduce02
|
|
|
|
If AffinityControl.iMajorClassIndex == 1
|
|
sActorValueToReduce01 = "Block"
|
|
sActorValueToReduce02 = "HeavyArmor"
|
|
ElseIf AffinityControl.iMajorClassIndex == 2
|
|
sActorValueToReduce01 = "OneHanded"
|
|
sActorValueToReduce02 = "LightArmor"
|
|
ElseIf AffinityControl.iMajorClassIndex == 3
|
|
sActorValueToReduce01 = "Destruction"
|
|
sActorValueToReduce02 = "Restoration"
|
|
ElseIf AffinityControl.iMajorClassIndex == 4
|
|
sActorValueToReduce01 = "Sneak"
|
|
sActorValueToReduce02 = "OneHanded"
|
|
ElseIf AffinityControl.iMajorClassIndex == 5
|
|
sActorValueToReduce01 = "Conjuration"
|
|
sActorValueToReduce02 = "Illusion"
|
|
ElseIf AffinityControl.iMajorClassIndex == 6
|
|
sActorValueToReduce01 = "Restoration"
|
|
sActorValueToReduce02 = "Alteration"
|
|
ElseIf AffinityControl.iMajorClassIndex == 7
|
|
sActorValueToReduce01 = "TwoHanded"
|
|
sActorValueToReduce02 = "HeavyArmor"
|
|
ElseIf AffinityControl.iMajorClassIndex == 8
|
|
sActorValueToReduce01 = "Marksman"
|
|
sActorValueToReduce02 = "LightArmor"
|
|
ElseIf AffinityControl.iMajorClassIndex == 9
|
|
sActorValueToReduce01 = "LightArmor"
|
|
sActorValueToReduce02 = "Alchemy"
|
|
Else
|
|
sActorValueToReduce01 = "OneHanded"
|
|
sActorValueToReduce02 = "TwoHanded"
|
|
EndIf
|
|
|
|
PlayerREF.SetActorValue(sActorValueToReduce01, PlayerREF.GetBaseActorValue(sActorValueToReduce01) - 1)
|
|
PlayerREF.SetActorValue(sActorValueToReduce02, PlayerREF.GetBaseActorValue(sActorValueToReduce02) - 1)
|
|
|
|
_00E_CrimeQuest_ReduceSkillMessage.Show()
|
|
|
|
EndFunction
|
|
|
|
Function SetGlobalInJail()
|
|
_00E_IsInJail.SetValue(1)
|
|
UpdateCurrentInstanceGlobal(_00E_IsInJail)
|
|
EndFunction
|
|
|
|
;=====================================================================================
|
|
; PROPERTIES
|
|
;=====================================================================================
|
|
|
|
_00E_AffinityControl Property AffinityControl Auto
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
GlobalVariable Property _00E_IsInJail Auto
|
|
|
|
Message Property _00E_CrimeQuest_ReduceSkillMessage Auto |