HELP! I need assistance with this MOG´s plug in.

Hi!

The plug in Mog_MenuCursor(attached) which comes from the package https://mogplugins.wordpress.com/rpg-maker-mv/ let you add a graphic cursor and also let you change the Axis of Y and X of said cursor. What I would require is to have a function or a scriptcall that changes that axis on the fly.

The thing is, my menus are custom so I need to change the axis very often.

If this requirement is something complicated, I can pay you for your time.

Thank you!
You can try declaring in a script call:
Moghunter.mcursor_x = newXValue;
Moghunter.mcursor_y = newYValue;

whenever you want to change them. Haven't tried it, just guessing
You could also try putting a variable in the plugin parameters.
Thanks for you reply! I tried that and it semi works. Because It will change the axis AFTER I have changed scenes. If y use Moghunter.mcursor_x = newXValue it will do nothing, if i do Moghunter.mcursor_x = newXValue; and then change scenes, lets say from scene_map to scene_item, then the axis gets updated no the new value.

And what I need is to change axis on the same scene without changing between them.
Could you try, after the first two scripts
Scene_Base.prototype.update();
or
_mog_mcursor_scnBase_update();
No bueno =(.

For the Scene_Base.prototype.update(); I get:
Uncaught TypeError: Cannot read property 'forEach' of undefined

And for _mog_mcursor_scnBase_update(); I get
Uncaught TypeError: undefined is not a function

Thanks for helping me! I feel you are pretty close to solve this.
Where are you using these scripts? You can't normally call a script from a menu, so the cursor will not update until you exit out. You would have to use a plugin like this on top of it that lets you run a common event from the menu screen
Because, reasons, I made my whole menu from common events, so I run the scripts from the Scene_ map. When I was using the regular menu (going from scene to scene, Scene_Item, Scene_Equip, etc.) the cursor refreshed no problem, but, as you said, now that im not going into any menu and going out, the cursor does not refresh.
If this is on the map scene have you tried
$gameMap.refresh()

Otherwise I'll need more details on how this menu screen is created or what plugin is used to know how to refresh it.
I will try this $gameMap.refresh() and let you know. Also, I downloaded the plug in (the one you posted) and I noticed I alrady have it on my plug in list ha. Most likely I tried it and didnt work, or i tried it incorrectly.

I appreciate taking time to help me =) I f you think of something, let me know!!
Yeap, $gameMap.refresh() doesnt work either =(.
Without knowing what you did to set up your custom menu, as there are multiple plugins and ways to do it, I can't advise how to refresh it.
Oh! sorry. It is not actually complicated. I used to have 2 menus, the regular one you call with ESC and a custom one I made with comment events. Since having 2 menus does not make sense I decided to unify them and since I cant code and create scenes for everything I need, I decided to do everything in common events.

Now, for that I use Yanfly button common event plug in, which it calls my menu common event by pressing M.

Then my menu pops and it is a simple choice box with Inventory, Equip, Status etc etc. and in those choices I call 1. A scene_XXX or another common event. And thats that.

And well, like I said I use mogs menu cursor plug in and I need to adjust the anchors because there are some choices the cursor goes bonkers Like this:

Clipboard01.png


But in other menus it appears normal, as it should, so if I change one and fits, then it will be bonkers in the other one, so thats why i need to be able to change it on the fly and adjust for each menu..

Thank you!

​

I still don't know what code you're using to call the scene or what your scenes are called, but try
NameOfScene.update();

You could also try the recommendation in this post

If the above don't work, maybe you should make a new thread asking how to refresh scenes or windows, because this issue isn't really about the MOG Cursor plugin anymore.
Hmmm.. like I said, Im not in a scene. im on the map(and if the map is a scene, well, it woul be scene_map. and we already tried $gameMap.refresh() Im using a simple choice event directly on the map.

Ok, i´ll try the refresh window post to see if i can do something.

Thanks for al, your time, and if you think of something , let me know!

Original thread: https://forums.rpgmakerweb.com/threads/help-i-need-assistance-with-this-mog-s-plug-in.159663/