Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / dark basic programming help?

Author
Message
Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 3rd Nov 2007 20:24 Edited at: 5th Nov 2007 23:29
i need some help in my dark basic programming this is what i got so far for my texted based game




i'm having trouble with the input part i want to make it so is the user presses y it prints great choice can some one please help me?
if you want to see the file i attached it.

Attachments

Login to view attachments
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 3rd Nov 2007 21:29
because 'y' and 'n' are not numbers, you need to make choice a string, by putting a $ at the end of 'chice', as in input choice$.

Nya!
Well, yes but - wait, what?
Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 3rd Nov 2007 21:33
thx for the refresher
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 3rd Nov 2007 23:31
More intro level help if you need it here:

http://forum.thegamecreators.com/?m=forum_view&t=99497&b=10

(Tutorials 1 to 4 cover the elementary stuff).

TDK_Man

Login to post a reply

Server time is: 2025-05-31 20:48:05
Your offset time is: 2025-05-31 20:48:05