Ever wanted to write out the whole bottles of beer song?
Can't be bothered though, can you?
Well, i've made a code, for all you lazy people so you can sing it all day, and not have to remember the lyrics.
songpart1 = " bottles of beer on the wall.";
songpart2 = " bottles of beer.";
songpart3 = "Take one down and pass it around,";
trace(99+songpart1);
trace(99+songpart2);
for (x=98; x>=1; x--) {
trace(songpart3);
if (x<2) {songpart1 = " bottle of beer on the wall.";}
trace(x+songpart1);
trace("");
trace(x+songpart1);
if (x<2) {songpart2 = " bottle of beer.";}
trace(x+songpart2);
}
songpart1 = " bottles of beer on the wall.";
songpart2 = " bottles of beer.";
trace(songpart3);
trace("No more"+songpart1);
trace("");
trace("No more"+songpart1);
trace("No more"+songpart2);
trace("Go to the store and buy some more,");
trace("99"+songpart1);
Just some fun on AS (Yes, that's not a joke).
SIG YOINK!
