ok heres the code
and dont read the little // things they are really old
mob/verb/Guess_The_Code(Code2 as text)
//creates a verb called 'Guess_The_Code', lets you type Code1 AND Code2 as a num
if (Code2=="Jake")//if you type in Jake is cool, you get told the following:
world << "Congradulations [usr] cracked the code!"//tells you 'You Cracked The Code!' when both nums are correct
else//if you get the first code right, yet the second is wrong you still lose =)
usr << "I'm sorry, you have failed in cracking the code :( Please try again!"//tells you 'WRONG!'
the problem is that i want it to say if they guessed the first letter, second letter ect. to say you have correctly answered the first letter, second letter ect.
i know this is kinda crazy for me to post two things at once
but my code stinks really bad!
ID:261872
Nov 11 2003, 3:24 pm
|
|
In response to DarkView
|
|
var/Answer="Jake" |
if(copytext(Code2, 1,2) == copytext(Code1, 1,2))
world << "You got the first letter right!"