-- "Elaine:mimicFlirt1:Ok, jetzt muss ich wohl meinen Teil der Abmachung erfⁿllen;"..
-- "Mike:mimicSmile2:Na da bin ich aber gespannt;"..
-- "Elaine:mimicSmile3:Naja wenn ich was zum Staubsaugen finde und nicht zu mⁿde bin mach ich mich an die Arbeit. Pass blo▀ auf, dass du es nich verpasst;"
--);
end )
state("binJaGespannt")
onMsg("yes", function(msg)
local mike = getParent().getParent().getCharacter(MIKE);
local elaine = getParent().getParent().getCharacter(ELAINE);
mike.cancelCurrentActivity();
elaine.cancelCurrentActivity();
setState("okIllDoIt");
end )
state("okIllDoIt")
onMsg("checkCondition", function(msg)
-- print("########### Elaine: ok its my turn");
local elaine = getParent().getParent().getCharacter(ELAINE);
local mike = getParent().getParent().getCharacter(MIKE);
local actionPoint = elaine.getNextCleaningPoint(DIRT_DISTANCE);
if (actionPoint) then
-- print("########## da ist sogar Dreck auf dem Boden");
local hoovers = elaine.getObjectsWithBehavior("hoover");
local kommodes = elaine.getObjectsWithBehavior("kommode");
if ( hoovers[1] and kommodes[1] and elaine.getCondition(NEED_TIREDNESS)>0.4 ) then