Language MOO
Date: | 04/20/05 |
Author: | Malcolm Gin-Hopwood |
URL: | n/a |
Comments: | 0 |
Info: | n/a |
Score: | (3.50 in 4 votes) |
@args #230:"@99" none none none @chmod #230:@99 rxd @program #230:@99 "Programmed by Malcolm Gin-Hopwood y Silva (perigee@dgsys.com)"; "Runs on LambdaMOO core 1.7.9 and 1.8.0"; "This one spares any standers by the terror of 99 bottles of beer on the wall, and does numbers to english passing as well. Woo woo."; count = 99; while (count > 0) $command_utils:suspend_if_needed(0); this:_round_of_beer(count); count = count - 1; endwhile player:tell("Time to buy more beer."); . @args #230:"_round_of_beer" this none this @program #230:_round_of_beer beer = args[1]; player:tell(($string_utils:capitalize($string_utils:english_number(beer)) + ((beer == 1) ? " bottle " | " bottles ")) + "of beer on the wall."); player:tell(($string_utils:capitalize($string_utils:english_number(beer)) + ((beer == 1) ? " bottle " | " bottles ")) + "of beer..."); player:tell("Take one down and pass it around."); player:tell(($string_utils:capitalize($string_utils:english_number(beer - 1)) + (((beer - 1) == 1) ? " bottle " | " bottles ")) + "of beer on the wall."); player:tell(); .
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments