Mechanics

Player Scripting Mechanics

 * 1) User creates combat code in cities. It will be a full (but basic) program in program language to be determined.
 * 2) First time used code is sent to txt file and compiled via external compiler (will be listed as a dependency when program is installed) to check syntax only
 * 3) If code is bad, error message is stored for user to view back in city and technique (program) does not execute. Random bad thing happens to person using the technique (ranging from funny explodes in face and darkens face to HP loss or status affects)
 * 4) If code's syntax is good the technique (program) is "run", an internal flag associate with code is marked true and code doesn't go to syntax check again unless it is modified
 * 5) The "Execution" of the code is really done by grabbing approved power words (while, for, if/then) and approved command words (attack, defend, use) out of the code and running those commands

The implicaiton of this final point is that we'll have an interpreter level for the power words. Since every language is a little different in how the implament the same concept, the interpreter level will take the instructions in the program language of your choice and translate that to the underlying code of the game engine. I'm thinking that the scope of the game will be limited to 1st semester programming so this should be a fairly simple deal to swap out the modules for different programming languages, but one thing at a time.

Python as a first language for this?