• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Akari, Red, Kris, May - which Pokémon protagonist is your favorite? Let us know by voting in our semifinal favorite protagonist poll!
  • 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

@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.
 
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:
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