| |
Laughing_Man
Posts: 1
Score: 0
Joined: 1/14/2006
Status: offline
|
Hello everyone. I just got into the world of VBScripting and WSH so to speak. As my guide I choose WSH and VBScripting for the absolute beginner. Whelp i'm having a little trouble getting the first game script to work correctly. Word for word from the book even went to the website and dl/ed the script. Reply1 = InputBox("Knock Knock!") If Reply1 = "Who's there?" Then Reply2 = InputBox("Panther!") If Reply2 = "Panther who?" Then _ MsgBox "Panther no panths I'm going swimming." If Reply2 <> "Panther who?" Then MsgBox "Incorrect Answer. Try Again." End If If Reply1 <> "Who's there?" then Msg Box "Incorrect Answer. Try Again." <-- The trouble seems to be with this line. I take this out and it works. I tried adding an End If after this as well but it still will not work. Anywho, i'd like to figure what the deal is with this program before I move on.
|
|