Mouse System

Title: Mouse System
Version: 1.2.1
PRO version: 1.5.0
Author: DKPlugins
Description: Allows you to change the mouse cursor, activate events by clicking, hovering, etc.

Compatibility:
  • RPG Maker MV: 1.5+
  • RPG Maker MZ: 1.0+
Features:
  • Use a custom cursor.
  • Show icon when hovering over an event.
  • Change cursor when hovering over an event.
  • Activate the event by clicking or hovering the mouse.
  • [PRO] Display a window, text or image when hovering over an event.
  • Change “Destination sprite”. You can change the appearance of the destination sprite (shape, color, animation). In the [PRO] version, you can also use your own image or text.
Instruction:
Spoiler: instruction
Use event comments to customize the display on mouse hover.

1. Show icon when hovering over an event*
<hover_icon: iconIndex>
Replace iconIndex with the icon number or synonym (don't forget to customize them!)
Example: <hover_icon: 4>
Example: <hover_icon: talk>
You can also use the eval function to specify the icon using Javascript!
Example: <hover_icon: eval($gameVariables.value(1))>

2. Start an event by clicking on it
<click_activate>

3. Activate an event on mouse hover
<hover_activate>

4. Replace cursor graphics when hovering over an event*
<custom_cursor: filename>
Replace filename with the name of the cursor file from the "img/system/" folder

5. Display image from "img/pictures/" folder*
<hover_image: filename>
Replace filename with the image filename
Example: <hover_image: Actor1_1>
You can also use the eval function to specify the image using Javascript!
Example: <hover_image: eval($gameVariables.value(1))>

6. Display window with text*
<hover_window: [width|height|text]>
width - Window width
height - Window height
text - text
Example: <hover_window: [120|60|\i[2]Text]>
You can also use the eval function to specify the text using Javascript!
Example: <hover_window: [120|60|eval($gameVariables.value(1))]>

7. Display text*
<hover_text: text>
Example: <hover_text: Test>
You can also use the eval function to specify the text using Javascript!
Example: <hover_text: eval($gameVariables.value(1))>

* Note:
Starting from version 1.3.0, it became possible to set conditions for display using Javascript,
which are checked during mouse hover.

Use an end tag to tell the plugin to check for a condition, which is written between 2 tags.
Example: for icon 10, the condition is set that it will be displayed when switch 1 is on:
<hover_icon: 10>
$gameSwitches.value(1)
</hover_icon>

Example: for a window the condition is set that it will be displayed if the variable 1 is greater than 10:
<hover_window: [100|72|Text]>
$gameVariables.value(1) > 10
</hover_window>

Example: for the image, the condition is set that it will be displayed if the variable 1 is equal to 5:
<hover_image: Actor1_2>
$gameVariables.value(1) === 5
</hover_image>

Example: for the text, the condition is set that it will be displayed if switch 1 is on:
<hover_text: Text>
$gameSwitches.value(1)
</hover_text>

You can combine several of these comments to customize different data for different conditions.
If you specify several of these settings, then the very first one that satisfies the condition will be used!

Preview:
Spoiler: gif
mouse-system.gif

mouse-system-120.gif

Hover window [PRO]:
Spoiler: gif
mouse-system-hover-window.gif

Destination sprite (text and image) [PRO]:
Spoiler: gif
mouse-system-120-pro-1.gif

mouse-system-120-pro-2.gif

"Help" languages: English, Russian

Terms of use
You can:
-To use the plugin for your non-commercial projects
-Change code of the plugin

You cannot:
-Delete or change any information about the plugin
-Distribute the plugin and its modifications

Details on obtaining a commercial license on my website

Plugin page:
https://dk-plugins.ru/mouse-system/
Plugin is publicly available 🙂
Absolutely fantastic plugin! One question: would it be possible to assign words to icons? For example if I often use icon 4 for talking, it would be easier to write <hover_icon: talk> insted of <hover_icon: 4> all the time. Thanks!
Absolutely fantastic plugin! One question: would it be possible to assign words to icons? For example if I often use icon 4 for talking, it would be easier to write <hover_icon: talk> insted of <hover_icon: 4> all the time. Thanks!
An interesting suggestion. I will consider to include this in the next update 🙂
Can you make it so we can drag and drop an event? If you could trigger an "on drag" common event then the user could return if the event was dragable. If you could trigger an "on drop" common event then the user (ie programmer) could determine if the map location was acceptable as a drop location for the event. Otherwise, good work.

yours
winkr7
Version 1.1.0

What's new:

  • Added the ability to create synonyms for icons. Now, instead of the icon number, you can write its synonym in the comment <hover_icon: talk>. Thanks @dyoghenes
  • Removed the indent setting for the icon. The icon is now always centered.
  • Added automatic display of the icon when hovering over an event if it has the Transfer Player command. Can be disabled.

Also, PRO version with the following new features is available on my website:
  • [PRO] Added support for <hover_image: filename> comment to display an image from the "img/pictures/" folder when hovering over an event.
  • [PRO] Added support for <hover_window: [width|height|text]> comment to display a window with text when hovering over an event.
  • [PRO] Added support for <hover_text: text> comment to display text on hover over an event. The font size is specified in the plugin parameters.
Hover window [PRO]:
Spoiler: gif
mouse-system-hover-window.gif

First post updated!
Can you make it so we can drag and drop an event? If you could trigger an "on drag" common event then the user could return if the event was dragable. If you could trigger an "on drop" common event then the user (ie programmer) could determine if the map location was acceptable as a drop location for the event. Otherwise, good work.

yours
winkr7
No such feature is planned for the near future. I'm sorry 🙁
while it looks really nice and all (no offense), you can use comment <on mouse click: mine>
so a common event can be run or the event itself.

if the mining image is shown like your give, how do you check if he has equiped or has the
the item in a conditional brance? or can it show mining icon with a red cross if he cant mine (yet)
or a different way?

as well, for checking tiles, like you can hover and talk on distance, but within x range?
else, you are to far away around direction, would this be possible curently?
Hello, I am very honored to download your plug-in. But I haven't figured out how to customize iconinde. Do you want to write a script?

I don't know how to write scripts. Can you tell me how to use your plug-in clearly? Thank you very much!
Hi! This plugin is still a must have, but recents updates broke it in a way. Now the custom cursor freezes in place when a choice box appears. Could this be fixed?
Hello, I am very honored to download your plug-in. But I haven't figured out how to customize iconinde. Do you want to write a script?

I don't know how to write scripts. Can you tell me how to use your plug-in clearly? Thank you very much!
I updated the first post, added instructions
You don't need to use scripts to use hover icons. You need to use comments in the event
Spoiler: screenshot
ShooterScreenshot-107-23-12-20.png
Inside the comment write <hover_icon: iconIndex>
and replace iconIndex with the icon number
Example: <hover_icon: 4>



Hi! This plugin is still a must have, but recents updates broke it in a way. Now the custom cursor freezes in place when a choice box appears. Could this be fixed?
I'll see what i can do
Just what I was looking for! You’re a hero
Hi!
First of all, thank you so much for making this plugin! :3

However, I get the following error message. (see picture)
What exactly could be the reason for this?
Version 1.2.0
  • Added new setting "Destination sprite". Now you can change the appearance of the destination sprite (shape, color, animation). In the PRO version, you can also use your own image or text.
Spoiler: gifs
mouse-system-120.gif

mouse-system-120-pro-1.gif

mouse-system-120-pro-2.gif

Hi!
First of all, thank you so much for making this plugin! :3

However, I get the following error message. (see picture)
What exactly could be the reason for this?
Try a new version. Should be ok.
Wow thank you! OwO
Works fine now. ^v^
Version 1.4.0 [PRO]
Spoiler: changelog
Became possible to set conditions for display text, images using Javascript, which are checked during mouse hover.

Use an end tag to tell the plugin to check for a condition, which is written between 2 tags.

Example: for the image, the condition is set that it will be displayed if the variable 1 is equal to 5:
<hover_image: Actor1_2>
$gameVariables.value(1) === 5
</hover_image>

Example: for the text, the condition is set that it will be displayed if switch 1 is on:
<hover_text: Text>
$gameSwitches.value(1)
</hover_text>


You can combine several of these comments to customize different data for different conditions.

If you specify several of these settings, then the very first one that satisfies the condition will be used!

Version 1.3.0 [PRO]
Spoiler: changelog
Became possible to set conditions for display using Javascript, which are checked during mouse hover.

Use an end tag to tell the plugin to check for a condition, which is written between 2 tags.

Example: for icon 10, the condition is set that it will be displayed when switch 1 is on:
<hover_icon: 10>
$gameSwitches.value(1)
</hover_icon>

Example: for a window the condition is set that it will be displayed if the variable 1 is greater than 10:
<hover_window: [100|72|Text]>
$gameVariables.value(1) > 10
</hover_window>
You can combine several of these comments to customize different data for different conditions.

If you specify several of these settings, then the very first one that satisfies the condition will be used!

while it looks really nice and all (no offense), you can use comment <on mouse click: mine>
so a common event can be run or the event itself.

if the mining image is shown like your give, how do you check if he has equiped or has the
the item in a conditional brance? or can it show mining icon with a red cross if he cant mine (yet)
or a different way?

as well, for checking tiles, like you can hover and talk on distance, but within x range?
else, you are to far away around direction, would this be possible curently?
If you're still interested, the pro version adds the ability to specify conditions using Javascript to display icons, text, images or windows.
@DK for me, it's hard to get the plugin for pro version, but to clarify,
you can add multiple hover icon?

<hover_icon: 2>
$gameSwitches.value(2) = true;
</hover_icon>
<hover_icon: 4>
$gameSwitches.value(2) = false;
</hover_icon>

(conditional or text here)

and it should work?

currently, my project(s) is onhold during other things, but it looks nice
though, specially with more things available.

but if times allows it and I can make use of it, than I find a way to buy it.
otherwise, keep up the nice work though =)
@DK for me, it's hard to get the plugin for pro version, but to clarify,
you can add multiple hover icon?

<hover_icon: 2>
$gameSwitches.value(2) = true;
</hover_icon>
<hover_icon: 4>
$gameSwitches.value(2) = false;
</hover_icon>

(conditional or text here)

and it should work?

currently, my project(s) is onhold during other things, but it looks nice
though, specially with more things available.

but if times allows it and I can make use of it, than I find a way to buy it.
otherwise, keep up the nice work though =)
Yes, you can use multiple tags and the first will be used, the condition of which is met.
As for the icons, this functionality will be available in the public version of the plugin in the next update. Pro version is needed for text, pictures or windows.
Is there a way to limit the range of the click? i want to open doors while the character is next to/facing them not halfway across the map, unless i missed something in the notetags 😅
Is there a way to limit the range of the click? i want to open doors while the character is next to/facing them not halfway across the map, unless i missed something in the notetags 😅
There is currently no built-in functionality for specifying range.
The following solutions are possible:
1. Use the PRO version of the plugin, which has the ability to specify conditions using Javascript for notes. In this case, you will have to write a condition yourself to calculate the distance between the player and the event.
2. Use a plugin that includes a local switch when the player is within the radius of the event and specify the required notes on the desired page.
Example:
or
or analogues

Original thread: https://forums.rpgmakerweb.com/threads/mouse-system.127226/