Skip to content

setSystemVar

MicroBlaster edited this page Mar 17, 2023 · 1 revision

Purpose: You can now modify the TWX Proxy Database by assigning Values to supported System Variable.

Usage: setSystemVar $VarName $Value

WARNING This is a very dangerous command, which can cause database corruption. Use at your own risk.

Note: The TWX Database is modified by the TWX Extractor, so changes you make will be overwritten the next time the TWX Extractor sees new information.

Many System Variables remain Read Only, but you can modify the following:

StarDock := 2002
Rylos := 42
AlphaCentauri := 420

ADDRESS := "MicroBlaster.Net"
SERVERPORT := 2002
Note: Listen Port wil not take effect until database is reopened.
LISTENPORT := 2300
USERLOGIN := False
USELOGIN := True
LOGINSCRIPT := "Login.ts"
LOGINNAME := "Micro"
PASSWORD := "Meow1234"
GAME := "C"

$Index := 5000
SECTOR.Warps[$Index][1] := 1000
SECTOR.Warps[$Index][2] := 1500
SECTOR.Explored[$Index] := "Calc"
SECTOR.BEACON[$Index] := "Stay Out!"
SECTOR.CONSTELLATION[$Index] := "Milky Way"
SECTOR.MINES.QUANTITY[$Index] := 250
SECTOR.MINES.OWNER[$Index] := "Corp [1] Our Gang"
SECTOR.LIMPETS.QUANTITY[$Index] := 3
SECTOR.LIMPETS.OWNER[$Index] := "Corp [2] Sharks"
SECTOR.FIGS.QUANTITY[$Index] := 50000
SECTOR.FIGS.OWNER[$Index] := "Corp [2] Sharks"
SECTOR.FIGS.Type[$Index] := "defensive"
SECTOR.DENSITY[$Index] := 500
SECTOR.NAVHAZ[$Index] := 20
SECTOR.ANOMALY[$Index] := Yes
# Note: "Updated" is not modified automatically by updating other System Variables
SECTOR.UPDATED[$Index] := "01/01/2023 08:00:00"

PORT.Name[$Index] := "The Pit Stop"
PORT.Class[$Index] := 8
PORT.BUILDTIME[$Index] := 0
PORT.ORE[$Index] := 5000
PORT.ORG[$Index] := 5000
PORT.EQU[$Index] := 5000
PORT.PERC_ORE[$Index] := 100
PORT.PERC_ORG[$Index] := 100
PORT.PERC_EQU[$Index] := 100
# Note: Buy values are set by the port class. 
#PORT.BUY_ORE[$Index] := TRUE
#PORT.BUY_ORG[$Index] := YES
#PORT.BUY_EQU[$Index] := 1
PORT.UPDATED[$Index] := $Today & " " & $Now
# Note: Port will not be displayed unless it has a Name, Class (1-8), and an Updated Date.
PORT.UPDATED[$Index] := "01/01/2023 08:00:00"

Clone this wiki locally