Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.


Reply
 
Thread Tools
  #1    
Old April 11th, 2017 (6:51 PM). Edited May 8th, 2017 by DaviRx.
DaviRx's Avatar
DaviRx DaviRx is offline
     
    Join Date: Nov 2015
    Location: Brazil
    Gender: Male
    Nature: Naughty
    Posts: 29
    I was testing with the mouse system by Luka and stumbled upon making this, it will allow the use of the mouse in most of the command windows in game (like the ones in event choices), i do not know if it will work on all of them because i haven't had time to test them all.

    For this script to work you need to have Luka S.J. Simple Mouse Functionality
    This was made in essentials v16.2, i don't guarantee compatibility with other versions.

    Go get it here.

    Instructions:
    Just make a new script and paste it above main.

    Edit 1: Updated the script to work better in big command windows (like the debug one).
    Edit 2: Fixed some crashes.

    Thanks to Luka S.J. for the mouse system
    Reply With Quote

    Relevant Advertising!

      #2    
    Old April 11th, 2017 (11:52 PM).
    Marin's Avatar
    Marin Marin is offline
    Not Bored
    • Moderator
     
    Join Date: Nov 2016
    Location: The Netherlands
    Gender: Male
    Nature: Bashful
    Posts: 606
    Quote:
    Originally Posted by DaviRx View Post
    I was testing with the mouse system by Luka and stumbled upon making this, it will allow the use of the mouse in most of the command windows in game (like the ones in event choices), i do not know if it will work on all of them because i haven't had time to test them all.

    For this script to work you need to have Luka S.J. Simple Mouse Functionality
    This was made in essentials v16.2, i don't guarantee compatibility with other versions.
    If you're having trouble copying the script go into thread tools and click "show printable version"


    Instructions:
    Just make a new script and paste it above main.

    Spoiler:
    #===============================================================================
    # Command Window Mouse Compatibility - By DaviRx // FDAVILOKA
    #-------------------------------------------------------------------------------
    # Mouse update to the CommandPokemon class to allow use
    # of the mouse in command windows.
    #
    # * Requires EasyMouseSystem from Luka S.J.
    #===============================================================================
    class Window_CommandPokemon < Window_DrawableCommand
    #Replacing the old update with the new mouse one
    def update
    super
    for i in 0..self.commands.length
    if self.height==0 or self.commands.length==0
    hheight=32*i
    yy=self.y+(32*i)
    else
    hheight=(self.height/self.commands.length)
    yy=self.y+((self.height/self.commands.length)*i)
    end
    xx=self.x
    wwidth=self.width
    if $mouse.inArea?(xx,yy,wwidth,hheight)
    self.index=i
    end
    end
    end
    end


    Thanks to Luka S.J. for the mouse system
    Looks promising (though for me personally, I'm not that big of a fan of mouse functionality). You might also want to put some more [ CODE ] tags in your spoiler
    __________________
    Reply With Quote
      #3    
    Old April 12th, 2017 (4:31 AM).
    DaviRx's Avatar
    DaviRx DaviRx is offline
       
      Join Date: Nov 2015
      Location: Brazil
      Gender: Male
      Nature: Naughty
      Posts: 29
      Quote:
      Looks promising (though for me personally, I'm not that big of a fan of mouse functionality). You might also want to put some more [ CODE ] tags in your spoiler
      I actually forgot to put the tags xD, but thanks for poiting it out.
      Reply With Quote
        #4    
      Old May 1st, 2017 (10:06 AM).
      DaviRx's Avatar
      DaviRx DaviRx is offline
         
        Join Date: Nov 2015
        Location: Brazil
        Gender: Male
        Nature: Naughty
        Posts: 29
        Updated the script to work better in big command windows (like the debug one).
        Reply With Quote
          #5    
        Old 3 Weeks Ago (12:32 PM).
        Kazooo Kazooo is offline
           
          Join Date: Nov 2016
          Posts: 12
          Works pretty good! Click functionality would be a great addition tho.
          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 6:20 PM.