| www.ClassicTW.com http://classictw.com/ |
|
| SysOp Script: T-EditPlanets.ts - Random Planet Placement http://classictw.com/viewtopic.php?f=15&t=32272 |
Page 1 of 1 |
| Author: | Promethius [ Sun Sep 11, 2011 11:51 pm ] |
| Post subject: | SysOp Script: T-EditPlanets.ts - Random Planet Placement |
The attached script will allow you to setup a game with: specified number of sectors to put a planet random planets (or specific type) random amounts of fighters, ore, shields (based on percentage you set), random cannon settings random Cit levels (automatically downgrades if a cit can't go to the random number) random planet names (7 first and last names included - if you add or delete names, then you will need to change this part of the code: getRnd $rndNames 1 7 getRnd $rndNames2 1 7 The range for the random amounts are menu configurable with the exception of the cannon range settings which are set in the script. The script was written for TWGS 2.10. Do not use without backing your TWA file up! Telnet into the admin port, select T-Edit, select the game and run. Any issues, let me know. I've only tested this on a Sub Zero edit so feedback, good or bad would be nice. You should know the edit before you enter the percentages for the various items. And yes, the included names are lame. Code: :PlanetNames setVar $first[1] "Locus" setVar $first[2] "Tal" setVar $first[3] "Alpha" setVar $first[4] "Theta" setVar $first[5] "Talos" setVar $first[6] "Pirate" setVar $first[7] "Rogue" setVar $second[1] " Star" setVar $second[2] " Psion" setVar $second[3] " Tek" setVar $second[4] " Seven" setVar $second[5] " Orion" setVar $second[6] " Haven" setVar $second[7] " Homeworld" return Attachment: |
|
| Author: | topper4125 [ Mon Sep 12, 2011 12:02 am ] |
| Post subject: | Re: SysOp Script: T-EditPlanets.ts - Random Planet Placement |
Very nice! =) |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|