home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Singles (French)
/
Singles-FrenchVersion-Win95.iso
/
data1.cab
/
Statemachine
/
newgame.lua
< prev
next >
Wrap
Text File
|
2004-03-05
|
2KB
|
82 lines
beginStateMachine()
onEnter(function(msg)
popupMission();
end )
onMsg("getText", function(msg)
-- set mission text
setMissionText("marharharharar", "das ist die neue game mission text mission");
end )
onMsg("checkComplete", function(msg)
--check mission completeness heere
end )
onMsg("ok", function(msg)
end )
onMsg("enterTrigger1", function(msg)
setState("_GLOBAL");
print(" GLOOOOOOOOOBAL ");
end )
----------------------
onMsg("enterTrigger", function(msg)
setState("helloWorld0");
print(" -> HELLOWORLD 0 ");
popupConversation("Mike: dies ist ein Testgespraech", MIKE);
end )
state("helloWorld0")
onMsg("ok", function(msg)
setState("helloWorld1");
print(" -> HELLOWORLD 1 ");
popupConversation("Linda: mein erster Satz den ich jemals sage", LINDA);
end )
state("helloWorld1")
onMsg("ok", function(msg)
setState("helloWorld2");
print(" -> HELLOWORLD 2 ");
popupConversation("Mike: wir koennten jetzt ewig so weiter\n quatschen aber das missionscript schickt uns beide gleich weg", MIKE);
end )
state("helloWorld2")
onMsg("ok", function(msg)
print(" -> SACKGASSE ");
setState("sackgasse");
end )
state("sackgasse")
onEnter(function(msg)
local mike = getParent().getCharacter(MIKE);
local sofa = mike.getObjectsWithTag(2)[1]
mike.walkSO.walkToActionPoint(sofa.getActionPoint("sit1"));
local elaine = getParent().getCharacter(ELAINE);
elaine.walkSO.walkToActionPoint(sofa.getActionPoint("sit3"));
--getParent().getCharacter(MIKE).walkSO.walkToActionPoint(
-- getParent().getCharacter(MIKE).getObjectsWithTag(1)[1].getActionPoint("sit1")
--);
--getParent().getCharacter(ELAINE).walkSO.walkToActionPoint(
-- getParent().getCharacter(ELAINE).getObjectsWithTag(1)[1].getActionPoint("sit3")
--);
end )
onMsg("enterTrigger", function(msg)
print(" ich sagte doch schon: Sackgasse!");
end )
endStateMachine()