Amaranth's Super Simple Mouse System for Ace
RGSS3 Scripts (RMVX Ace)Tracking through the sequence from that post:
What you suggested in that first one didn't relate to the line 281 which I had in the version I was using.
You made a further suggestion which gave the stack error
Then you suggested a solution in this post http://forums.rpgmakerweb.com/index.php?/topic/17829-amaranths-super-simple-mouse-system-for-ace/?p=209662 which I implemented in the latest version of the script.
So it's the latest version with that amendment.
What you suggested in that first one didn't relate to the line 281 which I had in the version I was using.
You made a further suggestion which gave the stack error
Then you suggested a solution in this post http://forums.rpgmakerweb.com/index.php?/topic/17829-amaranths-super-simple-mouse-system-for-ace/?p=209662 which I implemented in the latest version of the script.
So it's the latest version with that amendment.
If you have the latest version of the script, line 281 SHOULD NOW BE what I adjusted in that post. So I still need you to change that bit of code and see if it makes a difference.
Okay, done that. We'll have to re-upload and ask the player to report back before knowing if this is the fix - but fingers crossed.
Thanks, as always.
Thanks, as always.
I know this might count as a double post, but I'm hoping not, because an edit to the above post will not show up as 'new' and therefore you might not notice this.
Big problem. I was only able to actually test the alteration now. The game opens, but when it tries to load the selected save file I get this error message:
In case I misunderstood what your instructions were, here is a screen shot of the script as it is in the editor.
I copy/pasted from your post, so I am confident that there are no typos.
Big problem. I was only able to actually test the alteration now. The game opens, but when it tries to load the selected save file I get this error message:
In case I misunderstood what your instructions were, here is a screen shot of the script as it is in the editor.
I copy/pasted from your post, so I am confident that there are no typos.
Sorry - that's a typo on my part. I've fixed the original now.
That should say scene_is?, not scene_id?
That should say scene_is?, not scene_id?
I've installed it and it seems to be okay. As I said above, we shan't know for sure until we get report backs from players. I hate random errors.
Thanks.
Thanks.
When I responded about the fix, all I had done was check that it now opened up okay, which had been the issue. However, when I went back to do a lengthy test using the mouse it became apparent that the fix has given a different problem. Here's a screen shot showing what it is.
If you look carefully at the extreme top left corner you will see the mouse cursor. That's where it starts, that's where it stays. It appears to be totally stuck there.
If you look carefully at the extreme top left corner you will see the mouse cursor. That's where it starts, that's where it stays. It appears to be totally stuck there.
Okay - change that back again then. I'll have to look into it further, but to be honest I don't have a lot of time.
I don't see how that fix would have caused that problem though.
I don't see how that fix would have caused that problem though.
Hey Shaz,
I just found this script and have to say it's utterly amazing!
I'm just wondering though, is there a way I can disable player movement associated with mouse interaction? I ask because I need to be able to activate an event by clicking on it, without actually having the player move towards where was clicked.
hanks in advance for any help you can give me!
Regards,
David
I just found this script and have to say it's utterly amazing!
I'm just wondering though, is there a way I can disable player movement associated with mouse interaction? I ask because I need to be able to activate an event by clicking on it, without actually having the player move towards where was clicked.
hanks in advance for any help you can give me!
Regards,
David
Very useful and well made script.
Is there a way to disable the script?
edit: I just read all the pages and solved the issue 😛
Is there a way to disable the script?
edit: I just read all the pages and solved the issue 😛
While I can't really think of a reason for this, it does seem to be a common request. I will add something to cater for this need, and post back when it's ready.
Okay, thanks for that! I'm using it for an interactive map, so the player (an actor without a graphic in my case) is able to click on an event, activating it, so it can act like a fast -travel map.
Thank you! this is exactly what I was looking for! <3
Though it would be nice if you could click on an event without having your character walk there.
Edit: Sorry. Didn't notice that you were already working on it.
Though it would be nice if you could click on an event without having your character walk there.
Edit: Sorry. Didn't notice that you were already working on it.
Just to let you know that the quest to find a way of getting the game to remember whether the mouse is enabled or disabled is now complete!
So as not to clutter the page up, I'll put how it works in a spoiler.
The finalised mini-script is this:
Thanks for all your help on this.
So as not to clutter the page up, I'll put how it works in a spoiler.
Using the script below (basically what you suggested but with a couple of tweaks by Engr. Shana), it works by having a script call at the very beginning of the game setting the mouse as enabled. That setting can then be changed subsequently. I have done this by adding a line to the main Menu with a show choice which calls up a common event. That CE does the appropriate script call. This now gives a choice to the player to toggle between enabled/disabled to their heart's content. The discussion and solution can be found on this page of another thread: http://forums.rpgmakerweb.com/index.php?/topic/22264-common-event-on-parallel-process-not-working/page-2
module SHAZ module MouseSwitch ENABLED_SWITCH = 198 endendclass Sprite_Mouse < Sprite def enabled=(value) @enabled = value $game_switches[SHAZ::MouseSwitch::ENABLED_SWITCH] = value self.visible = value endendmodule DataManager class << self alias shaz_mouse_switch_load_game load_game alias shaz_mouse_switch_setup_new_game setup_new_game end def self.load_game(index) loaded = shaz_mouse_switch_load_game(index) if loaded $mouse.enabled = $game_switches[SHAZ::MouseSwitch::ENABLED_SWITCH] if $mouse && $game_switches return true else return false end end def setup_new_game shaz_mouse_switch_setup_new_game $mouse.enabled = true if $mouse endendThe switch number 198 just happens to be the one that I am using. It could, of course, be any number the user wants.
I got a question, can you make this update periodically if the mouse trigger is held down for movement? I'll try to make a patch of my own if you disagree with the change though.
What do you mean, "update periodically"? I'm pretty flat out at the moment, so if you want to do your own patch, go for it 🙂
@Seth - you mean like the player will continue to move to where the mouse currently is as long as the left mouse button is clicked, eliminating the need to click every point you need to go into?
Yes, correct.
There is ONE script that will only do movement a step at a time. It moves towards the mouse. You might find this one better to adapt, because there'd be a minimum amount of pathfinding (if there's any at all). You'd have to just about remove the pathfinding from this script, or reduce it to a much smaller range (it currently does up to 100 tiles) to prevent severe lag. Do let us know how you go, if you decide to give it try 🙂
Original thread: https://forums.rpgmakerweb.com/threads/amaranths-super-simple-mouse-system-for-ace.17829/