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