• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Easy mouse functionality for Essentials

Luka S.J.

Jealous Croatian
  • 1,270
    Posts
    15
    Years
    @x and @y already have attribute readers for them. Meaning that they're exposed as functions. So $mouse.x and $mouse.y is valid by default.

    P.S. throwing an out-of-context snippet of code is not very useful. Maybe specify where to put the code.
     

    #Not Important

    All hail the wishmaker
  • 910
    Posts
    4
    Years
    I keep getting this error:
    Code:
    ---------------------------
    Pokemon Essentials
    ---------------------------
    Script 'ems' line 37: RuntimeError occurred.
    
    LoadLibrary: Rpg.NET.dll
    
    ---------------------------
    OK   
    ---------------------------

    Also, how would you use inArea? ? like what would you put in the ()'s?
     
    Last edited:
  • 4
    Posts
    1
    Years
    • Seen Dec 28, 2023
    The script works for me, as I've tried it out on a viewport and confirmed it works. I also confirmed the mouse is active by having a parallel process check if it's active and printing "hi" to verify.

    Whats driving me mad is the script doesn't seem to treat a map event as an object.

    I used object_params to check if the script sees an event as an object:

    print Mouse.object_params($game_map.events[8])

    And it printed 0,0,0,0 which I see is what it returns "unless object"

    Does the script not handle mouse interacting with map events?
     
    Back
    Top