2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_Game_SkillMenuLeaveSC extends ObjectReference
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; EVENTS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Event OnKeyDown(Int KeyCode)
|
|
|
|
|
|
|
|
If KeyCode == (iMappedKeyCode) && Utility.IsInMenuMode() == False && UI.IsTextInputEnabled() == False
|
|
|
|
|
|
|
|
_00E_Class_OpenClassMenuSpell.Cast(PlayerREF, PlayerREF)
|
|
|
|
UnregisterForKey(Input.GetMappedKey("Shout"))
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
|
|
|
|
|
|
|
If akActionRef == PlayerREF
|
2024-02-08 06:45:07 +00:00
|
|
|
if SKSE.GetVersion()
|
|
|
|
UnregisterForKey(Input.GetMappedKey("Shout"))
|
|
|
|
endif
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_A2_GhostwalkSneakFailsave.SetValue(PlayerREF.GetActorValue("Sneak"))
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
|
2024-01-10 14:08:24 +00:00
|
|
|
If akActionRef == PlayerREF && MQP03.GetCurrentStageID() >= 15
|
2024-02-08 06:45:07 +00:00
|
|
|
if SKSE.GetVersion()
|
|
|
|
iMappedKeyCode = Input.GetMappedKey("Shout")
|
|
|
|
RegisterForKey(iMappedKeyCode)
|
|
|
|
endif
|
2021-10-05 22:15:58 +00:00
|
|
|
Game.RequestAutoSave()
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
int iMappedKeyCode
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
Quest Property MQP03 Auto
|
|
|
|
|
|
|
|
Spell Property _00E_Class_OpenClassMenuSpell Auto
|
|
|
|
|
|
|
|
GlobalVariable Property _00E_A2_GhostwalkSneakFailsave Auto
|