Showing posts with label Lessons. Show all posts
Showing posts with label Lessons. Show all posts

Tuesday, May 4, 2010

Try stealing my slave will you! Well I have Mugi!




More fun with Mugi Intercepting Events... That pesky noble who keeps stealing your slave and costing you money. He hasn't met Mugi's guards yet :)

The code for next lessons update with assistants.

function DoWalkTownCenterAsAssistant(NumEvent:Number, present:Boolean) : Boolean {
if (!present) return false;//If mugi isn't there no event
if (NumEvent == 3) {//Event Number 3 Passing Noble
MugiAngryMini._visible = true;//small pic
MugiAngrySoldSlaveMaleSM._visible = true;//big pic
_root.AddText("Mugi Pissed retrieved slave");
return true;
}
return false;//Wasn't event number #3 nothing happened
}