Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
48 lines
1.0 KiB
Scriptname _00E_PlayerhousingTutorial extends Quest
|
|
|
|
Message Property buildmodeTutorial auto
|
|
Message Property translationModeTutorial auto
|
|
Message Property manipulationModeTutorial auto
|
|
|
|
GlobalVariable Property _00E_DisableCraftingTutorials Auto
|
|
|
|
function ShowTutorial()
|
|
int button = buildmodeTutorial.show()
|
|
if button == 0
|
|
GotoState("")
|
|
else
|
|
GotoState("NoTutorial")
|
|
Endif
|
|
Endfunction
|
|
|
|
function onStartBuildmode()
|
|
If _00E_DisableCraftingTutorials.GetValueInt() == 0
|
|
ShowTutorial()
|
|
EndIf
|
|
Endfunction
|
|
|
|
function onTranslationMode()
|
|
Debug.Notification(translationModeTutorial.getName())
|
|
translationModeTutorial.show()
|
|
Endfunction
|
|
|
|
function onManipulationMode()
|
|
Debug.Notification(manipulationModeTutorial.getName())
|
|
manipulationModeTutorial.show()
|
|
Endfunction
|
|
|
|
STATE NoTutorial
|
|
|
|
function onStartBuildmode()
|
|
|
|
Endfunction
|
|
|
|
function onTranslationMode()
|
|
Debug.Notification(translationModeTutorial.getName())
|
|
Endfunction
|
|
|
|
function onManipulationMode()
|
|
Debug.Notification(manipulationModeTutorial.getName())
|
|
Endfunction
|
|
|
|
Endstate
|
|
|