Hi all!
I've been thinking about making a program that could automatically insert a cheatpack into a jass file.
It'd be like a search and replace, but quicker, and you wouldn't see the file get opened.
Here's what it'd do:
1. Under one form, it asks you to paste in what you'd put under globals
2. You click next, and it asks you to paste in what you'd put under endglobals
3. You click next, and it asks you to paste in what you'd put under function main
4. It inserts the codes, and saves the .j file. Then all you'd have to do is replace it!
The way it'd work is by calling the search and replace function, but replacing
Code:
globals
with
Code:
globals\nCODE
And the same with endglobals, and function main. The only problem is that since it's not by hand, it couldn't do a Jass syntax check. However, I was thinking of it calling on the JASS syntax check function somehow, and returning the results in a MessageBox().
I'm still new to coding, but I'm determined to learn enough C++ to get this done. Post what you think of this. Also I can only work on this on the weekends, due to school.