I have finally finished what I believe to be a working version of Invasion in mission form for a Single Bridge. Now, this is a beast of a mission file (1.3 MB uncompressed, 18,000+ lines of code), but it includes maps for Single Front, Double Front, and Siege, Terrain types for Barren, Interesting, and Very Interesting, Time limits from 5 to 45 minutes in 5 minute increments (as well as unlimited), Difficulty levels 1 through 11, and sub-missions.
Game Master has 10 seconds from the start of the mission to designate the Time Limit, Difficulty Level, Map Type, and Terrain Type before the mission begins with Defaults set at a 25 minute game at level 5 on a very interesting Siege map. Time is set using 1-9 for timed and 0 for unlimited games, Difficulty is Q thru P for 1-10 and L for level 11, Map Types use S, D, and F for Single, Double, and Siege, respectively, and Terrain is designated using B, N, and M for Barren, Interesting, and Very Interesting, also respectively. If all items are selected, the game forgoes the remaining time in the 10 second timer and begins. The Space Bar will inject defaults to all options not set, and the Z key will randomly select Map and Terrain type. Finally, the X key will end a game in progress.
There are limitations as to the ability to completely and absolutely recreate Invasion.
1) I am unable to introduce sub-missions that include weapons generation speed increases for the space stations, nor am I able to increase shield generators on the Artemis. All other sub-missions (more nukes, more coolant, more energy) are included. Additionally, due to the complexities of random sub-mission generation and tracking, it was necessary to reduce the random selection of support craft from 12 down to the bare minimum of 6, so you will see the same IDs for support craft from mission to mission.
2) I do not have the exact formulas for calculating fleets and Skaraan enemy sizes, strengths, and starting locations, but I do believe that what I have is faithful to the difficulty levels in the core Invasion game, after an extensive 2 week evaluation of fleet sizes, strengths, an locations. If someone has better information as to the ranges for fleet strengths and starting locations based on the map type, I would be more than happy to update the data.
3) Due to the size of the script, I believe that this will cause weaker servers to have a laggy main screen display under the stress, and will require a beefy dedicated server to have an optimal experience.
I would love to hear your thoughts, suggestions, questions, and/or bugs that you may have and/or discover in the running of this script. Thank you very much to all of you for all of your help in teaching me the scripting language, its limitations, work-arounds, and general support. Specific thanks to lucas99801 for the impetus and support to begin this project, and Hissatsu and RussJudge for the Mission Editor that made life much easier in the coding of this monstrosity. It is funny how such a little thing such as limitation of the time selection could cause me to do such a thing. ;)
I hope you all enjoy this and find it useful.
Mission - Invasion (1.282 MB / 97KB zipped)