hi,
I am new to dbp and im starting coding at the very basic (we all got to start somewhere"
Ive made a few spinning 3d cubes, but no games
my code so far...
print "Welcome to This fantasy game. Press any key to continue."
Wait key
cls
Print "First i need to ask you a few questions to get started. Press any key to continue."
Wait key
cls
print "What is your name?"
Input name$
cls
Print "Are you sure your name is " + name$ + "?"
wait key
end
As you can see very basic...
in my code, when is says 'are you sure your name is....'
i want to have to different inputs, one for yes, and the other for no, when the person types 'yes' it will say
and when you say 'no' it will say "well what is your name then?" and from then it will loop back to the beginning from where it asks your name.
But im not sure how to do those two inputs and two IF statements to get what im looking for.
Then only way i have managed to do it is you have to type "yes" and "no" but then both the prints will come up for both inputs.
This is probely really simple, but all i need is for somebody to just show me and then il probely call myself stupid for not knowing this.
Thanks in advance