Author Topic: [SOLVED] Help, With Lock Box with random code  (Read 2608 times)

Offline Lunar_Fennec

  • Trained Member
  • *
  • Posts: 19
  • LV: 0
    • View Profile
[SOLVED] Help, With Lock Box with random code
« on: January 31, 2012, 06:10:32 PM »
I know how to make a chest that requires a combination to open, but I want to stop players from learning the code once and always knowing the code. Is there a way I can make the code random and be able to have an NPC give the code to the player?
« Last Edit: March 02, 2014, 04:38:43 PM by Lunar_Fennec »

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Help, With Lock Box with random code
« Reply #1 on: January 31, 2012, 06:40:31 PM »
Yes. You can generate a random value in a variable and let the NPC tell the player the value of that variable using \v[VARIABLE_ID] in a message. When you let the player enter a code, compare the variable you used for the code with the one containing randomly generated one.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Lunar_Fennec

  • Trained Member
  • *
  • Posts: 19
  • LV: 0
    • View Profile
Re: Help, With Lock Box with random code
« Reply #2 on: January 31, 2012, 07:26:41 PM »
Thank you ^^
Glad I finally found someone who can help me.

EDIT:
This is off topic, but I'm having some problems with your Easy Overdrive System.
When I try to use an Overdrive I get this error with Tons of Addons:

(click to show/hide)

I have no idea how to do any kind of scripting, so I'm at a loss of what to do >.<
« Last Edit: January 31, 2012, 07:30:38 PM by Lunar_Fennec »

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Help, With Lock Box with random code
« Reply #3 on: January 31, 2012, 07:48:38 PM »
Make sure you have the newest version and make sure that you are starting a new game. After you add the script, old save games won't work anymore.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Lunar_Fennec

  • Trained Member
  • *
  • Posts: 19
  • LV: 0
    • View Profile
Re: Help, With Lock Box with random code
« Reply #4 on: January 31, 2012, 08:06:53 PM »
I got each script from the Script Database and I haven't used any save games.
Are the scripts in the database not up to date?

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Help, With Lock Box with random code
« Reply #5 on: January 31, 2012, 08:12:56 PM »
No, they are all up to date. I thought you may have been using an older version.
Are your scripts in the right order? http://forum.chaos-project.com/index.php/topic,23.0
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Lunar_Fennec

  • Trained Member
  • *
  • Posts: 19
  • LV: 0
    • View Profile
Re: Help, With Lock Box with random code
« Reply #6 on: January 31, 2012, 08:20:21 PM »
I just reorganized them and it still brought up the same error.

EDIT:
I disabled Skill Separation in TOA2 and Overdrive worked fine, are they not compatible?
« Last Edit: January 31, 2012, 08:27:19 PM by Lunar_Fennec »

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Help, With Lock Box with random code
« Reply #7 on: January 31, 2012, 08:42:48 PM »
They should be, but there may be a conflict. You probably shouldn't try to use them for the same skills.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Lunar_Fennec

  • Trained Member
  • *
  • Posts: 19
  • LV: 0
    • View Profile
Re: Help, With Lock Box with random code
« Reply #8 on: January 31, 2012, 08:47:39 PM »
Okay, thanks again for the help ^^

EDIT:
If you get the chance to look into it a bit more it would be much appreciated.
I have a Blue Mage and it would be nice to keep his skills separated from learned monster skills.
« Last Edit: January 31, 2012, 08:56:15 PM by Lunar_Fennec »

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Help, With Lock Box with random code
« Reply #9 on: January 31, 2012, 09:10:45 PM »
Well, I can't promise anything because I have retired from RMXP almost 2 years ago. :P
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Lunar_Fennec

  • Trained Member
  • *
  • Posts: 19
  • LV: 0
    • View Profile
Re: Help, With Lock Box with random code
« Reply #10 on: January 31, 2012, 09:29:50 PM »
Oh, I didn't know you retired ^^;