39 lines
1.6 KiB
Plaintext
39 lines
1.6 KiB
Plaintext
|
ScriptName _00E_FS_Theriantrophist_InstTransform Extends Quest
|
||
|
|
||
|
;-- Variables ---------------------------------------
|
||
|
|
||
|
;-- Properties --------------------------------------
|
||
|
Idle Property WerewolfTransformBack Auto
|
||
|
GlobalVariable Property armorDicrease Auto
|
||
|
GlobalVariable Property healthDicrease Auto
|
||
|
GlobalVariable Property isTransformed Auto
|
||
|
Quest Property playerTransformStorageQuest Auto
|
||
|
|
||
|
;-- Functions ---------------------------------------
|
||
|
|
||
|
; Skipped compiler generated GetState
|
||
|
|
||
|
; Skipped compiler generated GotoState
|
||
|
|
||
|
Function goingBackToNormal()
|
||
|
Game.DisablePlayerControls(True, True, True, False, True, True, True, False, 0)
|
||
|
Game.GetPlayer().ModAV("Health", -healthDicrease.getValue())
|
||
|
Game.GetPlayer().ModAV("DamageResist", -armorDicrease.getValue())
|
||
|
(playerTransformStorageQuest as playertransformstorage).equipeItems()
|
||
|
Self.RegisterForAnimationEvent(Game.GetPlayer() as ObjectReference, "TransformToHuman")
|
||
|
Game.GetPlayer().PlayIdle(WerewolfTransformBack)
|
||
|
Game.SetInCharGen(True, True, False)
|
||
|
Self.UnRegisterForAnimationEvent(Game.GetPlayer() as ObjectReference, "TransformToHuman")
|
||
|
Game.EnablePlayerControls(True, True, True, True, True, True, True, True, 0)
|
||
|
Race orig_race = (playerTransformStorageQuest as playertransformstorage).originalRace
|
||
|
Game.GetPlayer().SetRace(orig_race)
|
||
|
Game.GetPlayer().SetAttackActorOnSight(False)
|
||
|
Game.SetPlayerReportCrime(True)
|
||
|
Game.SetBeastForm(False)
|
||
|
isTransformed.SetValue(0 as Float)
|
||
|
Self.UnregisterforActorAction(0)
|
||
|
Self.UnregisterforCrosshairRef()
|
||
|
Self.UnregisterForAllKeys()
|
||
|
Self.UnregisterForUpdate()
|
||
|
EndFunction
|