Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Video Game Using COMMAND.COM Scripts

Name: Anonymous 2015-07-24 15:26

100% crazy guy develops graphics intensive video game using just your typical .bat files:
http://opengameart.org/forumtopic/the-new-game-project

Wiring up all the 200+ Flags and Value Counters into the dialog tree took me some time to do.

Text Dialog of game written so far: 5,000+ paragraphs of dialog

Here's a snippert of my code: to show the different flags I'm talking about:
:tsewr
cls
echo. -----------------ENTRANCE INTO RIGHT TUNNEL SEWER ------------------
echo.
echo. Commander: It looks like another old sewer system.
echo.
set /a spin=%random% %%3+1
if %spin% EQU 1 if %sewer% EQU 1 if %loana% EQU 1 echo. Loana: Oh no, not this again
if %spin% EQU 2 if %sewer% EQU 1 if %loana% EQU 1 echo. Loana: The last time we
if %spin% EQU 3 if %sewer% EQU 1 if %loana% EQU 1 echo. Loana: We were attacke
echo.
echo.
if %sewer% EQU 1 echo. Storm: Yeah, there were too many rats down in that last sewer
if %sewer% EQU 0 echo. Storm: Looks like a dark and spooky place to me.
if %sewer% EQU 1 echo. Storm: I'm game to give it another go as long as Skinar rescues us
echo.
if %sewer% EQU 1 echo. Commander: Yeah I do remember and that was an awful exp
if %sewer% EQU 1 echo. maybe we should turn back in case we are outnumbered again
echo.
echo.
echo. Commander: Well let's go in and explore these tunnels then.
echo.

echo. Storm: Let's investigate then.
set /a spin=%random% %%5+1
if %spin% EQU 1 if %loana% EQU 1 echo. Loana: Try not to get yourselves all dirty
if %spin% EQU 2 if %loana% EQU 1 echo. I don't really want to go back down there
if %spin% EQU 3 if %loana% EQU 1 echo. It took ages to get the stench out of our clothes
if %spin% EQU 4 if %loana% EQU 1 echo. I don't want my hair to get all messed up again
if %spin% EQU 5 if %loana% EQU 1 echo. I don't want to meet anymore of those hideous rats

if %t6unit% EQU 1 echo. t6unit: I have been in here before.
echo.
if %t6unit% EQU 1 if %loana% EQU 1 echo. I'm sure you have T6. But I don't plan on staying.
echo.
echo. Storm: Bla bla bla, Excuses, Excuses, you are just full of excuses Loana, where's your sense
echo. of adventure.
echo.

set /a spin=%random% %%3+1
If %loana% EQU 1 echo. Loana: You mean where' your sense of intelligence.
if %loana% EQU 1 echo. Loana: Are you sure your brain is not on overfreeze Storm.
if %loana% EQU 1 echo. Loana: Let me help you thaw out few of your broken frozen clusters.

echo. Commander: Now stop it you two, no more arguing.

echo.
echo. Skinar (breaking over Communications), Commander. I ran scans
echo. Deeper in the sewer exists some volatile pockets of gas. Be careful
echo. not to trigger them off. Try not to shoot any weapons down here.
echo.
echo. Storm: Oh great, then what if we come across more rats.
echo.
echo. Commander: Use the other end of your gun.
echo.
echo. Storm: Play Whack a rat, ok then. Let's just hope there's not a million of them in this sewer.
echo.
echo.
if %sewer% EQU 1 echo. A) Turn back the way you came.
if %sewer% EQU 1 echo. B) Man up and take a risk


Well in this game you have to find a cure to a plague. but as the game unravels you find you also have to clean up the galaxy of rogue factions and a few out of control droids. to get into all the system areas, your ship needs to have strong enough shielding and your guns need to be powerful because some areas will have stronger enemy fire and you build all this up through trading and mining. So you collect credits to build up your shielding and your guns.

All the rooms in the game have spin counters. so many rooms have them, I use them for replacing characters so each time you reenter the room, the scene changes, you get people at the bar appearing at different times to give you a mini quest or task and some rooms don't have them, so over 600 spin counters have been already been wired up into the game. I use them mostly for changing dialog lines to allow the characters to speak their own minds. but I also use them for changing things around in the rooms or choosing different rooms to branch the game out so instead of being linear, its more multi level, because spin counters allows me to HIDE and UNHIDE rooms or trigger certain events...

So some rooms in the game do switch places using a spin counters and this gives the game alot more depth.

So If the flags switches exist, then you get the different spoken dialogs depending on your progress in the story line in the game.

Name: Anonymous 2015-07-24 15:30

Have a look at the code I used for the Metroa System for the Gas Barrier.....................
:metrostart
sound play spaceambient.wav
sound play spacestation.wav
set shiphealth=30000
set shipshields=7000
set gaspocket=0
goto metrosys

:metrosys
echo.
echo. (A) Bank Ship Right of Gas Pocket
echo. (B) Bank Ship Left of Gas Pocket
echo. (V) Reverse back the way you came
echo.
set /p x1=
if %x1%==a goto explosion1
if %x1%==b goto thru1
if %x1%==v goto zoomtprime
goto metrosys

:explosion1
cls
echo. -------------------------------------------------------------------
sound play explosion01.wav
echo. Gas Pockets Left: %gaspocket% of 20 Health: %shiphealth% Shields: %sh
set /a spin=%random% %%1700+100
echo.
echo. The Ship receives %spin% damage as it runs into a gas pocket.
set /a spin=%random% %%1300+690
set /a shipshields=%shipshields%-%spin%
if %shipshields% LEQ 0 set /a shiphealth=%shiphealth%-%spin%
if %shipshields% LEQ 0 set /a shipshields=0
if %shipshields% LEQ 0 echo. && echo. Ship's Computer: Warning, SHIELDS COLLAP
sound play alarm2.wav
echo.
set /a spin=%random% %%4+1
if %spin% EQU 1 if %shipshields% LEQ 3000 echo. Commander: Did we upgrade the
if %spin% EQU 2 if %shipshields% LEQ 3000 echo. Commander: We better get outta
if %spin% EQU 3 if %shipshields% LEQ 3000 echo. Commander: Get us out of here,

if %spin% EQU 4 if %shipshields% LEQ 3000 echo. Commander: We need stronger sh

set /a spin=%random% %%3+1
if %spin% EQU 1 if %shipshields% LEQ 1000 echo. Storm: Apparently it seens not
if %spin% EQU 2 if %shipshields% LEQ 1000 echo. Storm: We won't last much long
if %spin% EQU 3 if %shipshields% LEQ 1000 echo. Storm: We got to leave, we can

if %shipshields% LEQ 1000 echo.
if %shipshields% LEQ 1000 echo. Commander: Then we better get the shields upgr

echo.
rem -- Here comes all of Skinar's 101 excuses

set /a spin=%random% %%9+1
if %spin% EQU 1 echo. Skinar: Oops, I might be a little bit rusty,
if %spin% EQU 2 echo. Skinar: I haven't actually done this kind of thing befo
if %spin% EQU 3 echo. Skinar: Oh shit.
if %spin% EQU 4 echo. Skinar: Crap
if %spin% EQU 5 echo. Skinar: Wrong way
if %spin% EQU 6 echo. Skinar: Right into trouble
if %spin% EQU 7 echo. Skinar: Damm
if %spin% EQU 8 echo. Skinar: I will get it eventually Commander
if %spin% EQU 9 echo. Skinar: It will take a little time.
echo.
set /a spin=%random% %%9+1
if %spin% EQU 1 set spin=Idiot
if %spin% EQU 2 set spin=Moron
if %spin% EQU 3 set spin=Dweeb
if %spin% EQU 4 sst spin=Nutter
if %spin% EQU 5 set spin=Dodo
if %spin% EQU 6 set spin=Dimwit
if %spin% EQU 7 set spin=thick
if %spin% EQU 8 set spin=slow
if %spin% EQU 9 set spin=stupid

if %loana% EQU 1 echo. Loana: I thought this guy was the best pilot
echo. around. He is a %spin% . My droids could do a better job.
echo.
echo. Storm: So you think machines are better than humans do you. Well your
echo. Machines don't have any personality, and that's the one thing you are
echo. missing. You have been coddled by machines all your life.

Name: Anonymous 2015-07-25 9:58

I used to do stuff like this when I was very young.

Name: Anonymous 2015-07-25 13:19

>>3
When I was very young, I was coding MIPS, hacking PSX ISOs. MIPS was my first programming language.

Don't change these.
Name: Email:
Entire Thread Thread List