I’m haveing a lot of truble with the function’s. anyone wanna help? all I will need is someone to tell me how to set the function and run it. I want my propmt and if to be run upon a function.
@CharlesJul 12.2003 — #[font=georgia]I need you to explain very clearly and in great detail exactly what it is that you want to happen. This is a lot harder than you might think and most people cannot get past this first hurdle but if you cannot explain things to a human you won't be able to explain things to a computer.[/font]
@scragarauthorJul 14.2003 — #to run my game I wil need the user to pick a charcter type, this is what I have so far and what I want: <i> </i>RSP = prompt(USERNAME+" do you want to be a mage, theif or knight?","type theif, mage or knight"); if (RSP=="theif") {TYPE=1}; else { if(RSP=="mage") {TYPE=2}; else{ if(RSP=="knight") {TYPE=3}; else{ //I want it to run the alert bell9ow then restart this from the prompt. alert("please re-enter your choice without capitals") };};};
RSP, USERNAME and TYPE are all variable's defined earlier in this script(before I copied it from)
This will be changed afterward's when the file is running propely, to allow more choice's and a string search.
@scragarauthorJul 14.2003 — #How about explaining what your doing to me?
that make's no sense to me.
and how about making any other resopnce forward them to the next function.
If you was to place it in the if's like I did it would be easier for me to understand and for whan I set it up for the main game.
The main game uses lot's of if's and set's to run the file, and I thought If someone could show me how to put this on a function I could loop it (upon the if's ending it would run the function again, untill they completed the game)
Please explain everything you do that I have not allready used.