Alliedassault

Alliedassault (alliedassault.us/index.php)
-   Offtopic (alliedassault.us/forumdisplay.php?f=13)
-   -   Programmers! HELP! (alliedassault.us/showthread.php?t=13482)

Art Attack 11-26-2002 08:23 PM

Programmers! HELP!
 
ok, i'm my computer engineering class which the damn school put me, we are doing a project with Qbasic. and this is all I know in qbasic

INPUT "hello, what is your name "; username$' "."
PRINT "hello, "; username$;

and I need major help on it! out game is basicly you are late for school and you have options but each option has a diff. one and I diff. conseqence! this is what I have so far for the lay out, and this is purely text!

1) You wake up and find out your late for school.

a) Get up and rush to school.
b) stay home and wait till next class
c) Take your time since your already later


1a) You rush to school and your sent for a late slip

a) sign in and go back to class
b) Sign in and wonder around
c) don't sign in and go to the library


1b) Your sitting down watcing TV and you think...

a) I should go to school know!
b) Head to school and wait around for next class
c) Do something to not think about skipping


1c)
a) While walking think up a good excuse
b) Pick up the pace so your not in SO much trouble




thnx alot!

Newton 11-26-2002 08:29 PM

yeah, well I not to smart with computers so I use the old "kicking method"

you should try works well.... for awhile biggrin:

Art Attack 11-26-2002 08:47 PM

?????????????

Newton 11-26-2002 08:49 PM

yeah .... evil: evil: evil: evil: evil:

Why Should I help you?

SoLiDUS 11-26-2002 08:59 PM

[quote:9aa92]1) You wake up and find out your late for school.

a) Get up and rush to school.
b) stay home and wait till next class
c) Take your time since your already later


1a) You rush to school and your sent for a late slip

a) sign in and go back to class
b) Sign in and wonder around
c) don't sign in and go to the library [/quote:9aa92]

I don't know how to program yet but I'm assuming you will play with IFs and
THENs, correct ?

It's just a simple hierarchy thing...

{ THIS IS THE BIG SET

......... IF { THIS IS A SMALLER SET
.................. THEN { EVEN SMALLER SET #1}
}

.........IF { THIS IS A SMALLER SET
.................. THEN { EVEN SMALLER SET #2}
}

}

Get the idea? Again, I don't know shit about programming yet so this is just
what I think I got from watching a friend going at it...

ninty 11-26-2002 09:14 PM

I don't know qbasic.

is it anything like c++?

Art Attack 11-26-2002 09:48 PM

thnx soli, I kinda get it, and ninty9 I have no clue, never really used c++ but this kinda what you do


CLS
INPUT "hello, what is your name? "; username$' "."
PRINT " hello, "; username$;
INPUT "How are you today? "; username$;

and so on...

Magnum 11-26-2002 10:45 PM

I don't know what it would be in QBasic, but to do it in C:
I would use a string for the username thing, then a bunch of if or switch/break statements for the actual gameplay options.

Monkeyman 11-27-2002 12:58 AM

i am a programmer i got my microwave working what do you need help with

Cethin 11-27-2002 10:42 AM

I can do games in C++, it just takes time. Art, I forgot to ask you, does this game require graphics in QBASIC?

11-27-2002 10:44 AM

just what we need another HUGE asian prince sig

Bazooka_Joe 11-27-2002 12:14 PM

Quote:

Originally Posted by Strik0r
just what we need another HUGE asian prince sig

More like another HUGE moron.

Innoxx 11-27-2002 12:23 PM

I know how to turn my computer on..... that's about it.

Mosquito 11-27-2002 12:42 PM

Dont know anything about QBasic, but it has to have if then statements

(if it has switch statements you could use them too, but there's not really many selections there) You want something along the lines of :

1) if (a == "get up and rush to school) then
if (b == "sign in and go to class) then
do something
else if (b == "sign in and wander around")
do something else
else
do some other thing
else if (a ==....

ie, bunch of embedded if's

what school still teaches QBasic though? that really sucks big!!
Get into a good C++ program then ask lol

Art Attack 11-27-2002 12:43 PM

haha, um....no Cethin, the game us purely text wise, and you have like options

1)goto school
2)stay home


that kinda stuff and it doesn't gotta be very long of a game.


All times are GMT -6. The time now is 12:04 PM.

Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.