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