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 »

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: 2882
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Post by LittleBear »

Which OXP is this in?
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, 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: 983
Joined: Thu Sep 28, 2006 5:11 pm
Location: Nearest Hoopy Casino
Contact:

Re: The System Independant repair Facility

Post by Dr. Nil »

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