Okay, I've re-written and simplified the script, but I am still getting the dreaded Microsoft VBScript runtime error. I believe the issue is with creating the child body, but maybe I am wrong.
#plugin Squashdown! #author NBOS #desc Compresses system positions along the Y axis sector = GetCurrentSector() j = sector.SystemCount For i = 1 to j o = sector.GetSystem( i-1) o.y =
I wanted to keep it simple, so I tried to script this to just add one megastructure around each star, but I keep getting VBScript errors. Something is wrong with the way I am trying to add the child…
#plugin List All Symbols on Map #author NBOS Software #desc Lists info about all the symbols on the current map Dim oMap, o, i, s oMap = GetCurrentMap() s = "" For i = 1 to oMap.O
#plugin List All Symbols on Map #author NBOS Software #desc Lists info about all the symbols on the current map Dim oMap, o, i, s oMap = GetCurrentMap() For i = 1 to oMap.ObjectCount o
#plugin Generate From Existing #author NBOS #desc Runs the generator against existing stars on the map. oSector = GetCurrentSector() j = oSector.SystemCount() for i = 1 to j o =
#plugin UABI Finder #author NBOS #desc Finds a body by UABI using recursion Dim WasFound, FoundBody Dim s sector = GetCurrentSector() s = "{F82527A3-F773-45D9-A134-D7CC24580069
#plugin Clone Selected #author NBOS #desc Clones/duplicates the selected systems Dim b, j, i, sector Randomize sector = GetCurrentSector() j = sector.SelectedCount() For i = 1 to j
Is there a way of setting the visibility? I'd like to temporarily hide shows that are not selected for clarity. I tried this script but all the stars are still visible.
#plugin Population Multiplier #author NBOS #desc Multiplies the population of all bodies by a given factor MultFactor = 10 sector = GetCurrentSector() numberOfSystems = sector.SystemCount() For