Help


#1

When i type in for example choice II it will come up with the prompt for I

confirm("In this game you will follow the directions in the text box shown")
prompt("To start the game type continue the click ok")
if("continue")
prompt("An arrow is flying out of the sky at you. What will you do. Type the number of the move you want to do then press ok.                   __--------------------------------------------------------------------     I: Use shield II:Try to hit with sword III:Try to run")

I = "the arrow hit your shield and you survived.            type and click ok"

II = "your sword slipped and the arrow hit you"

III = "the arrow hit you in the back"

if("I") {
    prompt("the arrow hit your shield and you survived.            type and click ok")
}


if("II") {
confirm("your sword slipped and the arrow hit you")
}

if("III") {
prompt("the arrow hit you in the back")
}


#2

Try comparing the user's choice to the value "I"
You're making no such comparison right now, so it's not so weird that it also can't make any decisions based on what the user input is.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.