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.

Newcomers DBPro Corner / Some help needed for my choose your own adventure!!!!

Author
Message
SuperBeginner
14
Years of Service
User Offline
Joined: 26th Mar 2010
Location:
Posted: 27th Mar 2010 03:04
Im making A choose Your Own Adventure game. I have it showing my text like i want, but when i get to where you answer what you want to do, It says "Choose your own adventure has stopped working"
"windows is searching for a solution"
I can't figure out what i did wrong!
Is the prolem my computer, or my Script
( im running windpws vista home premium)
[/code]Hide Mouse
SET TEXT TO NORMAL
Hide Mouse
`tittle screen
Set Text font "Freestyle script"
SET TEXT SIZE 24

Print "Choose your own adventure pc Version 1"
Print "Created by C.J. Bailey"
Print "press space bar to continue"
Wait Key
CLS
Wait (5000)
Print "You and a friend were walking down the street when"
Print "a big van pulled up beside you."
Print "A fat ugly man was driving. You didn't think nothing of it."
Print "But then a Hot girl got out of the back."
Print "She asked you if you want to come to her house and play video games"
Wait Key
CLS
Print "Would you like to go with her"
Print "Yes, No"
Wait Key

Input "YES"
Input "NO"
If Input$ = "Yes" Then Goto A
If Input$ = "NO" Then Goto B

Cls
A:
Print "She invits you into the van, and you and your Friend enter it."
Print "It's a really nice van inside. Complete with a GPS."
Print "The ugly fat man drives you to a nice looking house"
Print ""
Input " "
Cls
Print "Do you want To meet your crew? "
Print "Yes Or No"
Input "Yes No"
If InputString$ = "Yes" Then Goto Crew
If InputString$ = "yes" Then Goto Crew
If InputString$ = "No" Then Goto Combat1
If InputString$ = "No" Then Goto Combat1

B:
Print "Test "
Print " Test"
Wait Key

Sync
Loop
End[code]

Itsssssss wednesday
Ashingda 27
16
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 27th Mar 2010 07:29 Edited at: 27th Mar 2010 07:29
You swapped the [ code ]..[ /code ]

Is this the whole code because you have missing labels. Don't see any Crew: or Combat1: anywhere.
SuperBeginner
14
Years of Service
User Offline
Joined: 26th Mar 2010
Location:
Posted: 27th Mar 2010 15:02
No it's not the entire code.that's the veery begginning of it. Everytime i run it, it says compilation succsefull. Then it runs and shows the begginning text. But once it gets to where u choose wheree u want to go, it stops working

Itsssssss wednesday
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 27th Mar 2010 15:18
Avoid using GOTO!





Windows 7 32-Bit Home Premium Intel Pentium Dual-Core @ 1.46Ghz 2038mb RAM
SuperBeginner
14
Years of Service
User Offline
Joined: 26th Mar 2010
Location:
Posted: 28th Mar 2010 04:25
Thx for the help. im trying the "gosub" now to se if it works

Itsssssss wednesday
SuperBeginner
14
Years of Service
User Offline
Joined: 26th Mar 2010
Location:
Posted: 28th Mar 2010 04:35
thanks to Ashingda 27 for telling me how to work the code snippet.
Thanks to Mad Nightmare for help with the script!!!!
it did work, thanks guys

Itsssssss wednesday

Login to post a reply

Server time is: 2024-11-23 19:23:29
Your offset time is: 2024-11-23 19:23:29