The problem is not with the else statement but with the variable answer which is not string.To declare a variable as string you need to put an "$" behind it`s name so the program will treat it like string.Up in the code you give value to Nothing = Nothing, you didn`t say what is the value of Nothing so the program gives it 0 by default, because there is no sign that you want it to be a string it integer by default, too.So basicly this line means 0 = 0 for the program.Let`s look at the "answer" the way you write the program it checks if the answer = 0 but anyway it`s 0 if you type nothing when it ask for input an answer, and because you check it against Nothing which is 0 also it allways give you the same result.
Check this out:
Print "*You approch the city Arcanus.*"
wait key
print "Welcome travler I'm not sure I know your name. Could you tell me it?"
wait key
input ">";name$
print name$+" oh yes how could I forget. "+name$+" the King sent you a letter."
wait key
print "*You oppen the letter which reads.*"
wait key
health=30
`<will change later>
money=0
Nothing$="nothing"
Print "Dear "+name$
wait key
print "These are terible times. A great monster is coming. nothing can stop it."
wait key
Print "You are your only hope. You must slay the monster."
wait key
print "Tell the gate keeper when he asks 'What did the letter say.'"
wait key
print "The King."
wait key
print "*You close the letter, and the gatekepper asks.*"
wait key
print "What did it say?","Type : "nothing" to accept the quest!Leave blank to abandon it!"
wait key
input ">";answer$
if answer$=Nothing$
gosub sword
else
print "So you aren't accepting the Quest."
wait key
print "You shall die."
wait key
print "And that`s what happend, the gatekeeper was instructed to kill you if you disagree with The King."
print " The End."
wait key
end
endif
sword:
print "So you accepted the Quest."
wait key
print "Here is a sword."
wait key
print name$+" recived a sword!"
wait key
return
Again for 10000 time in this forum, get rid of "goto"!
Using goto is bad!
Using gosub is good!
Where there is a will, there is a way.
I often edit my posts, that`s who i am
