Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language Operation Flashpoint Scripting

Date:04/20/05
Author:Unknown
URL:n/a
Comments:1
Info:n/a
Score: (3.00 in 15 votes)
; beer.sqs
;
; by Jussi Tawaststjerna
; fd@finnishplatoon.org
;
; for Operation Flashpoint scripting language
;
counter = 99;
unit = "bottles";
#loop
? counter == 1: goto "end";
hint format ["%1 %2 of beer on the wall",counter,unit];
~2
? (counter - 1) == 1: unit = "bottle";
hint format ["Take one down and pass it around, you got %1 %2 of beer on
the wall.",(counter - 1),unit];
counter = counter - 1;
~3
goto "loop";

#end
hint "Only one bottle of beer on the wall";
~2
hint "Take one down and pass it around, and you're out of beer. Damn."
exit;

Download Source | Write Comment

Alternative Versions

Comments

>>  Bulbous said on 05/25/06 20:37:53

Bulbous Guba got the beers again.

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!

Name:

eMail:

URL:

Security Code:
  
Comment: