The System Independant repair Facility

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
User avatar
Jinx999
Above Average
Above Average
Posts: 24
Joined: Fri Jun 09, 2006 9:12 am
Location: UK

The System Independant repair Facility

Post by Jinx999 » Mon Dec 11, 2006 7:48 am

It's really good, but I don't like it appearing in all the systems. Can anyone tell me (I know nothing about scripting) how to make it only appear in a few systems?

User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2718
Joined: Tue Apr 04, 2006 7:02 pm
Location: I escaped The Labyrinth with the assistance of my fledgling. After many battles, I'm in the Nexus.

Post by LittleBear » Mon Dec 11, 2006 8:43 am

Which OXP is this in?
My OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits and Renegade Pirates can be downloaded from the Elite Wiki here.

User avatar
Dr. Nil
---- E L I T E ----
---- E L I T E ----
Posts: 985
Joined: Thu Sep 28, 2006 5:11 pm
Location: Nearest Hoopy Casino
Contact:

Re: The System Independant repair Facility

Post by Dr. Nil » Tue Dec 12, 2006 10:22 am

Jinx999 wrote:It's really good, but I don't like it appearing in all the systems. Can anyone tell me (I know nothing about scripting) how to make it only appear in a few systems?
You could put a conditon into script.plist in the /SIRS.oxp/Config folder. Either to have it appear randomly (use D100 number) or specified by some other condition.

http://wiki.alioth.net/index.php/Script ... statements
http://wiki.alioth.net/index.php/Method ... ing_states

You can also use the shipdata.plist to restrict the appearance of the SIRS.
<key>conditions</key>
<array>
<string>systemGovernment_number equal 4</string>
</array>
This is how I restrict the appearance of commie ships to systems with a communist government (see the link to Quering states above for ideas on what other conditions to use).
Image

300 billboards in Your Ad Here!
Astromines and more in Commies.
AVAILABLE HERE along with other Oolite eXpansion Packs.

Post Reply