Actually yes u can do tht in normal WE, it's just that in the time it takes you to write down all the code you might as well just use Vexorian's Caster System. Btw the Caster System isn't a program or a hack. It's a collection of functions and script. vJass, which is required for Caster System 14.0 or newer, is a preprocessor, and is extremely easy to implement. Just dl the jass newgen pack, extract and use the newgenWE.exe instead of your normal WE exe. I have attached the necessary files for you. Just extract the .7z files and then the folders inside (you'll need WinRAR), then replace the jasshelper.exe in the newgen folder with the newer exe in the jasshelper.7z archive.
If you are still adamantly opposed to using the Caster System, I can write the script for you.