Alliedassault           
FAQ Calendar
Go Back   Alliedassault > Lounge > Offtopic
Reload this Page Programmers! HELP!
Offtopic Any topics not related to the games we cover. Doesn't mean this is a Spam-fest. Profanity is allowed, enter at your own risk.

Reply
 
Thread Tools Display Modes
Programmers! HELP!
Old
  (#1)
Art Attack is Offline
1st Lieutenant
 
Posts: 4,807
Join Date: Jan 2002
Location: Ottawa, Ont, Canada
 Send a message via ICQ to Art Attack Send a message via AIM to Art Attack Send a message via MSN to Art Attack  
Default Programmers! HELP! - 11-26-2002, 08:23 PM

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!
  
Reply With Quote
Old
  (#2)
Newton is Offline
Senior Member
 
Posts: 196
Join Date: Aug 2002
  Send a message via AIM to Newton  
Default 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:
  
Reply With Quote
Old
  (#3)
Art Attack is Offline
1st Lieutenant
 
Posts: 4,807
Join Date: Jan 2002
Location: Ottawa, Ont, Canada
 Send a message via ICQ to Art Attack Send a message via AIM to Art Attack Send a message via MSN to Art Attack  
Default 11-26-2002, 08:47 PM

?????????????
  
Reply With Quote
Old
  (#4)
Newton is Offline
Senior Member
 
Posts: 196
Join Date: Aug 2002
  Send a message via AIM to Newton  
Default 11-26-2002, 08:49 PM

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

Why Should I help you?
  
Reply With Quote
Old
  (#5)
SoLiDUS is Offline
Senior Member
 
Posts: 5,158
Join Date: Jan 2002
Location: Gatineau, Qc, Canada
 Send a message via ICQ to SoLiDUS Send a message via MSN to SoLiDUS  
Default 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...
  
Reply With Quote
Old
  (#6)
ninty is Offline
Major General
 
ninty's Avatar
 
Posts: 12,683
Join Date: Jan 2002
Location: Calgary
   
Default 11-26-2002, 09:14 PM

I don't know qbasic.

is it anything like c++?
  
Reply With Quote
Old
  (#7)
Art Attack is Offline
1st Lieutenant
 
Posts: 4,807
Join Date: Jan 2002
Location: Ottawa, Ont, Canada
 Send a message via ICQ to Art Attack Send a message via AIM to Art Attack Send a message via MSN to Art Attack  
Default 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...
  
Reply With Quote
Old
  (#8)
Magnum is Offline
Senior Member
 
Posts: 2,735
Join Date: Oct 2002
Location: Perpetual Photoshopping
   
Default 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.
  
Reply With Quote
Old
  (#9)
Monkeyman is Offline
Junior Member
 
Posts: 14
Join Date: Nov 2002
Location: next to germ my new best friend
   
Default 11-27-2002, 12:58 AM

i am a programmer i got my microwave working what do you need help with
  
Reply With Quote
Old
  (#10)
Cethin is Offline
Private 1st class
 
Posts: 232
Join Date: Jan 2002
Location: Hebron, CT, USA
  Send a message via AIM to Cethin  
Default 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?


  
Reply With Quote
Old
  (#11)
Guest
 
Posts: n/a
   
Default 11-27-2002, 10:44 AM

just what we need another HUGE asian prince sig
  
Reply With Quote
Old
  (#12)
Bazooka_Joe is Offline
Senior Member
 
Posts: 12,585
Join Date: Jan 2002
Location: Staten Island, NY, USA
 Send a message via ICQ to Bazooka_Joe Send a message via AIM to Bazooka_Joe Send a message via MSN to Bazooka_Joe Send a message via Yahoo to Bazooka_Joe  
Default 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.
  
Reply With Quote
Old
  (#13)
Innoxx is Offline
Senior Member
 
Posts: 8,546
Join Date: Jan 2002
Location: I don't know
 Send a message via ICQ to Innoxx Send a message via AIM to Innoxx  
Default 11-27-2002, 12:23 PM

I know how to turn my computer on..... that's about it.
  
Reply With Quote
Old
  (#14)
Mosquito is Offline
Senior Member
 
Posts: 1,035
Join Date: Jan 2002
Location: Ottawa, Ontario
   
Default 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
  
Reply With Quote
Old
  (#15)
Art Attack is Offline
1st Lieutenant
 
Posts: 4,807
Join Date: Jan 2002
Location: Ottawa, Ont, Canada
 Send a message via ICQ to Art Attack Send a message via AIM to Art Attack Send a message via MSN to Art Attack  
Default 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.
  
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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