Posted: 3rd Feb 2003 21:09
Okay, not exactly, but it's good for the newcomers out there so I'll put it in, in case the're reading. It's all in code, no media, so you can just click and paste TheDarthster style (yo, Darth! ). See if you can make it so that you can put a time limit on it aswell (n00bs only). Okay, here it is, enjoy




+ Code Snippet
REMSTART
=======================================================
COUNTER-STRIKE : BOMB/DEFUSE!  Kinda...
Created by Daz
-------------------------------------------------------
Created for the newcomers, by a newcomer.  Don't get
discouraged now ;)      Here's how to produce a simple
program that keeps the world safe if the password is
correct, and blows it up if it isn't...
-------------------------------------------------------
)www.darkbasic.com(              )www.darkbasicpro.com(
=======================================================
REMEND

`Here you can see "game:" . This is a label, and will be explained
`later on in the program.  "HIDE MOUSE" hides the mouse cursor.
`You can also see "SET CURSOR 100, 300.
`This tells the program to place the text at those coordinates
`on the X and Y axis.
game:
HIDE MOUSE
SET CURSOR 100, 300

`Here is the variable we will be using for the password.
`You may change this to whatever you want (independnt or what).
answer$ = "pass"

`This diplays a prompt for the user and is the first thing he/she
`sees.  The text in pink is what will be displayed, but this can
`be changed.  The variable at the end is the one that stores the
`password.
INPUT "Enter password : ", answer$

`Here is a IF/THEN/ELSE section for you.  Simple really,  It's
`saying that if the password entered matches the one stored in
`the variable, it will display the PRINT messages below, and then
`the user presses any key to exit the program...
IF answer$ = "pass"
SET CURSOR 100, 320
PRINT "The world has been saved. Congratulations!"
SET CURSOR 100, 340
PRINT "Press any key to exit."
WAIT KEY

`...or this will happen.  It will diplay the message and a count-
`down will follow.
`FOR A = 10 TO 1 STEP -1 = The numbers 10 to 1, with it going down by 1 each time.
`SET CURSOR 300,300 = Set where the text will be placed.
`PRINT A = Displays the current countdown number.
`WAIT 1000 = Wait for 1000 miliseconds (1 second).
`CLS = Clears the screen so it shows one number at a time.
`NEXT A = Carries on until it reaches BLAST OFF.
ELSE
SET CURSOR 100, 320
PRINT "Incorrect password : Self-destruct initialising..."
WAIT 5000
CLS
FOR A = 10 TO 1 STEP -1
SET CURSOR 100, 300
PRINT A
WAIT 1000
CLS
NEXT A

`The last bit is easy, sets the text for coordinates X=300 and Y=300.
`Displays the message (e.g. BOOOOM!), and displays a message to
`either press the SPACEKEY to retry or RETURN to exit.
`The GOSUB statement tells the program to go back to the beginning
`of the program if the SPACEKEY is pressed so the user can retry.
`If the RETURNKEY is pressed then the program ends. Simple.

SET CURSOR 100, 300
PRINT "BOOOOM!"
SET CURSOR 100, 320

PRINT "Press the SPACEKEY to try again, or RETURN to exit."
WAIT KEY
IF SPACEKEY() = 1 THEN CLS : GOSUB game
IF RETURNKEY() = 1 THEN END
ENDIF
END

REM P.S. If you would like to include this in one of your programs,
REM  you may do so if you wish.
Posted: 3rd Feb 2003 23:26
Hehe, pretty cool.
Posted: 4th Feb 2003 18:07
Cheers
Posted: 4th Feb 2003 18:27
Uh oh, I've just noticed I've used a GOSUB command. That's naughty, naughty apparently. Damn, I'm treating the people with nub skillz, oops, I mean our lesser men under a bad influence. Shame on me.
Posted: 5th Feb 2003 22:18
Well, that's the GOTO command, but never mind that.

Here is version 2.0 of CS de_DBP!!!
Enjoy the new features!

+ Code Snippet
REMSTART
=======================================================
COUNTER-STRIKE : BOMB/DEFUSE!  Version 2.0
Created by Daz
-------------------------------------------------------
Created for the newcomers, by a newcomer.  Don't get
discouraged now ;)      Here's how to produce a simple
program that keeps the world safe if the password is
correct, and blows it up if it isn't...
-------------------------------------------------------
)www.darkbasic.com(              )www.darkbasicpro.com(
=======================================================
REMEND

`Here you can see "game:" . This is a label, and will be explained
`later on in the program.  "HIDE MOUSE" hides the mouse cursor.
`-NEW- There is BACKDROP OFF, this helps to see the text (explained
`later).
`-NEW- There is also a T enter name feature, very simple.
`You can also see "SET CURSOR 100, 300.
`This tells the program to place the text at those coordinates
`on the X and Y axis.
Game:
HIDE MOUSE
BACKDROP OFF
SET CURSOR 100, 300
INPUT "Enter your name, Terrorist :  ", tname$
CLS
SET CURSOR 100, 320
PRINT "You're in the bomb site area!"
SET CURSOR 100, 340
PRINT "Press any key to continue."
WAIT KEY
CLS

`-NEW- A PARTICLES command has been added to create an effect of
`an explosion later on.  We can colour the particles, as in this
`example I've used red primarily for its strong danger expression
`it gives (call me an artist).  We've hidden the particles so it's
`saved for later on.
MAKE PARTICLES 1, 1, 100, 500
COLOR PARTICLES 1, 255, 0, 0
HIDE PARTICLES 1

`-NEW- Here is basically a prompt for the T player to enter a code for
`the C4, also very simle using the INPUT command.
SET CURSOR 100, 300
INPUT "Enter the C4 code : ", tcode$
SET CURSOR 100, 320
PRINT tname$;" sets up the bomb!"
WAIT 3000
SET CURSOR 100, 340
PRINT "Press any key to continue."
WAIT KEY
CLS

`-NEW- Now it's the CT's turn.  Same thing as with the T but you have
`to defuse the bomb.  Another INPUT command.
SET CURSOR 100, 300
INPUT "Enter your name, Counter-Terrorist : ", ctname$
CLS
SET CURSOR 100, 300
PRINT "Defuse the bomb!!!!!!"
SET CURSOR 100, 320
INPUT "Enter the code : ", ctcode$

`-UPDATED- Now there is an IF/THEN/ELSE/ENDIF part coming up.  If the T's
`code for the bomb is the same as the CT's code, the bomb is
`defused...
IF ctcode$ = tcode$
CLS
SET CURSOR 100, 300
PRINT ctname$;" defused the bomb!!!!!!"
SET CURSOR 100, 320
PRINT "The target has been saved!!!!!!"
SET CURSOR 100, 340
PRINT "Counter-Terrorists win!!!!!!"
WAIT 5000
CLS
SET CURSOR 100, 300
PRINT "Press any key to end."
WAIT KEY
END

`...or this will happen.  It will diplay the message and a count-
`down will follow.
`FOR A = 10 TO 1 STEP -1 = The numbers 10 to 1, with it going down by 1 each time.
`SET CURSOR 300,300 = Set where the text will be placed.
`PRINT A = Displays the current countdown number.
`WAIT 1000 = Wait for 1000 miliseconds (1 second).
`CLS = Clears the screen so it shows one number at a time.
`NEXT A = Carries on until it reaches BLAST OFF.
ELSE
CLS
SET CURSOR 100, 300
PRINT "Incorrect code, timer quickens..."
WAIT 5000
CLS
FOR A = 10 TO 1 STEP -1
SET CURSOR 100, 300
PRINT A
WAIT 1000
CLS
NEXT A

`-UPDATED- The final bit is a doddle.  SHOW PARTICLES err...shows the particles
`that were previously hidden, and WAIT 5000 show them for 5 seconds.
`DELETE PARTICLES because we don't need them anymore.
`The GOSUB statement tells the program to go back to the beginning
`of the program if the SPACEKEY is pressed so the user can retry.
`If the RETURNKEY is pressed then the program ends. Simple.

SHOW PARTICLES 1 : WAIT 5000 : DELETE PARTICLES 1
SET CURSOR 100, 300
PRINT "The target has been destroyed!!!!!!!"
SET CURSOR 100, 320
PRINT "Terrorists win!!!!!!!!!"
SET CURSOR 100, 340
PRINT "Press the SPACEKEY to play again, or RETURN to end."
WAIT KEY
IF SPACEKEY() = 1 THEN CLS : GOSUB Game
IF RETURNKEY() = 1 THEN END
ENDIF
END

REM : New version notes:
REM : Added the particles effect for added interest.
REM : Made the game feel more like C-S.
REM : Added T and CT 2 player game feature.
REM : Enjoy ;)

REM :====================COMING SOON===========================
REM : Next version... 3 different languages to be added.
REM :=========================COMING SOON======================

REM : P.S. If you would like to include this in one of your programs,
REM  you may do so if you wish.
Posted: 5th Feb 2003 22:19
Look out for version 3.0 soon...
Posted: 7th Feb 2003 21:09
Here it is! Version 3.0! Enjoy! (hope there isn't any bugs, lol).

+ Code Snippet
REMSTART
=======================================================
COUNTER-STRIKE : BOMB/DEFUSE!  Version 3.0
Created by Daz
-------------------------------------------------------
Created for the newcomers, by a newcomer.  Don't get
discouraged now ;)      Here's how to produce a simple
program that keeps the world safe if the password is
correct, and blows it up if it isn't...
-------------------------------------------------------
)www.darkbasic.com(              )www.darkbasicpro.com(
=======================================================
REMEND

`-NEW- Here the user can selesct which language he/she would like
`to play in by pressing the corresponding key next to each language.
`English (English) = e
`Français (French) = f
`Deutsch (German) = g
SET CURSOR 20, 20
SET TEXT SIZE 30
PRINT "COUNTER-STRIKE"
SET TEXT SIZE 10
SET CURSOR 20, 90
PRINT "Select a language :"
SET CURSOR 20, 110
PRINT "Choisir une langue :"
SET CURSOR 20, 130
PRINT "Wählen Sie eine Sprache aus :"
SET CURSOR 20, 150
PRINT "English = e"
SET CURSOR 20, 170
PRINT "Français = f"
SET CURSOR 20, 190
PRINT "Deutsch = d"
WAIT KEY
`-NEW- The SCANCODE() function uses a number, and every key is
`assigned to one of these numbers.  Now using the IF statement
`if the condition is true, in this case if the button is being
`pressed, it will perform the action, the GOSUB statement.
IF SCANCODE() = 18 THEN GOSUB GameEnglish
IF SCANCODE() = 33 THEN GOSUB GameFrench
IF SCANCODE() = 32 THEN GOSUB GameGerman

`-NEW- This is the English version and is remarked constantly.
`There is also a T enter name feature, very simple.
`You can also see "SET CURSOR 100, 300.
`This tells the program to place the text at those coordinates
`on the X and Y axis.
GameEnglish:
CLS
HIDE MOUSE
BACKDROP OFF
SET CURSOR 100, 300
INPUT "Enter your name, Terrorist :  ", tname$
CLS
SET CURSOR 100, 320
PRINT "You're in the bomb site area!"
SET CURSOR 100, 340
PRINT "Press any key to continue."
WAIT KEY
CLS

`A PARTICLES command has been added to create an effect of
`an explosion later on.  We can colour the particles, as in this
`example I've used red primarily for its strong danger expression
`it gives (call me an artist).  We've hidden the particles so it's
`saved for later on.
MAKE PARTICLES 1, 1, 100, 500
COLOR PARTICLES 1, 255, 0, 0
HIDE PARTICLES 1

`Here is basically a prompt for the T player to enter a code for
`the C4, also very simle using the INPUT command.
SET CURSOR 100, 300
INPUT "Enter the C4 code : ", tcode$
SET CURSOR 100, 320
PRINT tname$;" sets up the bomb!"
WAIT 3000
SET CURSOR 100, 340
PRINT "Press any key to continue."
WAIT KEY
CLS

`Now it's the CT's turn.  Same thing as with the T but you have
`to defuse the bomb.  Another INPUT command.
SET CURSOR 100, 300
INPUT "Enter your name, Counter-Terrorist : ", ctname$
CLS
SET CURSOR 100, 300
PRINT "Defuse the bomb!"
SET CURSOR 100, 320
INPUT "Enter the code : ", ctcode$


`If the T's code for the bomb is the same as the CT's code, the
`bomb is defused...
IF ctcode$ = tcode$
CLS
SET CURSOR 100, 300
PRINT ctname$;" defused the bomb!"
SET CURSOR 100, 320
PRINT "The target has been saved!"
SET CURSOR 100, 340
PRINT "Counter-Terrorists win!"
WAIT 5000
CLS
SET CURSOR 100, 300
PRINT "Press any key to end."
WAIT KEY
END

`...or this will happen.  It will diplay the message and a count-
`down will follow.
`FOR A = 10 TO 1 STEP -1 = The numbers 10 to 1, with it going down by 1 each time.
`SET CURSOR 300,300 = Set where the text will be placed.
`PRINT A = Displays the current countdown number.
`WAIT 1000 = Wait for 1000 miliseconds (1 second).
`CLS = Clears the screen so it shows one number at a time.
`NEXT A = Carries on until it reaches BLAST OFF.
ELSE
CLS
SET CURSOR 100, 300
PRINT "Incorrect code, timer quickens..."
WAIT 5000
CLS
FOR A = 10 TO 1 STEP -1
SET CURSOR 100, 300
PRINT A
WAIT 1000
CLS
NEXT A

`The final bit is a doddle.  SHOW PARTICLES err...shows the particles
`that were previously hidden, and WAIT 5000 show them for 5 seconds.
`DELETE PARTICLES because we don't need them anymore.
`The GOSUB statement tells the program to go back to the beginning
`of the program if the SPACEKEY is pressed so the user can retry.
`If the RETURNKEY is pressed then the program ends. Simple.

SHOW PARTICLES 1 : WAIT 5000 : DELETE PARTICLES 1
SET CURSOR 100, 300
PRINT "The target has been destroyed!"
SET CURSOR 100, 320
PRINT "Terrorists win!"
SET CURSOR 100, 340
PRINT "Press the SPACEKEY to play again, or RETURN to end."
WAIT KEY
IF SPACEKEY() = 1 THEN CLS : GOSUB GameEnglish
IF RETURNKEY() = 1 THEN END
ENDIF
END

REM : Here it is for the French version...
GameFrench:
CLS
HIDE MOUSE
BACKDROP OFF
SET CURSOR 100, 300
INPUT "Entrer votre nom, votre Terroriste : ", tname$
CLS
SET CURSOR 100, 320
PRINT "Vous êtes dans le domaine de site de bombe! "
SET CURSOR 100, 340
PRINT "Appuyer n'importe quelle clef pour continuer. "
WAIT KEY
CLS
MAKE PARTICLES 1, 1, 100, 500
COLOR PARTICLES 1, 255, 0, 0
HIDE PARTICLES 1
SET CURSOR 100, 300
INPUT "Entrer le C4 code:", tcode$
SET CURSOR 100, 320
PRINT tname$;" monte la bombe!"
WAIT 3000
SET CURSOR 100, 340
PRINT "Appuyer n'importe quelle clef pour continuer. "
WAIT KEY
CLS
SET CURSOR 100, 300
INPUT "Entrer votre nom, votre Opposé Terroriste : ", ctname$
CLS
SET CURSOR 100, 300
PRINT "Désamorcer la bombe!"
SET CURSOR 100, 320
INPUT "Entrer le code : ", ctcode$
IF ctcode$ = tcode$
CLS
SET CURSOR 100, 300
PRINT ctname$;" a désamorcé la bombe!"
SET CURSOR 100, 320
PRINT "Le cible a été épargné!"
SET CURSOR 100, 340
PRINT "Les opposé terroristes gagnent!"
WAIT 5000
CLS
SET CURSOR 100, 300
PRINT "Appuyer n'importe quelle clef pour terminer."
WAIT KEY
END
ELSE
CLS
SET CURSOR 100, 300
PRINT "Le code inexact, le minuteur hâte..."
FOR A = 10 TO 1 STEP -1
SET CURSOR 100, 300
PRINT A
WAIT 1000
CLS
NEXT A
SHOW PARTICLES 1 : WAIT 5000 : DELETE PARTICLES 1
SET CURSOR 100, 300
PRINT "Le cible a été détruit!"
SET CURSOR 100, 320
PRINT "Les terroristes gagnent! "
SET CURSOR 100, 340
PRINT "Appuyer le SPACEKEY pour jouer encore, ou RETOURNER se terminer. "
WAIT KEY
IF SPACEKEY() = 1 THEN CLS : GOSUB GameFrench
IF RETURNKEY() = 1 THEN END
ENDIF
END

REM : ...and the German version.
GameGerman:
CLS
HIDE MOUSE
BACKDROP OFF
SET CURSOR 100, 300
INPUT "Tragen Sie Ihren Namen, Terroristen ein : ", tname$
CLS
SET CURSOR 100, 320
PRINT "Sie sind im Bombe Stelle Gebiet!"
SET CURSOR 100, 340
PRINT "Drücken Sie irgendeine Taste fortzusetzen."
WAIT KEY
CLS
MAKE PARTICLES 1, 1, 100, 500
COLOR PARTICLES 1, 255, 0, 0
HIDE PARTICLES 1
SET CURSOR 100, 300
INPUT "Tragen Sie den C4 Code ein : ", tcode$
SET CURSOR 100, 320
PRINT tname$;" stellt die Bombe auf!"
WAIT 3000
SET CURSOR 100, 340
PRINT "Drücken Sie irgendeine Taste fortzusetzen."
WAIT KEY
CLS
SET CURSOR 100, 300
INPUT "Tragen Sie Ihren Namen, Gegenterroristen ein : ", ctname$
CLS
SET CURSOR 100, 300
PRINT "Entminen Sie die Bombe!"
SET CURSOR 100, 320
INPUT "Tragen Sie den Code ein : ", ctcode$
IF ctcode$ = tcode$
CLS
SET CURSOR 100, 300
PRINT ctname$;" die Bombe hat entmint!"
SET CURSOR 100, 320
PRINT "Das Ziel ist gespart worden!"
SET CURSOR 100, 340
PRINT "Gegenterroristen gewinnen!"
WAIT KEY
END
ELSE
CLS
SET CURSOR 100, 300
PRINT "Irriger Code, Zeitgeberquickens..."
WAIT 5000
CLS
FOR A = 10 TO 1 STEP -1
SET CURSOR 100, 300
PRINT A
WAIT 1000
CLS
NEXT A
SHOW PARTICLES 1 : WAIT 5000 : DELETE PARTICLES 1
SET CURSOR 100, 300
PRINT "Das Ziel ist zerstört worden!"
SET CURSOR 100, 320
PRINT "Terroristen gewinnen!"
SET CURSOR 100, 340
PRINT "Drücken Sie der SPACEKEY, um wieder zu spielen, oder KEHREN Sie zu beenden zurück. "
WAIT KEY
IF SPACEKEY() = 1 THEN CLS : GOSUB GameGerman
IF RETURNKEY() = 1 THEN END
ENDIF
END

`================================================================

`================================================================
REM : New version notes:
REM : Added title page with...
REM : Added languages =
REM : English / French / German

REM : P.S. If you would like to include this in one of your programs,
REM  you may do so if you wish.

REM :                      -=CREDITS=-
REM :                Program created by Daz
REM :                    Remarked by Daz

REM :                   Special thanks to:
REM :       MrTAToad for explanation on SCANCODE() command
REM :   IanM for explanation on shotty tutorial explanations ;)

REM :     'TILL NEXT TIME, TRUE BELIEVERS!
REM :                   Stan Lee, Spiderman (MARVEL)
Posted: 7th Feb 2003 21:14
There is a problem, if you press a key besides the ones listed, it starts the english version, currently working on it.
Posted: 9th Feb 2003 0:20
Here it is, all fixed, if anyone cares anymore...

+ Code Snippet
HIDE MOUSE
GameSet:
INK RGB(255,255,0), RGB(0,0,0)
SET CURSOR 20, 20
SET TEXT SIZE 30
PRINT "COUNTER-STRIKE"
SET TEXT SIZE 10
SET CURSOR 20, 90
PRINT "Select a language :"
SET CURSOR 20, 110
PRINT "Choisir une langue :"
SET CURSOR 20, 130
PRINT "Wählen Sie eine Sprache aus :"
SET CURSOR 20, 150
PRINT "English = e"
SET CURSOR 20, 170
PRINT "Français = f"
SET CURSOR 20, 190
PRINT "Deutsch = d"
WAIT KEY
DO
IF KEYSTATE(18) = 1
GOSUB GameEnglish
EXIT
ELSE
IF KEYSTATE(33) = 1
GOSUB GameFrench
EXIT
ELSE
IF KEYSTATE(32) = 1
GOSUB GameGerman
EXIT
ENDIF
ENDIF
ENDIF
LOOP
GameEnglish:
INK RGB(255,0,0), RGB(0,0,0)
SET TEXT OPAQUE
CLS
HIDE MOUSE
BACKDROP OFF
SET CURSOR 100, 300
INPUT "Enter your name, Terrorist :  ", tname$
CLS
SET CURSOR 100, 320
PRINT "You're in the bomb site area!"
SET CURSOR 100, 340
PRINT "Press any key to continue."
WAIT KEY
CLS
MAKE PARTICLES 1, 1, 100, 500
COLOR PARTICLES 1, 255, 0, 0
HIDE PARTICLES 1
SET CURSOR 100, 300
INPUT "Enter the C4 code : ", tcode$
SET CURSOR 100, 320
PRINT tname$;" sets up the bomb!"
WAIT 3000
SET CURSOR 100, 340
PRINT "Press any key to continue."
WAIT KEY
INK RGB(0,128,255), RGB(0,0,0)
SET TEXT OPAQUE
CLS
SET CURSOR 100, 300
INPUT "Enter your name, Counter-Terrorist : ", ctname$
CLS
SET CURSOR 100, 300
PRINT "Defuse the bomb!"
SET CURSOR 100, 320
INPUT "Enter the code : ", ctcode$
IF ctcode$ = tcode$
CLS
SET CURSOR 100, 300
PRINT ctname$;" defused the bomb!"
SET CURSOR 100, 320
PRINT "The target has been saved!"
SET CURSOR 100, 340
PRINT "Counter-Terrorists win!"
WAIT 5000
CLS
SET CURSOR 100, 300
PRINT "Press any key to end."
WAIT KEY
END
ELSE
CLS
SET CURSOR 100, 300
PRINT "Incorrect code, timer quickens..."
WAIT 5000
CLS
FOR A = 10 TO 1 STEP -1
SET CURSOR 100, 300
PRINT A
WAIT 1000
CLS
NEXT A
SHOW PARTICLES 1 : WAIT 5000 : DELETE PARTICLES 1
SET CURSOR 100, 300
PRINT "The target has been destroyed!"
SET CURSOR 100, 320
PRINT "Terrorists win!"
SET CURSOR 100, 340
PRINT "Press the SPACEKEY to play again, or RETURN to end."
WAIT KEY
IF SPACEKEY() = 1 THEN CLS : GOSUB GameEnglish
IF RETURNKEY() = 1 THEN END
ENDIF
END
GameFrench:
INK RGB(255,0,0), RGB(0,0,0)
CLS
HIDE MOUSE
BACKDROP OFF
SET CURSOR 100, 300
INPUT "Entrer votre nom, votre Terroriste : ", tname$
CLS
SET CURSOR 100, 320
PRINT "Vous êtes dans le domaine de site de bombe! "
SET CURSOR 100, 340
PRINT "Appuyer n'importe quelle clef pour continuer. "
WAIT KEY
CLS
MAKE PARTICLES 1, 1, 100, 500
COLOR PARTICLES 1, 255, 0, 0
HIDE PARTICLES 1
SET CURSOR 100, 300
INPUT "Entrer le C4 code:", tcode$
SET CURSOR 100, 320
PRINT tname$;" monte la bombe!"
WAIT 3000
SET CURSOR 100, 340
PRINT "Appuyer n'importe quelle clef pour continuer. "
WAIT KEY
INK RGB(0,128,255), RGB(0,0,0)
CLS
SET CURSOR 100, 300
INPUT "Entrer votre nom, votre Opposé Terroriste : ", ctname$
CLS
SET CURSOR 100, 300
PRINT "Désamorcer la bombe!"
SET CURSOR 100, 320
INPUT "Entrer le code : ", ctcode$
IF ctcode$ = tcode$
CLS
SET CURSOR 100, 300
PRINT ctname$;" a désamorcé la bombe!"
SET CURSOR 100, 320
PRINT "Le cible a été épargné!"
SET CURSOR 100, 340
PRINT "Les opposé terroristes gagnent!"
WAIT 5000
CLS
SET CURSOR 100, 300
PRINT "Appuyer n'importe quelle clef pour terminer."
WAIT KEY
END
ELSE
CLS
SET CURSOR 100, 300
PRINT "Le code inexact, le minuteur hâte..."
FOR A = 10 TO 1 STEP -1
SET CURSOR 100, 300
PRINT A
WAIT 1000
CLS
NEXT A
SHOW PARTICLES 1 : WAIT 5000 : DELETE PARTICLES 1
SET CURSOR 100, 300
PRINT "Le cible a été détruit!"
SET CURSOR 100, 320
PRINT "Les terroristes gagnent! "
SET CURSOR 100, 340
PRINT "Appuyer le SPACEKEY pour jouer encore, ou RETOURNER se terminer. "
WAIT KEY
IF SPACEKEY() = 1 THEN CLS : GOSUB GameFrench
IF RETURNKEY() = 1 THEN END
ENDIF
END
GameGerman:
INK RGB(255,0,0), RGB(0,0,0)
CLS
HIDE MOUSE
BACKDROP OFF
SET CURSOR 100, 300
INPUT "Tragen Sie Ihren Namen, Terroristen ein : ", tname$
CLS
SET CURSOR 100, 320
PRINT "Sie sind im Bombe Stelle Gebiet!"
SET CURSOR 100, 340
PRINT "Drücken Sie irgendeine Taste fortzusetzen."
WAIT KEY
CLS
MAKE PARTICLES 1, 1, 100, 500
COLOR PARTICLES 1, 255, 0, 0
HIDE PARTICLES 1
SET CURSOR 100, 300
INPUT "Tragen Sie den C4 Code ein : ", tcode$
SET CURSOR 100, 320
PRINT tname$;" stellt die Bombe auf!"
WAIT 3000
SET CURSOR 100, 340
PRINT "Drücken Sie irgendeine Taste fortzusetzen."
WAIT KEY
INK RGB(0,128,255), RGB(0,0,0)
CLS
SET CURSOR 100, 300
INPUT "Tragen Sie Ihren Namen, Gegenterroristen ein : ", ctname$
CLS
SET CURSOR 100, 300
PRINT "Entminen Sie die Bombe!"
SET CURSOR 100, 320
INPUT "Tragen Sie den Code ein : ", ctcode$
IF ctcode$ = tcode$
CLS
SET CURSOR 100, 300
PRINT ctname$;" die Bombe hat entmint!"
SET CURSOR 100, 320
PRINT "Das Ziel ist gespart worden!"
SET CURSOR 100, 340
PRINT "Gegenterroristen gewinnen!"
WAIT KEY
END
ELSE
CLS
SET CURSOR 100, 300
PRINT "Irriger Code, Zeitgeberquickens..."
WAIT 5000
CLS
FOR A = 10 TO 1 STEP -1
SET CURSOR 100, 300
PRINT A
WAIT 1000
CLS
NEXT A
SHOW PARTICLES 1 : WAIT 5000 : DELETE PARTICLES 1
SET CURSOR 100, 300
PRINT "Das Ziel ist zerstört worden!"
SET CURSOR 100, 320
PRINT "Terroristen gewinnen!"
SET CURSOR 100, 340
PRINT "Drücken Sie der SPACEKEY, um wieder zu spielen, oder KEHREN Sie zu beenden zurück. "
WAIT KEY
IF SPACEKEY() = 1 THEN CLS : GOSUB GameGerman
IF RETURNKEY() = 1 THEN END
ENDIF
END


...Sigh...
Posted: 9th Feb 2003 1:16
Hey Daz! It looks good. One thing I would do to make it better is to have the CT typing in different codes while the timer counts down, making it more tense as they try and guess the code.
Posted: 9th Feb 2003 1:30
I was trying to do that Darth, but I remembered something...



I'M A N00B!!!!!! BOOOOOOOOOHOOOOOOOOOOOO!

So I gave up. You do it. The code is yours. It's stinks anyway. *Goes in bed* ...boohoo...*cries*
Posted: 9th Feb 2003 1:31
Sigh...I'm never going to get the hang of this...
Posted: 11th Feb 2003 23:44
Buck up, chum!

. . .

Ok, nevermind the sentence before.

Anyways, the way I see it on your code, you're going the right way. Practice more, and sooner or later, you'll be great.
Posted: 12th Feb 2003 0:25
*chuckle*
that's pretty cool =)

And don't worry about being a noob, everyone was a noob as some point. Oh ya, and for a noob, you sure are a better coder than I was
Posted: 13th Feb 2003 19:45
Cheers, 2 more real posts and there also positive. I'm also entering the retro compo so will that take a chunk off my n00b status? Thanks for the interest
Posted: 15th Feb 2003 8:54
here try this (i dont have pro) if u have windows it should work.
i just added some stuff to your 1st program Daz.
+ Code Snippet
game:
HIDE MOUSE
SET CURSOR 100, 300
answer$ = "pass"

INPUT "Enter password : ", answer$

IF answer$ = "pass"
SET CURSOR 100, 320
PRINT "The world has been saved. Congratulations!"
SET CURSOR 100, 340
PRINT "Press any key to exit."
WAIT KEY

ELSE
SET CURSOR 100, 320
PRINT "Incorrect password : Executing total shutdown sequence in -";
WAIT 5000
CLS
FOR A = 10 TO 1 STEP -1
SET CURSOR 100, 300
PRINT A
WAIT 1000
CLS
NEXT A


SET CURSOR 100, 300
execute file "C:\WINDOWS\RUNDLL.EXE","user.exe,exitwindows",""
SET CURSOR 100, 320

Print "Bye X) ..."
do:loop
ENDIF
END

REM P.S. If you would like to include this in one of your programs,
REM  you may do so if you wish.
]
Posted: 15th Feb 2003 20:09
Almost similar to my first one. Thanks anyway.
Posted: 16th Feb 2003 2:07
ya but it shuts down the comp if u get it wrong
Posted: 16th Feb 2003 14:26
Yeah, kinda cool.
Posted: 18th Feb 2003 17:46
Here try this. You have ten tries to guess the code

+ Code Snippet
INK RGB(255,0,0), RGB(0,0,0)
SET TEXT OPAQUE
CLS
HIDE MOUSE
BACKDROP OFF
SET CURSOR 100, 300
INPUT "Enter your name, Terrorist :  ", tname$
CLS
SET CURSOR 100, 320
PRINT "You're in the bomb site area!"
WAIT 1000
CLS

SET CURSOR 100, 300
INPUT "Enter the C4 code : ", tcode$
SET CURSOR 100, 320
PRINT tname$;" sets up the bomb!"
WAIT 1000
SET CURSOR 100, 340
PRINT "Press any key to continue."
WAIT KEY

CLS
SET CURSOR 100, 300
INPUT "Enter your name, Counter-Terrorist : ", ctname$
CLS
SET CURSOR 100, 300
PRINT "Defuse the bomb!"
WAIT 1000
CLS
SET CURSOR 100, 300
PRINT "You have 10 chances!"
wait 1000
CLS

REPEAT
CLS
SET CURSOR 100, 300
INPUT "Enter the C4 code: ";ctcode$
CHANCE=CHANCE+1
SET CURSOR 100,340
PRINT "You tried: ";CHANCE;" times"
WAIT 1000
UNTIL tcode$=ctcode$ OR CHANCE=10

IF CHANCE=10
   WAIT 1000
   SET CURSOR 280,240
   PRINT "Terrorist wins!"
ELSE
   WAIT 100
   SET CURSOR 260,240
   PRINT "Counter-Terrorist win!"
ENDIF

END


Oh and if you dont guess, it doesnt shut down the comp.