34 lines
808 B
Plaintext
34 lines
808 B
Plaintext
Scriptname _00E_MQP03_AkropolisSetStageOnLea extends ObjectReference
|
|
{Sets the stage when leaving the box}
|
|
|
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
|
|
|
if !Done && (MQP03.IsRunning())
|
|
Done = True
|
|
MQP03.SetCurrentStageID(15)
|
|
iMappedKeyCode = Input.GetMappedKey("Shout")
|
|
RegisterForKey(iMappedKeyCode)
|
|
Self.Disable()
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
Event OnKeyDown(Int KeyCode)
|
|
|
|
If KeyCode == (iMappedKeyCode) && Utility.IsInMenuMode() == False && UI.IsTextInputEnabled() == False
|
|
|
|
If Game.GetPlayer().GetParentCell() == Self.GetParentCell()
|
|
_00E_Class_OpenClassMenuSpell.Cast(Game.GetPlayer(), Game.GetPlayer())
|
|
EndIf
|
|
UnregisterForKey(Input.GetMappedKey("Shout"))
|
|
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
bool Done
|
|
|
|
int iMappedKeyCode
|
|
|
|
Spell Property _00E_Class_OpenClassMenuSpell Auto
|
|
Quest Property MQP03 Auto |