Mystic Software Forums
Mystic Software => General Discussion => Topic started by: corim123 on July 18, 2005, 09:43:56 AM
-
I don't exactly remember how or where I got this program, either toolkitzone.com or this site but I edited it and now, no matter what you enter in the password box you are allowed entry, I was wondering what is wrong
#Fontsize(50)
#Mwin("Please enter password")
#Prompt("Go to the temple to get the password! Enter it here!", dest$)*Question asks you to enter password
#If(dest$=="shrine")*if the password is hello print access granted
{
#mwincls()
#mwin("You may enter the forest!")
#delay(3)
Send("forest.brd", 19, 9, 1)
}
#if(dest$~="shrine")*If the password is not hello print access denied
{
#mwincls()
#mwin("Go to the temple!")
#delay(3)
Send("2.brd", 1, 1, 1)
}
or dl the file from <a href='http://s45.yousendit.com/d.aspx?id=3DXFATMCMUSG63CJSGA2486HAN' target='_blank'>HERE</a>
-
hm.... try taking the quotes out from around the dest$ variable string
but dont take my advice, i haven't touched RPGCode in like a year Very Happy
-
Technically there's nothing wrong with it, but I don't think the translator likes your comments and/or spacing. Getting rid of the comments after the if's worked for me:
#Fontsize(50)
#Mwin("Please enter password")
#Prompt("Go to the temple to get the password! Enter it here!", dest$)*Question asks you to enter password
#If(dest$=="shrine")
{
#mwincls()
#mwin("You may enter the forest!")
#delay(3)
Send("forest.brd", 19, 9, 1)
}
#if(dest$~="shrine")
{
#mwincls()
#mwin("Go to the temple!")
#delay(3)
Send("2.brd", 1, 1, 1)
}
-
so is the code you posted correct, or what do I have to edit, I'm comfused
-
doesnt matter which, just take out the comments after the if's....
fun stuff
-
The code I posted should work fine.
-
thx lol
corim123