Asked • 07/19/19

BBC basic variables?

Background info for the problem: I am writing a text adventure game where the player has multiple paths to choose at each intersection/ problem. Problem: I am attempting to use a variable from another path, which may not of been called upon. Is there anyway to call this variable before or skip a line of code? This is the section of my code I am talking about 38 input "What do you do? 'A' to continue, 'B' to run away" , BAB$ 39 if BAB$ == "A" then 40 if BCP$ == "B" then 41 print "The hunters see you return" 42 print "When they ask if you found the prisoner, you respond by saying that you havent seen him" 43 print "The hunters decide that this venture isnt worth it, and decide to leave, taking you with them" 44 wait 30 45 print "You escape shortly after the rest of the group leaves the area" 46 print "You are now a free man" 47 wait 200 48 clear 49 cls 50 goto 100 51 else 52 goto 55 53 endif Have any questions about my wording? Just ask!

1 Expert Answer

By:

Patrick B. answered • 07/19/19

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.