27 Feb 11, 07:59AM 
		
	
	(26 Feb 11, 08:55PM)Andrez Wrote: Holy hell V-Man, do you even use CubeScript for having your breakfast? :DGave me a nice idea.
 [SELECT ALL] Code:
// breakfast -- When you just can't stop playing AssaultCube long enough to eat the most important meal of the day!
alias spoon [silver steel plastic]
alias fridge [eggs juice milk leftovers yogurt]
checkinit cleanspoon 0
alias breakfast [
alias bowl []
addcheck bowl (at $spoon (rnd 3))
addcheck bowl [cereal]
addcheck bowl (at $fridge (findlist $fridge [milk]))
loop s (listlen $spoon) [if (strstr $bowl (at $spoon $s)) [cleanspoon = 1] []]
if (
 && (
  && (
   && (checkalias bowl) (strstr (at $bowl 2) [milk])) (strstr $bowl cereal)) $cleanspoon) [
    result 1
    ] [result 0]]
alias eat [
say (if ($arg1) [result yummy] [result [not so yummy]])
]
// /eat breakfast
// V-Man: yummy
// /fridge = (replacestr $fridge milk moldy_cheese)
// /eat breakfast
// V-Man: not so yummy
 
 


