alias -l Gift { goto $r(1,4) :1 | return Tree | halt :2 | return $nick(#,$r(1,$nick(#,0))) | halt :3 | return Cookie! | halt :4 | return coal | halt }
it's even smaller than having the if checks.