I actually only use PKSV. It's more of an interpreter on top of an interpreter. It's essentially the same deal as byte code, but lower level. The poke script is above ASM, but below C. It's essentially what would happen if you made a programming language that's just a series of sub routines, but without the refinements and automation that make higher level languages what they are.
I guess I don't understand what you want to do, please explain.
I'm not treating you like an idiot. If I don't know what you know I just explain things a bit more than I normally would.
Like, we have to declare our strings by hand because of the limitations of working with a ROM. Before we could have a tool that allows us to freely declare strings(constants in general, really) we have to have a tool that fully decompiles and recompiles the game, which just simply isn't going to happen.
You know, there are spatial constraints. The only way to get around those is to first double the ROM size and work from the new space. Then you can declare strings and other things without having to be able to de/re compile the whole game.
Also, keep in mind that when you're writing scripts here you're not actually compiling anything. That word gets thrown around a lot I've noticed, but it isn't actually a correct usage. Another thing I meant about the whole missing abstraction layer thing is that scripting for pokemon roms is 1:1 with the binary file, which isn't something that happens in ASM even.
Because that's how all binaries work. You must keep in mind that you are not scripting in some php file, you are modifying binary data.
This is the sort of thing I meant when I said there's a missing level of abstraction. When you use an IDE with a high level language, you can make as many variables as you need and they can be whatever you want them to be. At compile time they'll be baked into the binary the way the strings we use in PKSV already have been. There is also no way to get around having to have your strings declared before you use them. It is highly unsafe to have them automatically generated in a ROM editor. It would be different if you were making the game from scratch, but since there are already a bunch of other scripts with their own strings and actions. They MUST be handled delicately to avoid corrupting other data.
To be honest, when they made the pokemon games I'm sure they used an editor that made these scripts for them from some other language, a high level language where variables and mathematics could be done easily. I really wouldn't be surprised if these blocks were made by a modified GCC toolchain actually.
I do a lot of Windows programming using C#, or C++ primarily. I also do C, Java, Lua, PHP, JS, and whatever else. Pretty much whatever I have to use to achieve a goal.
I'm also not sure what example you were talking about.