Show the sneak tutorial once

This commit is contained in:
Eddoursul 2024-03-01 21:18:11 +01:00
parent 3df71a6bea
commit 5810ba6d44
2 changed files with 4 additions and 4 deletions

View File

@ -1,13 +1,13 @@
Scriptname _00E_ShowSneakHelpMessage extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
if (akActionRef== Game.GetPlayer()) && (DoOnce == False) && (_00E_DisableTutorial.GetValueInt() == 0)
Helpmessage.ShowAsHelpMessage("Sneak", 4, 30, 4)
if _00E_DisableTutorial.GetValueInt() == 0 && akActionRef == Game.GetForm(0x14) && ! DoOnce
DoOnce = True
Message.ResetHelpMessage("Empty")
Helpmessage.ShowAsHelpMessage("Empty", 4, 30, 1)
EndIf
EndEvent
bool DoOnce = false
Message Property Helpmessage Auto
GlobalVariable Property _00E_DisableTutorial Auto
GlobalVariable Property _00E_DisableTutorial Auto