View unanswered posts | View active topics It is currently Sun Apr 19, 2026 7:02 pm



Reply to topic  [ 2 posts ] 
 SysOp Script: T-EditPlanets.ts - Random Planet Placement 
Author Message
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 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:
T-EditPlanets.ts [9.33 KiB]
Downloaded 419 times

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Sun Sep 11, 2011 11:51 pm
Profile ICQ
Gameop
User avatar

Joined: Sun Aug 28, 2011 2:56 am
Posts: 81
Location: Montana
Unread post Re: SysOp Script: T-EditPlanets.ts - Random Planet Placement
Very nice! =)

_________________
ShapeShifter:
Image

Website/Blog: http://www.netcessor.com/topper
TWGS Server: telnet://108.59.108.53:23


Mon Sep 12, 2011 12:02 am
Profile YIM
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.