Amaranth's Super Simple Mouse System for Ace

I remember making a patch for someone who wanted to be able to click on an event and activate it without actually walking up to it.
Maybe this thread?
Good find, but it's not the one I'm thinking of. That one's about a HUD where they didn't want the event to activate. The one I'm thinking of wasn't to do with a HUD, but they did want the event to activate - they just didn't want the player to move to it first.
F12 solution!

I really wanted to add a mouse to the project, while all the versions of the mouse I found had the same drawback - a conflict with f12. in half a day we found a common solution. but this particular version of the script was fixed.

link to the Russian site, where the discussion and the search for a solution took place (a topic with a ready-made solution):
https://rpgmaker.su/f120/[vx-ace]-Фикс-скрипта-мыши-4702/

I will also attach screenshots illustrating the editing of the code:
sol1.png

sol2.png
@idleberry

Very nice. Thank you for posting.
it turned out that the essence of the problem in all scripts with a mouse is the same:
f12 nil everything it can, including the graphics of the mouse cursor.
after which the script's attempt to interact with the nil graphics results in an error.
the simplest solution turned out to be:
1) make a check for nil - blocking the script to avoid an error
2) reinitialize the script.

ps
all these scripts were written ten years ago, if not more. and to this day they all still contain this error ... I'm at a loss. 0o
I really never looked at what other scripts were out there. This was a port of an XP script that was a heavy mod of something written by Near Fantastica and SephirothSpawn. It may be that their script was the basis for several others. I also don't know how many people would have used F12 to reset their games - it's not something I ever did, and not sure how many players who weren't RM users would have done it.
I also don't know how many people would have used F12 to reset their games
The primary use of f12 is usually exit from the battle - when you realize that you have lost, but you need to wait a very long time until the moment of defeat (the end of the battle). mainly in games where you have to replay difficult battles many times.
one friend of mine made a game where all the fights are of this kind (this is a real curse). and he did it on vx ace.
I really wanted to have a mouse in the game - lying on the couch is not very convenient to play with the keyboard ... and he did not want to add a mouse because of the problem with f12. I found three scripts that add a mouse, but this problem was everywhere.
that one, Mouse System by Jet ( https://www.rpgmakercentral.com/topic/152-mouse-system/ ), Luna Engine.

and I had to solve it ><
(as a result, I found the essence of the problem and my friend, being a better programmer than I solved it on his own)
Script crashes if game title has non-Latin characters
and... well... we have solution ^^

sol3.png


and link:
lordosthyvel has also made a patch for this script that allows diagonal movement.
You can find it here.
wrong url?
Must have got messed up in the old forum change. Thanks for pointing it out - fixed now.

Please note the double posting rules on this site (forum rules can be accessed via the Help link at the top of the page) - if you want to add something and yours is the last post and is less than 72 hours old, just edit your last post instead of double posting.
I used the fixed script provided in post #603 and it ran successfully, but I can’t move around on the map. The character can only turn to face the direction of the mouse and can trigger nearby events. Also, the mouse can’t move — I can only walk around the map using the keyboard arrow keys.
hSqypbL.gif

Original thread: https://forums.rpgmakerweb.com/threads/amaranths-super-simple-mouse-system-for-ace.17829/