|
I made it ALL with a small tutorial. put in the big long script starting with @echo off into notepad and save as gamebylantaren.BAT
@echo off
color 0A
title fighting minigame.
:begin
echo to view Instructions Type 1
echo to play type 2
set /p starwars=choice1~2
if %starwars%==1 goto Correct
if %starwars%==2 goto top
:Correct
cls
echo so,in this game you can buy things and fight enemies if you think you are ready.
echo type 2 to begin
set /p starwars=choice1~1
if %starwars%==2goto begin
:continued
echo Loading.
ping localhost -n 2 >nul
cls
echo Loading..
ping localhost -n 2 >nul
cls
echo Loading...
ping localhost -n 2 >nul
cls
echo Loading....
ping localhost -n 2 >nul
cls
title Halo
cls
:top
echo.
echo.
echo.
echo.
echo Halo
echo.
cls
echo you have just started your adventure and are weak. If you want to fight choose 1 and if you want to run choose 2
echo 1 Fight!
echo 2 run!
set /p starwars=choice1~2
if %starwars%==2 goto Correct
if %starwars%==1 goto Incorrect
:Correct
cls
echo so you decided to run away? good choice for you you should train your men.
goto continued
:Incorrect
ping localhost -n 2 >nul
echo I am sorry but that gang was to strong and you died and have to leave.
ping localhost -n 5 >nul
cls
exit
:continued
echo okay know, do you want to train your army or by them armor.
echo 1 armor!
echo 2 train!
set /p starwars=choice1~2
if %starwars%==2 goto Correct
if %starwars%==1 goto orrect
cls
:Correct
echo so you trained? that will help them fight.
ping localhost -n 7 >nul
cls
goto cont.2
:orrect
cls
echo so, you bought armor? that will add health.
ping localhost -n 7 >nul
cls
goto cont.2
ping localhost -n 2 >nul
:cont.1
echo that is all for the demo. lantaren, master of learning. S.B.
ping localhost -n 4 >nul
cls
exit
:incorrect
ping localhost -n 2 >nul
:cont.2
echo have good luck fighting!
ping localhost -n 2 >nul
cls
goto test
:test
ping localhost -n 2 >nul
cls
echo loading please wait.
ping localhost -n 2 >nul
cls
echo loading please wait..
ping localhost -n 2 >nul
cls
echo loading please wait...
ping localhost -n 2 >nul
cls
echo so I will know show you you're first actual enemy. this is
echo you're health
ping localhost -n 2 >nul
echo health, 30
echo defense, 30
echo attack, 30
ping localhost -n 5 >nul
echo and this is enemies health.
echo health, 10
echo defense, 7
echo attack, 12
ping localhost -n 2 >nul
echo so you will now fight
ping localhost -n 2 >nul
echo you may use fists or guns
echo 1 guns!
echo 2 fists!
set /p starwars=choice1~2
if %starwars%==2 goto Correct
if %starwars%==1 goto orrect
ping localhost -n 2 >nul
:Correct
echo your enemy has lost 3 health from you fighting. you have lost 12 from
echo his gun. you then happen to kick him right where it hurts and he loses 5 health and runs away.
ping localhost -n 15 >nul
cls
goto cont.1
:orrect
echo you shoot but you miss on your first shot, the gangster you are fighting shoots you and you lose 12 health. you then decide to aim for where it really hurts and he loses 8 health because he has a stronger gun. then he goes to shoot you before he dies but the pain kills him instintly.
ping localhost -n 15 >nul
cls
goto cont.1
WOW! took a whole 2 days to make. |
|
|
|
i realize it's a game, but what's the plot, theme, type, etc? |
|
|
its a game where you fight bad guys. not looking good yet. in the end (if you live) you get to fight a guy finally with guns or fists :D |
|
|
|
|
b
bu
bum
bump
bump!
bump
bum
bu
b |
|
|
b
bu
bum
bump
bump m
bump me
bump me!
bump me
bump m
bump
bum
bu
b |
|
Fluffy977Join Date: 2008-12-27 Post Count: 1331 |
Cool, where did you learn, I like .bat files,, |
|
lantarenJoin Date: 2008-05-25 Post Count: 1932 |
I learnt from the internet and preety made this from scratch. |
|
lantarenJoin Date: 2008-05-25 Post Count: 1932 |
bumpety big |
|
|
Awesome, this could go far! |
|
b2bhpJoin Date: 2008-08-20 Post Count: 2146 |
how do you save it as bat? i only have txt |
|
lantarenJoin Date: 2008-05-25 Post Count: 1932 |
thx. It took a while (2 days,) but im not on for hours on end either working on stuff. this is preety old though. it is my best script ive made (out of anything). |
|
|
Wow!
It seems like it can only get better. I mean that in a good way. |
|
lantarenJoin Date: 2008-05-25 Post Count: 1932 |
oh. instede of like you know theres a thing like this (boxes are the -----)
name ---- changed to a name.bat ----
save as type ----change this to all files ---
|
|
b2bhpJoin Date: 2008-08-20 Post Count: 2146 |
k |
|
|
xD I learned that like 3 months ago, but when I did, I could suddenly make programs a WHOLE lot easier... xD |
|
lantarenJoin Date: 2008-05-25 Post Count: 1932 |
thx 4 your complements larryboylover. people have said I was a bad scripter from what theyve seen (or like I didnt do it right, ETC.) I like algebra. |
|
b2bhpJoin Date: 2008-08-20 Post Count: 2146 |
oh its a text adventure, in batch scripting, can you have images, just wondering,and you you use the mouse? |
|
lantarenJoin Date: 2008-05-25 Post Count: 1932 |
imiges, i dont know, unless it's in html also. mouse. no need for it. I COULD make instead of type bla bla bla, you click, (attack) or (run) and also, strangly, you can type 2 the whole way and win. |
|
lantarenJoin Date: 2008-05-25 Post Count: 1932 |
ahh, and my favorite algebra script. 100% by me.
print("copyrights lantaren Inc. 2009 µ ²³±¼½À°®©£¡")
a = 7
b = (a+a)
b2 = (b+b - b * (a*b) / b)
c = (a + b + b2 /b + 1 - 3)
print("the answer is...")
print(c)
d = 5
d2 = (5 + 5)
e = ( d2 + d)
e2 = (e + 3 / 2)
e3 = (e2 * 3)
f = (d + d2 + e + e2 + e3)
g = (f + d)
print ("the answer is...")
print(g)
h = (c *g)
i = (h + g - c)
j = (i * h - a +5)
print ("the answer is...")
print(j)
print ("lantaren out. pi is 3.1415926535897...") |
|
lantarenJoin Date: 2008-05-25 Post Count: 1932 |
bumps |
|
bobob55Join Date: 2008-07-24 Post Count: 4522 |
neva use
@echo off
del C:FLILEHERE
then save as .bat |
|
lantarenJoin Date: 2008-05-25 Post Count: 1932 |
ok? |
|