Language DM
(Upgraded version of DanTom's)
Date: | 09/22/07 |
Author: | Mechana2412 |
URL: | http://www.games.byond.com |
Comments: | 6 |
Info: | http://www.byond.com |
Score: | ![]() |
//DanTom's 99 Bottles of Beer in DM Code 2.0 //Upgraded by Mechana2412 var/bottles = 99 mob/Login() usr << "Welcome to 99 Bottles of Beer 2.0" for() usr << "[bottles] Bottles of beer on the wall, [bottles] bottles of beer." bottles -= 1 usr << "Take one down and pass it around, [bottles] bottles of beer on the wall." sleep(10) if(bottles==1) usr << "[bottles] Bottle of beer on the wall, [bottles] bottle of beer." usr << "Take one down and pass it around, no more bottles of beer on the wall." usr << "No more bottle of beer on the wall. No more bottles of beer..." usr << "Go to the store and buy some more...99 bottles of beer." break world << "For waiting so long, you get a cookie!" usr.Logout()
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
The following would look better
//DanTom's 99 Bottles of Beer in DM Code 2.0
//Upgraded by GhpstAnime
var/bottles = 99
client/New()
src << "Welcome to 99 Bottles of Beer 2.0"
for(1 to 99)
src << "[bottles] Bottles of beer on the wall, [bottles] bottles of beer."
src << "Take one down and pass it around, [!(--bottles)?"no more":bottles] bottles of beer on the wall."
sleep(10)
src << "Go to the store and buy some more...99 bottles of beer."
src << "For waiting so long, you get a cookie!"
del(src)
Indent everything under client/New() and one more for the lines after the for() upto and including sleep(10) >_>
<code>
client/New()
..()
var/bottles = 99
do
world << "[bottles] bottles of beer on the wall, [bottles] bottles of beer!"
world << "Take one down and pass it around, [--bottles ? "[bottles] bottles of beer " : "no more bottles of beer "]\
on the wall."
world << null
sleep(10)
while(bottles)
world << "No more bottles of beer on the wall, no more bottles of beer!"
world << "Go to the store and buy some more, 99 bottles of beer on the wall."
world << null
sleep(10)
New()
</code>