Poll: Did you use a tutorial to start you out on qbasic?
You do not have permission to vote in this poll.
yes
100.00%
17 100.00%
no
0%
0 0%
huh?
0%
0 0%
Richard Nixon
0%
0 0%
A jar of almonds
0%
0 0%
Total 17 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Interactive Story (n00b Alert)
#11
Also, GOTO has another relatively useless use: making code shorter, like for my challenge in the challenge section!
Reply
#12
do you mean a sory that if asks you to make a decission and then the story changes based on that descision?

If so it will be something like this:

Code:
input "Go left or right? input L or R", decision$
if decision$ = L or decision$ = l then
    ? "next piece of story"
else
    ? "another piece of story"
end if

if you are making a lot of choices in the story, it might be a good idea to create an array called decision and every decision you make is added so you can check back when necessary.

Also it will get very confusing because if the story splits in two every decision, if you make 10 decisions you end up with 1024 different endings. If you make 5 decisions you end up with 32.

Maybe contain each piece of text in different txt files which you can open, this might make the code a little simpler
eminiscing about trapezoids in conjunction with stratospherical parabolas:

No questions asked.

www.stickskate.com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)