The PokéCommunity Forums Fan Games Game Development Pokémon Essentials
Help with small adjustment for a vertical battle menu!

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.

Reply
 
Thread Tools
  #1    
Old October 19th, 2013 (10:50 AM). Edited August 12th, 2016 by BadSamaritan.
BadSamaritan BadSamaritan is offline
Gone Fishin'
     
    Join Date: May 2009
    Gender: Male
    Nature: Rash
    Posts: 83
    ------------------------------------------------------
    Reply With Quote

    Relevant Advertising!

      #2    
    Old October 19th, 2013 (12:49 PM). Edited October 20th, 2013 by Maruno.
    Maruno's Avatar
    Maruno Maruno is offline
    Lead Dev of Pokémon Essentials
       
      Join Date: Jan 2008
      Location: England
      Posts: 5,173
      Now that I look at it, it's a bit odd how the battle commands work. Rather than using the perfectly valid built-in controls, it instead made the new def pbNextIndex to do the exact same thing.

      Actually, it's probably a remnant from an older way it used to work, before it used Window_CommandPokemon. I'm not sure how it all makes sense, as it appears that both ways are working at once.

      Anyway, try this:
      Code:
      def pbNextIndex(curindex)
        if Input.trigger?(Input::UP)
          return (curindex+3)%4
        elsif Input.trigger?(Input::DOWN)
          return (curindex+1)%4
        end
        return curindex
      end
      The only downside to this is that this also applies to the fight menu. If you wanted that to be a straight list too, then problem solved, but if you wanted it to be 2x2, you'd have to do something extra to keep it the way it is.
      __________________
      Go to the Pokémon Essentials Wiki

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

      Follow me on Twitter: @maruno42


      Reply With Quote
        #3    
      Old October 20th, 2013 (3:46 PM).
      Maruno's Avatar
      Maruno Maruno is offline
      Lead Dev of Pokémon Essentials
         
        Join Date: Jan 2008
        Location: England
        Posts: 5,173
        Are you sure the up and down parts are the wrong way round? Looks to me like they should be fine.
        __________________
        Go to the Pokémon Essentials Wiki

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

        Follow me on Twitter: @maruno42


        Reply With Quote
        Reply
        Quick Reply

        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 10:18 PM.