home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Singles (French)
/
Singles-FrenchVersion-Win95.iso
/
data1.cab
/
Statemachine
/
tutorialMoveIn.lua
< prev
next >
Wrap
Text File
|
2004-03-05
|
891b
|
51 lines
-- Shakehands Testmission
--
-- used mission objects:
-- trigger1 - triggers hello in initial state
beginStateMachine()
onEnter(function(msg)
popupMission();
end )
onMsg("getText", function(msg)
-- set mission text
setMissionText("dies is die zweite mission", "am besten du ziehst schonmal in die Wohnung ein weil sonst verlieren wir wertvolle zeit in der ich dich anmachen koennte");
end )
onMsg("checkComplete", function(msg)
--check mission completeness heere
end )
onMsg("ok", function(msg)
end )
-- CONVENIANCE MESSAGE HANDLER -------------------------
onMsg("enterTrigger10", function(msg)
setState("_GLOBAL");
end )
-- reset mission
onMsg("enterTrigger9", function(msg)
print("======= Initializing mission");
setState("initial");
end )
state("initial")
endStateMachine()