2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_MQP03_AkropolisSetStageOnLea extends ObjectReference
|
|
|
|
{Sets the stage when leaving the box}
|
|
|
|
|
|
|
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
|
|
|
|
2024-02-12 20:02:54 +00:00
|
|
|
if !Done && MQP03.IsRunning()
|
2021-10-05 22:15:58 +00:00
|
|
|
Done = True
|
2024-01-10 14:08:24 +00:00
|
|
|
MQP03.SetCurrentStageID(15)
|
2024-02-12 20:02:54 +00:00
|
|
|
|
|
|
|
if SKSE.GetVersion()
|
|
|
|
RegisterForKey(Input.GetMappedKey("Shout"))
|
|
|
|
endif
|
|
|
|
|
|
|
|
Disable()
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnKeyDown(Int KeyCode)
|
|
|
|
|
2024-02-12 20:02:54 +00:00
|
|
|
If KeyCode == Input.GetMappedKey("Shout") && Utility.IsInMenuMode() == False && UI.IsTextInputEnabled() == False
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
If Game.GetPlayer().GetParentCell() == Self.GetParentCell()
|
|
|
|
_00E_Class_OpenClassMenuSpell.Cast(Game.GetPlayer(), Game.GetPlayer())
|
|
|
|
EndIf
|
|
|
|
UnregisterForKey(Input.GetMappedKey("Shout"))
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
bool Done
|
|
|
|
|
|
|
|
Spell Property _00E_Class_OpenClassMenuSpell Auto
|
2024-02-12 20:02:54 +00:00
|
|
|
Quest Property MQP03 Auto
|