Page 1 of 1

The System Independant repair Facility

Posted: Mon Dec 11, 2006 7:48 am
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?

Posted: Mon Dec 11, 2006 8:43 am
by LittleBear
Which OXP is this in?

Re: The System Independant repair Facility

Posted: Tue Dec 12, 2006 10:22 am
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).