The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.


Advertise here

Reply
 
Thread Tools
  #1    
Old December 11th, 2012, 09:56 PM
thor348's Avatar
thor348
That's Oak to You
 
Join Date: Nov 2012
Location: Albion
Gender: Male
Nature: Calm

Advertise here
I need help. Maruno, this may be interesting to you I dunno.

I'm working on Oak's PC in his house and want his Top Secret files password protected. And if you enter the correct password you can access his secret files. It's not working no matter what I do. Here's what I have:

http://www.flickr.com/photos/9002432...7632229122538/

p.s. disregard condition switch 0063...
Reply With Quote
  #2    
Old December 12th, 2012, 03:43 AM
Theik's Avatar
Theik
Fancy Cape Knight
 
Join Date: Dec 2008
Age: 26
Gender:
Don't program in rmxp myself, but at first glance:
You use a case, followed by a when / else statement.

In most programming languages you'd use an if for the construction you ate using. Generally speaking a case only allows simple compares.

Case switch
1: dosomething
2: dosomethingels
Default: dosomethingdefault
Reply With Quote
  #3    
Old December 12th, 2012, 09:08 AM
Umbreon's Avatar
Umbreon
Community Supporter
 
Join Date: Aug 2009
Location: Nearby my feet.
Age: 17
Gender: Male
Nature: Calm
You don't need a class for that small amount of code, a simple function would do (or a module if you really must) anyways, it's probably how you are calling the function which fails. Also, I do believe that pbEnterText adds an extra "\r" to the end which can cause this problem too.
Reply With Quote
  #4    
Old December 12th, 2012, 01:39 PM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
I would say you can just event this, rather than do any scripting.

Entering free text (i.e. typing with the keyboard as opposed to the way official games let you enter words) will currently cause problems in the way hanseic describes. However, I've fixed that for v11.


Quote:
Originally Posted by Theik View Post
Don't program in rmxp myself, but at first glance:
You use a case, followed by a when / else statement.

In most programming languages you'd use an if for the construction you ate using. Generally speaking a case only allows simple compares.

Case switch
1: dosomething
2: dosomethingels
Default: dosomethingdefault
There's nothing wrong with using case here, and thor348 used it correctly. It's just a matter of preference.

If you want to offer advice on how to code in Ruby, perhaps you should learn a bit of Ruby first.
__________________
Reply With Quote
  #5    
Old December 13th, 2012, 09:55 AM
thor348's Avatar
thor348
That's Oak to You
 
Join Date: Nov 2012
Location: Albion
Gender: Male
Nature: Calm
Quote:
Originally Posted by Maruno View Post
I would say you can just event this, rather than do any scripting.
Alright i'll start working on just setting this up in an event. Thanks btw
Reply With Quote
  #6    
Old December 18th, 2012, 02:41 PM
thor348's Avatar
thor348
That's Oak to You
 
Join Date: Nov 2012
Location: Albion
Gender: Male
Nature: Calm
Alright I need some help. No matter what I try I can't get this to work. Please help?
Reply With Quote
  #7    
Old December 18th, 2012, 03:12 PM
Arma's Avatar
Arma
Actually not mad at all
Community Supporter
 
Join Date: Dec 2009
Location: The Hague
Age: 21
Gender: Male
Nature: Jolly
Okay, I evented a cheat code system some time ago, it's fairly simple to set up.

First, create two new actors.

second, create an event that allows you to edit the first actor's name.
After that you need to to make sure the second actor gets the same name as the first one and clear the first one's name.

Then you have to make sure that whenever you access the PC, you'll be asked to change the name of the first actor. if that ones matches the name of the second one, you'll be granted access.

Hope this helps you
__________________
Reply With Quote
  #8    
Old December 18th, 2012, 03:14 PM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Show us what you have, then. Screenshots help.
__________________
Reply With Quote
  #9    
Old December 18th, 2012, 04:54 PM
thor348's Avatar
thor348
That's Oak to You
 
Join Date: Nov 2012
Location: Albion
Gender: Male
Nature: Calm
Quote:
Okay, I evented a cheat code system some time ago, it's fairly simple to set up.

First, create two new actors.

second, create an event that allows you to edit the first actor's name.
After that you need to to make sure the second actor gets the same name as the first one and clear the first one's name.

Then you have to make sure that whenever you access the PC, you'll be asked to change the name of the first actor. if that ones matches the name of the second one, you'll be granted access.

Hope this helps you
I've tried this using the database but the scripts Maruno has made won't allow it to work. is that what you're talking about?

Quote:
Show us what you have, then. Screenshots help.
is this directed towards me?
Reply With Quote
  #10    
Old December 18th, 2012, 05:07 PM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Quote:
Originally Posted by thor348 View Post
is this directed towards me?
Yes. I barely understood what elarma was going on about, and I didn't see his post before making mine.

It honestly shouldn't be that difficult. As far as I can tell, it's just a collection of choices with a comparison between inputted text and a preset phrase thrown in somewhere. You can modify the displayed text to make the secret notes look prettier if you want.
__________________
Reply With Quote
  #11    
Old December 18th, 2012, 05:41 PM
Arma's Avatar
Arma
Actually not mad at all
Community Supporter
 
Join Date: Dec 2009
Location: The Hague
Age: 21
Gender: Male
Nature: Jolly
Hmmm, I haven't tried this in essentials yet. I'll try it out tomorrow and put up some screens if it works.
__________________
Reply With Quote
  #12    
Old December 18th, 2012, 07:08 PM
thor348's Avatar
thor348
That's Oak to You
 
Join Date: Nov 2012
Location: Albion
Gender: Male
Nature: Calm
Quote:
Originally Posted by Maruno View Post
Yes. I barely understood what elarma was going on about, and I didn't see his post before making mine.

It honestly shouldn't be that difficult. As far as I can tell, it's just a collection of choices with a comparison between inputted text and a preset phrase thrown in somewhere. You can modify the displayed text to make the secret notes look prettier if you want.
your link proved to be much help. I didn't know about that wiki surprisingly... I thought I had read most of them haha it solves my problem with the choices. I was looking for hours on how to do it through script rather than command. I'll work on it tomorrow after work and post my progress.
Reply With Quote
Reply
Quick Reply

Sponsored Links


Advertise here
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 11:30 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.