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.

TrollandToad.com
Reply
 
Thread Tools
  #1    
Old December 11th, 2012 (9:56 PM).
thor348's Avatar
thor348 thor348 is offline
That's Oak to You
     
    Join Date: Nov 2012
    Location: Arizona
    Gender: Male
    Nature: Calm
    Posts: 136
    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/[email protected]/sets/72157632229122538/

    p.s. disregard condition switch 0063...
    Reply With Quote

    Relevant Advertising!

      #2    
    Old December 12th, 2012 (3:43 AM).
    Theik's Avatar
    Theik Theik is offline
    Fancy Cape Knight
       
      Join Date: Dec 2008
      Age: 29
      Gender:
      Posts: 73
      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 (9:08 AM).
      ☆Rei☆'s Avatar
      ☆Rei☆ ☆Rei☆ is offline
      • Platinum Tier
       
      Join Date: Aug 2009
      Location: Nearby my feet.
      Age: 20
      Gender: Female
      Nature: Calm
      Posts: 1,748
      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 (1:39 PM).
      Maruno's Avatar
      Maruno Maruno is offline
      Lead Dev of Pokémon Essentials
         
        Join Date: Jan 2008
        Location: England
        Posts: 5,189
        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.
        __________________
        Go to the Pokémon Essentials Wiki

        | Downloads | Tutorials | Fangames |
        | All Animations Project |

        Follow me on Twitter: @maruno42


        Reply With Quote
          #5    
        Old December 13th, 2012 (9:55 AM).
        thor348's Avatar
        thor348 thor348 is offline
        That's Oak to You
           
          Join Date: Nov 2012
          Location: Arizona
          Gender: Male
          Nature: Calm
          Posts: 136
          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 (2:41 PM).
          thor348's Avatar
          thor348 thor348 is offline
          That's Oak to You
             
            Join Date: Nov 2012
            Location: Arizona
            Gender: Male
            Nature: Calm
            Posts: 136
            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 (3:12 PM).
            Arma's Avatar
            Arma Arma is offline
            The Hyena
            • Silver Tier
             
            Join Date: Dec 2009
            Location: The Hague
            Age: 24
            Gender: Male
            Nature: Jolly
            Posts: 1,411
            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 (3:14 PM).
            Maruno's Avatar
            Maruno Maruno is offline
            Lead Dev of Pokémon Essentials
               
              Join Date: Jan 2008
              Location: England
              Posts: 5,189
              Show us what you have, then. Screenshots help.
              __________________
              Go to the Pokémon Essentials Wiki

              | Downloads | Tutorials | Fangames |
              | All Animations Project |

              Follow me on Twitter: @maruno42


              Reply With Quote
                #9    
              Old December 18th, 2012 (4:54 PM).
              thor348's Avatar
              thor348 thor348 is offline
              That's Oak to You
                 
                Join Date: Nov 2012
                Location: Arizona
                Gender: Male
                Nature: Calm
                Posts: 136
                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 (5:07 PM).
                Maruno's Avatar
                Maruno Maruno is offline
                Lead Dev of Pokémon Essentials
                   
                  Join Date: Jan 2008
                  Location: England
                  Posts: 5,189
                  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.
                  __________________
                  Go to the Pokémon Essentials Wiki

                  | Downloads | Tutorials | Fangames |
                  | All Animations Project |

                  Follow me on Twitter: @maruno42


                  Reply With Quote
                    #11    
                  Old December 18th, 2012 (5:41 PM).
                  Arma's Avatar
                  Arma Arma is offline
                  The Hyena
                  • Silver Tier
                   
                  Join Date: Dec 2009
                  Location: The Hague
                  Age: 24
                  Gender: Male
                  Nature: Jolly
                  Posts: 1,411
                  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 (7:08 PM).
                  thor348's Avatar
                  thor348 thor348 is offline
                  That's Oak to You
                     
                    Join Date: Nov 2012
                    Location: Arizona
                    Gender: Male
                    Nature: Calm
                    Posts: 136
                    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

                    Join the conversation!

                    Create an account to post a reply in this thread, participate in other discussions, and more!

                    Create a PokéCommunity Account

                    Sponsored Links
                    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

                    Forum Jump


                    All times are GMT -8. The time now is 1:22 PM.