The other forum was getting quite long, but here is where I'm standing right now with the Interactive story. Just wanted an opinion of how it is so far.
[code]
' Initialization of Game
' Here we declare all the variables we are going to need.
' As well as anything else we are going to need.
dim answer ' player answer
dim node ' current node
dim gameOver ' is the game over?
dim axe ' does the player have axe?
dim crowbar ' does the player have the crowbar?
dim handgun ' does the player have the handgun?
dim sndTSG 'music
node = 1 ' player starts at node 1
gameOver = false ' no, it's just starting.
crowbar = false ' the player doesn't start with crowbar
handgun = false ' the player doesn't start with the handgun
axe = false ' the player doesn't start withe the axe
console.Initialize ' start the console object
sound.Initialize ' starting the sound file
music.SetLoopPlay sndTSG, true 'music loop
sndTSG = sound.LoadWav("peanuts_theme.wav") 'the sound file that will be started
sound.PlayWav sndTSG ' command to play the sound
' Intro text
' Since it's not a part of the game loop, then it gets shown only once
console.writeline "/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/"
console.writeline "\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Wierdo v1.1.0 /\/\/\/\/\/\/\/\/\/\/\/\/\/\"
console.writeline "/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ BY /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\"
console.writeline "\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ THE Team \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\"
console.writeline "/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/"
system.pause(5000)
' this is the game loop. It repeats from here when the code reaches "loop"
' it keeps going until gameOver is set to false
do while not gameOver
select case node ' do things depending on what number is in node
case 1 ' if the current node is 1 then do this
console.WriteLine
console.WriteLine "You awake in an old hay barn. You glance around to see only that every"
console.WriteLine "hole , even the doors and the windows have been boarded up."
system.pause(2000)
console.WriteLine
console.WriteLine "You walk over to the barn doors and pull on them, but they will not budge."
console.writeline
system.pause(4000)
node = 1.1
case 1.1 'choices
console.WriteLine "-Choose-"
console.writeline
console.writeline " 1. The Windows"
console.writeline " 2. Back room"
console.writeline " 3. Old Bed"
console.writeline
console.setforeColor "7"
answer = console.readline
if answer = "1" then
node = 2 'windows
elseif answer = "2" then
node = 3 'back room
elseif answer = "3" then
node = 4 'Bed
elseif answer = "" then
node = 1.1 'start over, player must have an answer to continue
end if
system.Pause(1000) ' wait a second for game play value
case 2
console.WriteLine
console.WriteLine "You walk up stairs to one of the windows and try to open it, but yet it want budge."
console.WriteLine "So you walk back down stairs."
console.WriteLine
system.Pause(4000)
node = 1.1
case 3
console.writeline
console.writeline "You walk to the back of the barn where a room with an old desk is."
console.writeline
system.pause (4000)
node = 3.1
case 3.1 'choices
console.WriteLine "-Choose-"
console.writeline
console.WriteLine " 1. Open desk"
console.WriteLine " 2. Go back"
console.WriteLine
answer = console.ReadLine
if answer = "1" then
node = 3.2
elseif answer = "2" then
node = 1.1
elseif answer = "" then
node = 3.1
end if
system.Pause(1000)
case 3.2
console.WriteLine
console.WriteLine "You tug on the old desk drawer untile it springs open full of cob webs,"
console.writeline "but not only that, a small hand gun is in the bottum."
console.writeline
system.pause(4000)
node = 3.3
system.pause(1000)
case 3.3 'choices
console.writeline
console.writeline "-Choose-"
console.writeline
console.writeline " 1. Take the hand gun"
console.writeline " 2. Go back"
console.writeline
answer = console.readline
if answer = "1" then
console.writeline "You pickup the handgun and put it in your pocket."
handgun = true 'player has the gun
node = 60
elseif answer = "2" then
node = 1.1
elseif answer = "" then
node = 3.3
end if
case 4
console.writeline
console.writeline "Walking over to the bed you notice a handle sticking out."
console.writeline
system.pause(4000)
node = 4.1
system.pause(1000)
case 4.1 'choices
console.WriteLine "-Choose-"
console.writeline
console.WriteLine " 1. Take the axe"
console.WriteLine " 2. Go back"
console.WriteLine
answer = console.ReadLine
if answer = "1" then
console.writeline "You put the axe on your back."
axe = true 'player has gotten the axe
node = 20
elseif answer = "2" then
node = 1.1
elseif answer = "" then
node = 4.1
end if
system.Pause(1000)
'CASE 4.1 WILL GO HERE LATER AT SOME POINT =P
case 60
console.writeline
console.writeline "After obtaining the gun you sat down to think. You hear a noise"
console.writeline "at the top of the barn so you get up and walk to the top where"
console.writeline "a window is wrattling from the wind outside. It has a lock on it."
console.writeline
system.pause(4000)
node = 60.1
system.pause(1000)
case 60.1 'choices
console.WriteLine "-Choose-"
console.writeline
console.WriteLine " 1. Shoot the lock with the gun"
console.WriteLine " 2. Go back"
console.WriteLine
answer = console.ReadLine
if answer = "1" then
node = 61
elseif answer = "2" then
node = 60
elseif answer = "" then
node = 60.1
end if
system.Pause(1000)
case 61
console.writeline
console.writeline "You climb out to the edge of the window. You see a man not far away"
console.writeline "working on a tractor."
console.writeline
system.pause(4000)
node = 61.1
system.pause(1000)
case 61.1 'choices
console.WriteLine "-Choose-"
console.writeline
console.WriteLine " 1. Jump down"
console.WriteLine " 2. Climb up onto the roof to look out further"
console.WriteLine
answer = console.ReadLine
if answer = "1" then
console.writeline "You jump down."
node = 61.2 'next step
elseif answer = "2" then
node = 61.3 'roof
elseif answer = "" then
node = 61.1
end if
system.Pause(1000)
case 61.3
console.writeline
console.writeline "You get up ontop of the rotting barn roof and look around"
console.writeline "Only to spot that same man and a house on the hill."
console.writeline
system.pause(4000)
node = 61.1
system.pause(1000)
case 61.2 'choices
console.WriteLine "-Choose-"
console.writeline
console.WriteLine " 1. Walk over to the man"
console.WriteLine " 2. Run into the woods"
console.writeline " 3. Sneak up to the house"
console.WriteLine
answer = console.ReadLine
if answer = "1" then
node = 62 'walk over to the man
elseif answer = "2" then
node = 63 'woods
elseif answer = "3" then
node = 64 'house
elseif answer = "" then
node = 61.2 'repeat must have answer
end if
system.Pause(1000)
case 62
console.writeline
console.writeline "You approach the man and he does nothing."
console.writeline
system.pause(4000)
node = 62.1
system.pause (1000)
case 62.1 'choices
console.WriteLine "-Choose-"
console.writeline
console.WriteLine " 1. Tap the man on the shoulder"
console.WriteLine " 2. Say Hello"
console.writeline " 3. Yell Hello"
console.writeline " 4. Punch the man in the back of the head."
console.writeline " 5. Shoot the man in the foot"
console.WriteLine
answer = console.ReadLine
if answer = "1" then
node = 62.2
elseif answer = "2" then
node = 62.2
elseif answer = "3" then
node = 62.2
elseif answer = "4" then
node = 100 'mean thing
elseif answer = "5" then
node = 100 'mean thing
elseif answer = "" then
node = 62.1
end if
system.Pause(1000)
case 100
console.writeline
console.writeline "The man turns very quickly before you can do it"
console.writeline "and says"
console.writeline "Man - Jesus watch out!! If you want my attention"
console.writeline "all you had to do was say hello or tap me."
system.pause(4000)
node = 62.3
system.pause(1000)
case 62.2
console.writeline
console.writeline "The man turns and looks at you with a questioning"
console.writeline "expression on his face."
console.writeline
system.pause(4000)
node = 62.3
system.pause(1000)
case 62.3 'choices
console.WriteLine "-Choose-"
console.writeline
console.WriteLine " 1. Ask him why you are"
console.WriteLine " 2. Ask him who he is"
console.writeline " 3. Ask him where you are"
console.WriteLine " 4. Ask him why you were in the barn"
console.writeline " 5. Go up to the house"
console.writeline " 6. Run in the woods"
console.writeline
answer = console.ReadLine
if answer = "1" then
node = 62.4
elseif answer = "2" then
node = 62.5
elseif answer = "3" then
node = 62.6
elseif answer = "" then
node = 62.3
elseif answer = "4" then
node = 62.7
elseif answer = "5" then
node = 64
elseif answer = "6" then
node = 63
end if
system.Pause(1000)
case 62.4
console.writeline
console.writeline "The man begins to speak, and then suddenly stops"
console.writeline "but opens his mouth again and speaks."
console.writeline
system.pause(4000)
console.writeline
console.writeline "Man - You are were placed here for protection from the"
console.writeline "government."
console.writeline "If you want to know why, that I cannot answer and for"
console.writeline "that I am sorry. Maybe the lady in the house can."
console.writeline
system.pause(4000)
node = 62.3
system.pause(1000)
case 62.5
console.writeline
console.writeline "Man - My name or anything about me is un-important to you."
console.writeline
system.pause(4000)
node = 62.3
system.pause(1000)
case 62.6
console.writeline
console.writeline "A smirk comes to the mans face"
console.writeline "Man - Where are you, you ask?! Hahaha.. in the middle of no where"
console.writeline
system.pause(4000)
node = 62.3
system.pause(1000)
case 62.7
console.writeline
console.writeline "Man - We were testing you. Notice how we allowed you to escape."
console.writeline "If we wanted to keep you in we would have."
console.writeline "The man smiles."
system.pause(4000)
node = 62.3
system.pause(1000)
case 64
console.writeline
console.writeline "You walk up onto the porch. You notice that the house"
console.writeline "is as rotten as the barn you were stuck in."
console.writeline
system.pause(4000)
node = 64.1
system.pause(1000)
case 64.1 'choices
console.writeline "-Choose-"
console.writeline
console.WriteLine " 1. Go inside"
console.WriteLine " 2. Go to the man"
console.writeline " 3. Run in the woods"
console.writeline
answer = console.ReadLine
if answer = "1" then
node = 64.2
elseif answer = "2" then
console.writeline "You walk back over to the man."
node = 62.3
elseif answer = "3" then
node = 63
elseif answer = "" then
node = 64.1
end if
system.Pause(1000)
case 64.2
console.writeline
console.writeline "You enter the cold damp rotting house only"
console.writeline "to come face to face with an elderly lady."
console.writeline
system.pause(4000)
console.writeline
console.writeline "Lady - Ah, you've finaly arrived."
console.writeline "I was wondering when you were going to"
console.writeline "show up. I've got you some food in the kitchen."
console.writeline
system.pause(4000)
node = 64.3
system.pause (1000)
case 64.3 'choices
console.writeline "-Choose-"
console.writeline
console.WriteLine " 1. Say thank you and enter the kitchen"
console.WriteLine " 2. Say I'm not hungry"
console.writeline " 3. Run in the woods"
console.writeline
answer = console.ReadLine
if answer = "1" then
node = 64.4
elseif answer = "2" then
console.writeline "Lady - Very well then come into the living room"
console.writeline "and I'll explain why you are here."
node = 64.5
elseif answer = "3" then
console.writeline "You run twards the woods and hear the lady yelling"
console.writeline "Lady - Hey! Where are you goin!?"
node = 63
elseif answer = "" then
node = 64.3
end if
system.Pause(1000)
case 64.4
console.writeline
console.writeline "You enter the kitchen and smell a sweet aroma coming"
console.writeline "from the other end of the table."
console.writeline
system.pause(4000)
console.writeline
console.writeline "You sit down and begin to eat a piece of the sweet bread."
console.writeline "You bite into the warm soft bread and your taste buds go"
console.writeline "wild."
console.writeline
system.pause(4000)
console.writeline
console.writeline "After finishing you hear the lady call to you."
console.writeline "Lady - Hey come into the living room."
console.writeline
node = 64.6
system.pause(1000)
case 64.6 'choices
console.writeline "-Choose-"
console.writeline
console.WriteLine " 1. Go into the living room"
console.writeline " 2. Run in the woods"
console.writeline
answer = console.ReadLine
if answer = "1" then
node = 64.5
elseif answer = "2" then
console.writeline "You run twards the woods and hear the lady yelling"
console.writeline "Lady - Hey! Where are you goin!?"
node = 63
elseif answer = "" then
node = 64.6
end if
system.Pause(1000)
case 64.5
console.writeline
console.writeline "You enter the living room and see book shelves aligning"
console.writeline "much of the walls. Old cob web paintings and small figurines"
console.writeline "You take a seat in front of the elderly lady."
console.writeline
system.pause(1000)
console.writeline
console.writeline "Lady - I guess your wondering why you are here. Hehe, of course"
console.writeline "you are."
console.writeline "You were put here for protection from the government, you"
console.writeline "were a spy to spy on some of the spies within our government"
console.writeline "from the other countries governments. It seems that our government"
console.writeline "thought that maybe one of the other spies seemed a little suspicous"
console.writeline "so they sent you in to follow and check up on this guy, but something"
console.writeline "went wrong, but I'm not sure on exactly what, so you'll have to find"
console.writeline "that out for yourself. We work as hideout agents to hide people like you."
console.writeline "The government wants you to report back to them as soon as your able"
console.writeline "You will be on your on from now and on out. You must make sure you do"
console.writeline "exactly what they tell you. They are watching your every move by satellite."
console.writeline "We have a car for you to drive to the location in which they want you to"
console.writeline "come to."
console.writleine "So do you understand?"
console.writeline
system.pause(10000)
node = 64.7
system.pause(1000)
case 64.7 'choices
console.writeline "-Choose-"
console.writeline
console.WriteLine " 1. Yes"
console.writeline " 2. No"
console.writeline
answer = console.ReadLine
if answer = "1" then
console.writeline "Lady - Ok."
node = 64.8
elseif answer = "2" then
node = 64.5
elseif answer = "" then
node = 64.7
end if
system.Pause(1000)
case 64.8 'choices
console.writeline "-Choose-"
console.writeline
console.WriteLine " 1. Go down to the car"
console.writeline " 2. Run in the woods"
console.writeline
answer = console.ReadLine
if answer = "1" then
console.writeline "You walk down to the car."
node = 64.9
elseif answer = "2" then
console.writeline "You run twards the woods and hear the lady yelling"
console.writeline "Lady - Hey! Where are you goin!?"
node = 63
elseif answer = "" then
node = 64.8
end if
system.Pause(1000)
case 64.9
console.writeline
console.writeline "-Choose-"
console.writeline
console.WriteLine " 1. Get in"
console.writeline " 2. Run in the woods"
console.writeline
answer = console.ReadLine
if answer = "1" then
console.writeline "You get into the car and start it. Push in the gas"
console.writeline "peddle and drive off.."
system.pause(3000) 'remove later !!!
gameover = true
elseif answer = "2" then
console.writeline "You run twards the woods and hear the lady yelling"
console.writeline "Lady - Hey! Where are you goin!?"
node = 63
elseif answer = "" then
node = 64.9
end if
system.Pause(1000)
case 63
console.writeline
console.writeline "You enter into the woods panting from the sprint."
console.writeline "From in the distance you can still here that lady"
console.writeline "calling from the distance."
console.writeline "You make your way deeper into the woods. It will"
console.writeline "be dark soon."
console.writeline
system.pause(4000)
node = 63.1
system.pause(1000)
case 63.1
console.writeline
console.writeline "-Choose-"
console.writeline
console.WriteLine " 1. Make a fire"
console.writeline " 2. Set up a bed"
console.writeline
answer = console.ReadLine
if answer = "1" then
console.writeline "You find some sticks, a few rocks, and start a fire."
node = 63.2
elseif answer = "2" then
console.writeline "You grab some pine tree limbs, clear an area in the leaves"
console.writeline "and lay the limbs down for a bed."
node = 63.3
elseif answer = "" then
node = 63.1
end if
system.Pause(1000)
case 63.2
console.writeline
console.writeline "-Choose-"
console.writeline
console.writeline " 1. Set up a bed"
console.writeline
answer = console.ReadLine
if answer = "1" then
console.writeline "You grab some pine tree limbs, clear an area in the leaves"
console.writeline "and lay the limbs down for a bed."
node = 63.4
elseif answer = "" then
node = 63.2
end if
system.Pause(1000)
case 63.3
console.writeline
console.writeline "-Choose-"
console.writeline
console.writeline " 1. Make a fire"
console.writeline
answer = console.ReadLine
if answer = "1" then
console.writeline "You find some sticks, a few rocks, and start a fire."
node = 63.4
elseif answer = "" then
node = 63.3
end if
system.Pause(1000)
case 63.4
console.writeline
console.writeline "You fall into a deep, deep, deep.. sleep."
console.writeline " Zzzzz Zzzzz Zzzzz Zzzzz Zzzzz"
system.pause(2000)
console.writeline "To be continued"
gameover = true
end select ' this is paired with select case above
console.WriteLine
console.WriteString "Would you like to continue? (press y) "
answer = console.ReadLine
if answer <> "y" then gameOver = true
loop
' termination
' make sure the console object is shut down
console.Terminate
[/code]





