Amaranth's Super Simple Mouse System for Ace

Only remaining thing on my wish list is to be able to use the mouse wheel in the menus to scroll up&down. 🙂
I did try working on that, and got absolutely nowhere with it. It's probably not going to be something I'll spend much time (if any) pursuing.

Thanks for that. I also found that adding a "Set Move Route" that makes the player Wait for 1 frame does the trick too.
ANY move route on the player (or an event doing pathfinding) will cancel the path. The issue happens when there's an event that does OTHER things BEFORE the move route - like showing text, then doing a move route. As cabfe says, you can issue the $game_player.clear_path command as the very first event command, or you could do a Set Move Route on the player - you can do a move route without ANY commands (don't need to make them wait for a second or anything) and it will still cancel the path.

I'm using this script to fix pics on maps to improve the graphics a little bit


but 1.10 seems to disable the effect.
I doubt it very much. That script and the mouse script don't even touch the same classes. It actually looks like your picture isn't even being displayed, so it's not even getting to the script trying to keep it in one place. I'd examine the event that displays the picture and see if there's some condition that's not being met or something. If you can't figure it out, start up a new thread in RGSSx Script Support, because I can pretty much guarantee that this script has nothing to do with it (and if it did, which I don't believe, I'd still ask you to post a new thread, because I won't provide compatibility support here).
When I try to use the <mouse talk> command on an event it always gives me an error message. says some ting about an unexpected "<". I tried deleting the "<" and it gives me another error message. To my understanding you would put your script line about which icon and message you want displayed as the first line of your event. Am I doing something wrong? an you please help me?
Did you properly enter the <mouse talk> line in a Comment? This is not a Script call.
what do you mean in a comment? I put he mus talk line as a script line in my event. I get that i'm doing something wrong but I don't understand what you are telling me to do.
Inside the event commands panel, in the first tab, you select Comment and type the line

<mouse talk>

It will appear in green, like any comment, but will be automatically understood by the Mouse script and react properly.
thanks that worked. I didn't know that "comment" was one of the event commands but I found it and it worked thanks.
When i tried to use that terrain tag script: http://forums.rpgmakerweb.com/index.php?/topic/7051-terrain-tags/ with this mouse script, the pathfinding is disabled (maybe more bug, but i just can find this). Can you mod this script so that i can use it with the terrain tags?
@Kuro Neko

I'm trying out that script with this mouse script, and so far I've not found any problem.  I have the terrain tags script above this one.  But note, Neon Black warns that the terrain tags script might not work with any script which controls movement.
@Kuro Neko

I'm trying out that script with this mouse script, and so far I've not found any problem.  I have the terrain tags script above this one.  But note, Neon Black warns that the terrain tags script might not work with any script which controls movement.
so that mean, i can only use mouse system or terrain tag, not both? oh man...
Possibly.  But as I said, by inserting Neon Black's script above this one, I haven't found any problems.  However, I am only in the early stages of testing, and so problems may emerge later.
Sorry - I've already clearly stated that I will not provide compatibility patches. If the mouse script doesn't work with another script, it's up to YOU to get it working. This means if you can't script, you need to start a new thread in RGSSx Script Support, with links to both scripts, and see if someone else can do it for you. I just don't have the time (or the desire) to check and change for every other script people might be using.


Having said that, I'm familiar with Neon Black's script, and in most cases they will work together. You will NOT be able to click on a bridge and have your character walk under the bridge, up stairs, then across the bridge to the point clicked, because the mouse script finds the path BEFORE moving, and Neon Black's script adjusts the terrain WHILE moving. It would be very difficult to get the two working perfectly together.
Two quick questions Shaz.

1) Is there an easy script call to make an event use your pathfinding? I'm assuming it would use force_move_route somehow. If you don't know offhand, I'll dig around till I make it work. It would make some cutscenes SO much easier.

2) Bug or Feature? Your pathfinding algorithm doesn't check for events. This means, as an example, if there are stairs in between where you are and where you want to go, your character will happily march along and jump right up the stairs if they're in the path. Not a huge deal, and I can think of reasons to want that behavior. Just wondering if it was a conscious choice on that.
$game_player.find_path(x,y)

$game_map.events[id].find_path(x,y)

Not sure what you mean on the stairs thing. If you have passability set, it will look at it. If there are stairs between you and where you want to go, wouldn't you WANT your character to go up the stairs? You may need to provide some screenshots to clarify.

It does check for events, but it looks at the priority of the event, the 'through' flag and a couple of other things.
Here's a screenshot:

Spoiler
stairs.png
Blue haired girl just came down the stairs. If I click on the hallway, she goes right back up said stairs.

In this case the obvious fix (and what I'll do) is to simply turn the stairs around.

A bit of adjusting on the upper map, but no big deal.

I was just a bit surprised that the pathfinding didn't work around them. But as I said, I can think of examples where you'd want the character to walk over events the player didn't know about (traps, cutscene triggers, whatever). So, bug or feature? I was really just wondering if it was a conscious design decision or just the way the algorithm turned out.

Edit: and thanks for the script calls. Those will make my life SO much easier.

I wonder if anyone has put up just a simple pathfinding script. 
The stairs have left/right passability, which is why it goes straight through them, and if there's an event, it's set to 'below characters'.


You could try a blank tile with 4-dir passability with just the left direction blocked, and place it to the right of the stairs. Then the pathfinding script would go around the stairs.
Is there a small chance that diagonal movement will be someday included?
This script is really awesome but it looks quite wierd when the character moves to a diagonal place like this. 
I don't have RM in front of me right now, so I can't test this ... even though there's a Move Diagonal command in the set move route, you don't actually have diagonal movement for the player, do you? You can only move in the 4 directions unless you have a script to provide 8-dir movement?


If that's the case, then no, I have no plans to add diagonal movement. Because it would look weird if you could only move in 4 directions normally, but 8 when you use the mouse. And adding it would come under the category of "making it compatible with other scripts".


If I'm wrong, and Ace DOES have diagonal movement out-of-the-box, I might consider it down the track.
IIRC the diagonal move routes just decompose the movement into 2 4-directional moves by default. I have diagonal movement in my game using your script and I still had to add Victor Sant's diagonal movement script for characters to actually move diagonally. The scripts do work fine together though (I think - I don't remember having to fix anything).
Ho it seem a pretty cool script I will check it later shaz I never saw one of you script but i am curious of how you build your script structure

(are you the type to separate your script in different part or you put it in one block?)
Not sure what you mean? I don't have scripts "based" on other scripts, so (as far as I can recall) none of my scripts require you to have others installed. I don't have any big systems like Yami or Victor do - mine are all pretty much independent, less complex than theirs.

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