Mystic Software Forums

Mystic Software => General Discussion => Topic started by: corim123 on July 18, 2005, 09:43:56 AM

Title: (no subject)
Post 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
Quote
#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>
Title: (no subject)
Post by: DarkElite on July 20, 2005, 05:03:37 PM
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
Title: (no subject)
Post by: Xorlak on July 21, 2005, 10:14:46 PM
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:

Code: [Select]
#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)
}
Title: (no subject)
Post by: corim123 on July 22, 2005, 08:29:17 AM
so is the code you posted correct, or what do I have to edit, I'm comfused
Title: (no subject)
Post by: DarkElite on July 22, 2005, 02:11:16 PM
doesnt matter which, just take out the comments after the if's....


fun stuff
Title: (no subject)
Post by: Xorlak on July 22, 2005, 04:40:11 PM
The code I posted should work fine.
Title: (no subject)
Post by: corim123 on July 23, 2005, 01:24:12 AM
thx lol
corim123