How can I get this to work with multiple resolutions

without luna engine I can get it to work and it resizes it, with it it stays at 640 x 416
erm could you tell us more details and....why are you saying this?
erm could you tell us more details and....why are you saying this?
So I took the scripts from the TSBS demo, because I am using the Theolised Battle System in my game. Anyways when I open the menu at a different resolution it keeps the menus and everything the Luna Engine does at the resolution that the demo was, all I want to do is know how to change it. 

Thanks in Advance.
If that script is commented well, you might be able to scan the comments for things like "width" or "x position" and then change those values to your new resolution. Someone better as scripting will surely be able to help you but I'm guessing that your battle system is overriding Luna default and just needs to have the values played with to display properly.
Did you copy Yanfly Core Engine? It changes the resolution
I guess you have the option to set the width and height of the windows in Luna Engine, right?

Use Graphics.width and Graphics.height in those settings to make it scale with the resolution.

Same with the position settings.

Another BIG stuff to mention:

The resolution change must happen BEFORE the modules using Graphics.width and Graphics.height are loaded, so you must change the resolution outside of a class, and above the luna engine scripts.

PS: I don't have luna engine, I am just guessing. 😛
Did you copy Yanfly Core Engine? It changes the resolution
Well I wanted to make it work with multiple resolutions actually. 
you would need an entirely new script for that. Aside from that, you need to do some mathematics in your luna engine configuration so they can react properly to the resolution changes..
you would need an entirely new script for that. Aside from that, you need to do some mathematics in your luna engine configuration so they can react properly to the resolution changes..
So I can not just slap Graphics.width or Graphics.height on there?
You could IF it will appear correctly. Usually code goes like 

x = Graphics.width - num

With num being an offset to position a window. Here's a graphical explanation that shows an example how you would calculate the positioning:

VyYbmGw.jpg

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-get-this-to-work-with-multiple-resolutions.37367/