I'll make a MZ plugin for your game

@Shuck here you go ser! Enjoy!
Thanks a lot for the code snippet. That definitely makes it far more easier than what I had in mind.

As for the question I asked previously. The plugin that I am using right now that require event note tags is Expand Events Action. It is a MV plugin but works well in MZ without any problems so far.
The thing is most of its functions are note tags based. I don't have the problem with its plugin command but it would be awesome if this or other plugins that require note tags can be made to be usable with comment tags.
Maybe you can modify this to do that and I can learn from that and modify the plugins I need in the future myself.
@Roxus Say an event (ID: 1) has 2 pages, one page with no condition and no comment and one page with a condition on Switch 1 and with the comment to rotate around event with ID: 2 and you have a lever you can press to toggle the Switch 1.

When you enter the map, Switch 1 is false, the event is wherever you placed it on the map. You activate the lever, Switch 1 is true, the event starts rotating around Event 2. You activate the lever again, Switch 1 is false. What should happen to Event 1? Stay in place? Or go back where it was originally?
@Shuck here you go ser! Enjoy!
This is awesome, thank you!! I really enjoyed the notes/comments you included in the code.

I do have another small plugin need, if you are still open...
Essentially, what I'm looking for is to stop the player's walking animation from turning off when they hit a wall/collision. Currently, in the default engine, when a player character runs into something that stops them from moving, no animation will play. For game feel, I still want my player to be "animating", even if they are running face-first into a wall!

My game is a love-letter to the Mario & Luigi RPG series, and this is a small little detail in those games I want to replicate. I've tried with common events and it just seems like it would be so much cleaner as a plugin, perhaps?
Would it be possible to do a layer system for spritesheet? Like having the spritesheet for armor, but you can put it on top of the current spritesheet?
@Mouradif The way this plugin works, if the switch is turned off mid rotation, the event stays where it is right at that moment. Say event 1 is placed 3 blocks away on the right side of event 2. It starts its rotation and you switch it at exact half a rotation, now the event 1 is 3 blocks away on the left side of event 2.
@Roxus Got it. Do you also need the page comment thing for the <particle> and <dark> note tags?
Would it be possible to do a layer system for spritesheet? Like having the spritesheet for armor, but you can put it on top of the current spritesheet?
I actually made a plugin like this. It comes with plugin params to configure each layer, plugin commands to change the value of one layer for one actor and a plugin command to start a "Character Creation" scene where for a specific actor and list of available layer variations (by default, it will allow all the layers that you configured in the plugin params), you can basicly customize your character in a dedicated scene.

However, for this plugin, it took me an insane amount of time to make it and my plan was to try to monetize it. But I'm not sure yet how though. Maybe it will end up on itch.io with a "name your price" kind of thing.
No, Rotating is the only one I need.

Edit: Also, if you have some spare time would you look at Multi Level Map Plugin?
Basically it stacks multiple maps on top of one another giving it a semblance of depth due to which you can drop/climb from one map to another.
I don't need it converted to MZ but its an interesting enough of a plugin by itself not to mention its unsung feature that by merging multiple maps, you are also getting just as many different tilesets.
Basically if it works in MZ, you can use multiple tilesets on different maps and merge it to look like a single map.

Again, not required but its something interesting and maybe it can be used in creative ways to make a game more interesting.
@Roxus I'm well advanced in the editing of ExpandEventsAction and I just realized one thing. I've been aware since the start that there were plugin commands to make an event start or stop rotating. I figured since you asked for this update that maybe these plugin commands didn't fit your use-case, but I actually just realized one thing: they are MV-style plugin commands, meaning if you use MZ, you actually don't have a way to trigger them.

If I convert the plugin commands to MZ-style and make it possible to make events start or stop rotating whenever you want, would that be fine?

I had no problem making the plugin read the first comment in an event's relevant page instead of note tags but the issues I've encountered are related to the fact that in this plugin, for events that have a note tag, they start rotating when the map is loaded. Now I was overriding the setupPage method of Game_Event to check if the event should start or stop rotating depending on its previous state and the existence or absence of a comment at the start og the event's page. I was going to reuse some code from the plugin commands and this is when I realized they were MV-style.

So long question short: would you be able to achieve what you're trying to do with plugin commands if you had access to them?
They are MV-style plugin commands, meaning if you use MZ, you actually don't have a way to trigger them.

If I convert the plugin commands to MZ-style and make it possible to make events start or stop rotating whenever you want, would that be fine?
Oh yeah, I should have been more clear about that at the start, my apologies.
Thing is, they are MV style plugin commands but I was able to use them in my project either by using script calls or by using Arthran's plugin attached below.
So, to answer your question, I do use those plugin commands but since I managed to already make them work in MZ, I thought it will be a waste of your time and effort to convert them into MZ. Hence I only focused on the note tags.

To be honest, I didn't quite understand what problem you are facing but just to clarify if it increases your workload, there is no problem for me if you don't convert those plugin commands to MZ. (As there are other workarounds)

So long question short: would you be able to achieve what you're trying to do with plugin commands if you had access to them?
Maybe I am misinterpreting your last question but the note tag command is for creating the rotation and the two plugin commands are for either stopping an already active rotation or for restarting the stopped rotation
So, I would still have to use note tag.

There is another MV plugin I am using that also had note tags function but also plugin commands to create that function, so again by using script calls or by using Arthran's plugin I was able to completely avoid note tags but the plugin you are working with only has note tags to create rotation function.

Hope that clarifies everything and makes your work a little easier.
The note tag command is for creating the rotation and the two plugin commands are for either stopping an already active rotation or for restarting the stopped rotation
So, I would still have to use note tag.

Okay got it. As you surely have figured out, I'm just discovering this plugin and since the documentation is in JP, I have to go through the code to figure out how it works.

So here's a new idea then: how about I add a plugin command that makes an event start or stop rotating without requiring a note-tag at all? It's just that I feel like manipulating dedicated global switches for that single purpose is a bit clanky.

To address this:

I didn't quite understand what problem you are facing

I'm not really facing any problem. My first implementation was just as I described: making the plugin read the first comment of a relevant event's page instead of a note tag. This effectively allows controlling whether an event should have the special behaviour this plugin gives or not by controlling classic event conditions (switches, variables, inventory, ...). This part actually works fine. The issue is that this doesn't work great with how this plugin works. What this plugin does is that it hooks on the initialization of a Scene_Map, scans the available events, read their note tags and attributes the special behaviours. By telling it to read the relevant event's page instead, you would still need to leave the map and come back for it to make effect.

As I realized this was probably not what you wanted, I started working on a hook on Game_Event.prototype.setupPage which is the function that is called each time an event should switch to a different page because some new condition is met. So I was going to reuse some of the code present in the plugin commands but then I thought I would ask if maybe just giving you access to the plugin command would suffice for your specific use-case. At the time, I still thought that the plugin commands allowed to attach the special behaviour on an event without requiring a note-tag (which I think would have been a good idea to add).

But now that we are this deep in the conversation (and my understanding of both the plugin and your requirements), I'm really strongly leaning towards adding plugin commands that allow you to make any event start or stop rotating whenever you want, regardless of their note tags and page conditions. Effectively, this means instead of flipping a switch, you would run a plugin command.

Your request, your rules, I'm just offering options and sharing my opinion. Also, don't worry about it taking me time, making plugins has become my favourite hobby, I really enjoy it!

Oh, and Merry Christmas!
Okay got it. As you surely have figured out, I'm just discovering this plugin and since the documentation is in JP, I have to go through the code to figure out how it works.
Yeah... I was in the same boat but using google translate really helped me understand how to use it.
Especially when I tried to understand how to use its script calls when I have very little coding knowledge.

But now that we are this deep in the conversation (and my understanding of both the plugin and your requirements), I'm really strongly leaning towards adding plugin commands that allow you to make any event start or stop rotating whenever you want, regardless of their note tags and page conditions. Effectively, this means instead of flipping a switch, you would run a plugin command.

Your request, your rules, I'm just offering options and sharing my opinion. Also, don't worry about it taking me time, making plugins has become my favourite hobby, I really enjoy it!
Please feel free to do whatever feels the best for you. I am no coding expert, I am just a casual user so I will be okay just having the same effect no matter how its implemented. And if you can make it happen through plugin commands, what more can I ask?
That's the best way to use any function since it gives me complete control over it. Just do whatever you feel would work best.

Honestly, to tell you the truth when I initially made the request I didn't realize it would be such a complicated request, I thought maybe you can easily convert it from note tag to comment tag and that would be all. And seeing how it can be converted might be useful in the future in my project.
I am happy to hear its fun for you but still it feels like it was too much work for free.
Feel free to take your time and enjoy the holidays. I am in no hurry.

Merry Christmas.
Glad to hear the Plugin Command solution works for you @Roxus

I'll see if I can finish it before dinner :awink:
@Roxus

I've decided to write this as a new plugin. If you are using ExpandEventsAction for other stuff, let me know. Some changes on EEA need to be made before you can use both plugins together.

I've replaced almost all references to "rotation" with "orbit". It describes it more accurately. It's like how the Earth orbits around the sun and makes one full cycle in 365 days, but it rotates and make a full cycle in 24h.

The plugin supports note-tags and is compatible with EEA's syntax. Alternatively, you can use the note tag <orbit> which works he same as <rotate>.

The plugin also supports Comments as a first instruction of a page. So if you want to press a switch and make an event start orbiting, but you want to be able to leave the map, come back and see the event still orbiting, then you will have to add a switch, then in the event's page that runs when that switch is active, you can put a comment as a first instruction with the same syntax as the note tag.

A Plugin command allows you to start or stop orbiting any any event around any event. When it stops, it settles in the nearest square on the map. If you want events to start orbiting from their current position, set a starting angle of "-1".

If you have any question, don't hesitate to ping.

Here you go! Merry Christmas!
Oops, sorry I lied.

In the plugin command to start orbiting an event, for the first argument (Event ID) I have this help text:

You can specity "0" if you want this event to start orbiting.

It was not implemented yet. It is now.
First of all, let me thank you for taking your time to do this. This is exactly what I was looking for.
I did some testing and I found an error. When rotating an event from another event, it works properly but when you try to use the command in the same event that need to be rotated, it gives this error.
Error2.PNG


I am facing another issue, its a compatibility error between two plugins. Sorry for increasing your workload, I had no idea that it would conflict since it didn't in original plugin.
I am using Cyclone Map Editor and it is quite an integral part of my project.
When you get time can you look into in?
Error1.PNG
When you get time can you look into in?
Sure thing!

Could you try and describe a minimal scenario to reproduce the bug you had?
Oh sure, the first one happens whenever you use rotate command in the same event that needs to be rotated i.e event id "0".
The second one is just when launching the game with Cyclone editor. As soon as you get past the menu.
Oh sure, the first one happens whenever you use rotate command in the same event that needs to be rotated i.e event id "0".
You used the second file I sent, right? I tested before sending it, it seemed to work. Maybe there's something else happening here. Could you
1) Double-check that you are using the second file.
The code from line 336 to 342 should look like this:
JavaScript:
    PluginManager.registerCommand(pluginName, 'start', function(orbit) {
        if (SceneManager._scene.constructor !== Scene_Map) return;
        if (Number(orbit.eventId) === 0) {
            orbit.eventId = this._eventId;
        }
        SceneManager._scene.addOrbit(new EventOrbit(orbit));
    });

2) Try with all plugins disabled
The second one is just when launching the game with Cyclone editor. As soon as you get past the menu.
Alright, I will test this plugin

Original thread: https://forums.rpgmakerweb.com/threads/ill-make-a-mz-plugin-for-your-game.151457/