2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_CrimeQuest_Functions extends Quest
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; FUNCTIONS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Function ReduceMainSkills()
|
|
|
|
|
|
|
|
String sActorValueToReduce01
|
|
|
|
String sActorValueToReduce02
|
2024-03-01 16:37:16 +00:00
|
|
|
|
|
|
|
int iClassIndex = _00E_MajorClassIndex.GetValueInt()
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2024-03-01 16:37:16 +00:00
|
|
|
If iClassIndex == 1
|
2021-10-05 22:15:58 +00:00
|
|
|
sActorValueToReduce01 = "Block"
|
|
|
|
sActorValueToReduce02 = "HeavyArmor"
|
2024-03-01 16:37:16 +00:00
|
|
|
ElseIf iClassIndex == 2
|
2021-10-05 22:15:58 +00:00
|
|
|
sActorValueToReduce01 = "OneHanded"
|
|
|
|
sActorValueToReduce02 = "LightArmor"
|
2024-03-01 16:37:16 +00:00
|
|
|
ElseIf iClassIndex == 3
|
2021-10-05 22:15:58 +00:00
|
|
|
sActorValueToReduce01 = "Destruction"
|
|
|
|
sActorValueToReduce02 = "Restoration"
|
2024-03-01 16:37:16 +00:00
|
|
|
ElseIf iClassIndex == 4
|
2021-10-05 22:15:58 +00:00
|
|
|
sActorValueToReduce01 = "Sneak"
|
|
|
|
sActorValueToReduce02 = "OneHanded"
|
2024-03-01 16:37:16 +00:00
|
|
|
ElseIf iClassIndex == 5
|
2021-10-05 22:15:58 +00:00
|
|
|
sActorValueToReduce01 = "Conjuration"
|
|
|
|
sActorValueToReduce02 = "Illusion"
|
2024-03-01 16:37:16 +00:00
|
|
|
ElseIf iClassIndex == 6
|
2021-10-05 22:15:58 +00:00
|
|
|
sActorValueToReduce01 = "Restoration"
|
|
|
|
sActorValueToReduce02 = "Alteration"
|
2024-03-01 16:37:16 +00:00
|
|
|
ElseIf iClassIndex == 7
|
2021-10-05 22:15:58 +00:00
|
|
|
sActorValueToReduce01 = "TwoHanded"
|
|
|
|
sActorValueToReduce02 = "HeavyArmor"
|
2024-03-01 16:37:16 +00:00
|
|
|
ElseIf iClassIndex == 8
|
2021-10-05 22:15:58 +00:00
|
|
|
sActorValueToReduce01 = "Marksman"
|
|
|
|
sActorValueToReduce02 = "LightArmor"
|
2024-03-01 16:37:16 +00:00
|
|
|
ElseIf iClassIndex == 9
|
2021-10-05 22:15:58 +00:00
|
|
|
sActorValueToReduce01 = "LightArmor"
|
|
|
|
sActorValueToReduce02 = "Alchemy"
|
|
|
|
Else
|
|
|
|
sActorValueToReduce01 = "OneHanded"
|
|
|
|
sActorValueToReduce02 = "TwoHanded"
|
|
|
|
EndIf
|
|
|
|
|
2023-12-08 02:45:53 +00:00
|
|
|
PlayerREF.SetActorValue(sActorValueToReduce01, PlayerREF.GetBaseActorValue(sActorValueToReduce01) - 1)
|
|
|
|
PlayerREF.SetActorValue(sActorValueToReduce02, PlayerREF.GetBaseActorValue(sActorValueToReduce02) - 1)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
_00E_CrimeQuest_ReduceSkillMessage.Show()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function SetGlobalInJail()
|
|
|
|
_00E_IsInJail.SetValue(1)
|
|
|
|
UpdateCurrentInstanceGlobal(_00E_IsInJail)
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
GlobalVariable Property _00E_IsInJail Auto
|
|
|
|
|
2024-03-01 16:37:16 +00:00
|
|
|
Message Property _00E_CrimeQuest_ReduceSkillMessage Auto
|
|
|
|
|
|
|
|
GlobalVariable Property _00E_MajorClassIndex Auto
|