So in class recently, I've had a lot of free time on the computers, and have been making little things in VBscript, and learning along the way. I'm still waaaay a beginner though. So I made a very easy single option:
The only problem is that now I can't save the user's input from move2 or move3. It doesn't save it. So, I tried putting it at the start. Well, that didn't work. So then I tried to define it as a constant so that when a user types in the target word, the code grabs it from that list. You see where I'm going? It turns out that you can't really define an Input Box as a constant.
So I'm kinda stuck. I am learning as I go and this is about as good as I can do.
Oh, and spare me the garbage that can go on in a forum please. I'm in high school and don't appreciate it.
Thanks!!!!
Code:
move1=InputBox("You are on a path. You can go forwards or backwards.")
if move1="forwards" then
Wscript.move2=InputBox("You hit a dead end")
elseif move1="backwards" then
Wscript.move3=InputBox("There is an old house here")
else
Wscript.Quit
end if
Code:
const move1 = InputBox("You are on a path. The road leads in front and behind you. You can go Forewards or Backwards.")
const move2 = InputBox("You hit a dead end. There is a rock here and a patch of dirt is loose.")
const move3 = InputBox("There is a small house at the end of the road. The door is slightly open.")
const error= msgbox("Command not recognized")
Wscript.move1
if Move1="Forewards" then
Wscript.move2
elseif move1="forewards" then
Wscript.move2
elseif move1="Backwards" then
Wscript.move3
elseif move1="backwards" then
Wscript.move3
else
Wscript.error
end if
Oh, and spare me the garbage that can go on in a forum please. I'm in high school and don't appreciate it.
Thanks!!!!