RTS Controls Plugin?

Hello! I'm looking for a Real Time Strategy controls plugin. More specifically, a plugin that allows me to click and hold mouse button and then drag it to create a box that selects the units inside of that box.

Think starcraft, command and conquer, etc... basically any RTS game where you select multiple units with your mouse.

Is this possible? I've search the interwebz and can't seem to find a thing. Could someone please point me in the right direction? Thank you!
I'm thinking you could do this in a creative parallel common event with some scripts. Store the initial click position in 2 variables, then track the current mouse position. Return the area rounded up to whole numbers. Loop through that area and apply an effect to every event in it.
I'm thinking you could do this in a creative parallel common event with some scripts. Store the initial click position in 2 variables, then track the current mouse position. Return the area rounded up to whole numbers. Loop through that area and apply an effect to every event in it.
Sounds exactly what I need, however, I don't know how to do any of that 🙁

I'm sure I can find a plugin that stores click position in variables. easy enough
Is track current mouse position another additional plugin?
How would I return the area rounded up?
Would this display a box on screen to give the player indication of what units they will be selecting?
Once the units are selected, how would I go about moving all of them to a position on right mouse click?

Sorry for all of the questions, I'm just trying to make sure I understand exactly how to set this up.
If you don't know any scripting it would be difficult because it would require nested loops and drawing a box on the screen (that part I don't know how to do). I would write this if I wasn't already working on another plugin.


I'm sure I can find a plugin that stores click position in variables. easy enough
Is track current mouse position another additional plugin?
You don't need a plugin for this.

Also having a bunch of units all moving at the same time may lag your game, especially if you use pathfinding.
Also having a bunch of units all moving at the same time may lag your game, especially if you use pathfinding.
I know it depends on the logic on the events, but approximately how many units moving with path finding will lag the game if I'm running 49.2 nw.js?

I would write this if I wasn't already working on another plugin.
How long would you need? I can patiently wait 🙂 The game I'm creating is a hybrid RTS, so I can spend months creating the "non-rts" part.
I'll need a couple days to finish the plugin I'm currently working on. This I could write in a day but I'd have to look up how to draw a box or ask the Javascript thread.

I know it depends on the logic on the events, but approximately how many units moving with path finding will lag the game if I'm running 49.2
You can test it yourself. Make some events and give them all the move route this.moveStraight(this.findDirectionTo(x,y));

Put in a coordinate for x,y. See how much it lags the game.
You can test it yourself. Make some events and give them all the move route this.moveStraight(this.findDirectionTo(x,y));

Put in a coordinate for x,y. See how much it lags the game.
Thank you I will try this when I get home

I'll need a couple days to finish the plugin I'm currently working on. This I could write in a day but I'd have to look up how to draw a box or ask the Javascript thread.
I would greatly appreciate this. Thank you so much.

Maybe I should be very specific on what type of game I'm making to ensure the plugin works as desired for the project.

The game utilizes Alpha Net Z, not sure if that messes with any code, just thought I'd mention. Players start in a map where the RTS controls are NOT enabled. They click on their towns, manage their people, set taxes, make armies, etc... Then they send their army to another town.

When the armies meet, or when an army hits a town, the players are teleported to a battle map where the RTS control ARE enabled. I would like left click to be held down and dragged to create a box that will give the player indication of what units they will be selecting. Once left click is let go, all units within the boxed area will be "selected". Right click will move all selected units to that position. I would also like Right click to send the selected units to attack enemy units. Just like starcraft, warcraft 2, etc, right click on the enemy will send the units to attack

Hopefully this clarifies exactly what the project requires to be functional.

Thank you so much! Eagerly awaiting your javascript magic!
I'm not going to step on Aqua's toes if she has some idea how to implement this, but I think it's going to be much more challenging than anticipated.

Not just the dragging mouse to select things, but the entire engine beneath that of "I have things selected and I can issue orders and they do things"...none of that exists in RPG Maker.

Of all the game engines available for you to start a project in, RPG Maker is very far away from trying to make an RTS.
Not just the dragging mouse to select things, but the entire engine beneath that of "I have things selected and I can issue orders and they do things"...none of that exists in RPG Maker.
I got that working with one event in Chrono Engine + Altimit (I'll have to make a video showcase.) OP is using Pheonix KageDesu's ABS. The problem I would personally run into is the massive lag from telling an army of units to move to a position.
I got that working with one event in Chrono Engine + Altimit (I'll have to make a video showcase.) OP is using Pheonix KageDesu's ABS. The problem I would personally run into is the massive lag from telling an army of units to move to a position.

Easystar.js claims to be able to handle this without too much lag. This convo is way above my paygrade, but I felt it might be worth a mention.

Easystar.js claims to be able to handle this without too much lag. This convo is way above my paygrade, but I felt it might be worth a mention.

Possibly, I wouldn't know how to add this to RPG Maker without a lot of research, and implementing all these fancy mechanics is why my project is taking so long.
I got that working with one event in Chrono Engine + Altimit (I'll have to make a video showcase.) OP is using Pheonix KageDesu's ABS. The problem I would personally run into is the massive lag from telling an army of units to move to a position.
I am not using kages ABS. Only the Alpha Net Z plugin. Do I need kages to make this work? If so, I can buy it.
Possibly, I wouldn't know how to add this to RPG Maker without a lot of research, and implementing all these fancy mechanics is why my project is taking so long.
I had trouble working with it myself when messing with it in the LeTBS MV engine. Didn't seem like I could influence it much really so I have to think there is more going on than the few functions I saw that call it.
Easystar.js claims to be able to handle this without too much lag. This convo is way above my paygrade, but I felt it might be worth a mention.
That's just a (set of) pathfinding algorithm(s). The potential for lag wouldn't be just any pathfinding, but the rest of the engine around it...personally, I don't think there's such a huge risk of lag.

It's constructing the entire interface to make this all possible that's the daunting part.

But I'm done butting in - if the OP wants to make an RTS and others want to help, I'm certainly not going to stand in the way and say it's impossible. I just don't think RPG Maker is at all a sensible starting point for that. 😉
I am not using kages ABS. Only the Alpha Net Z plugin. Do I need kages to make this work? If so, I can buy it.
If you want battles on the map like Warcraft/Starcraft then you would need some ABS plugin. Personally I use Chrono Engine. I only played the demo for PKD's ABS once and I'm not going to spend time learning a new ABS I'm not going to use so I wouldn't be able to help you if you used it, but theoretically you can do it using that plugin.
If you want battles on the map like Warcraft/Starcraft then you would need some ABS plugin. Personally I use Chrono Engine. I only played the demo for PKD's ABS once and I'm not going to spend time learning a new ABS I'm not going to use so I wouldn't be able to help you if you used it, but theoretically you can do it using that plugin.
Does chronos engine have a demo so I can see if it plays nice with my other plugins? Do you know if chronos works with alpha net Z? I will do whatever is required to make this work. Thanks so much for your help.

I just don't think RPG Maker is at all a sensible starting point for that. 😉
I've used unreal engine 5, dreams, and RPG maker. My ultimate goal is to make a function online multiplayer game. I have very little coding knowledge. Of all the engines I've used, RPG maker is the first one I've been able to get online capabilities working. I understand it's not ideal... But was SNES ideal for composing something like "Dancing Mad" from FF6? Instead of doubting the improbable, support what's possible. Let's all work together to make a plugin that helps others achieve their game creation goals as well.
I wrote a beginner guide to Chrono Engine here with a link to the download which includes the demo.

Original thread: https://forums.rpgmakerweb.com/threads/rts-controls-plugin.168280/