A little bit of Saturday Geek Humor
by J. Alan Atherton · in Torque Game Builder · 06/24/2006 (8:53 am) · 2 replies
Here's a bit of free code that all of us geeks can use:
And if you're too focused in your work to obey the above code snippet... hopefully this makes you laugh enough to give some benefit anyway.
Have a good weekend!
function CodeMonkey::needExercise(%this, %size)
{
if( mAbs(%size) < $tooSmall ) {
%this.eatSteak();
%this.schedule(60000*30, "doSitups");
}
else {
%this.doSitups();
}
}And if you're too focused in your work to obey the above code snippet... hopefully this makes you laugh enough to give some benefit anyway.
Have a good weekend!
#2
06/24/2006 (12:19 pm)
Thanks for the inspiration.. But mine usually goes more like this...function CodeMonkey::onWake(%this)
{
%this.removeObject(%this.getItemByName("keyboard"),%this.getPhysicalExtent("Forehead"));
while(%this.bladder > 0)
{
%this.urinate();
}
%scoops = getRandom(1,5);
%coffee=%this.makeCoffee(%scoops);
while(! %coffee.done)
{
if ($fridge.getValue() > 0)
{
%this.raid($fridge);
}
}
%chair = %this.getObjectByName("Chair");
%this.moveTo(%chair.getPosition(),1);
%this.setSit(1);
while(%this.sit)
{
%this.rip();
}
}
Torque Owner Gregory Stewart