Page 1 of 1

Setting conditions in shipyards: How far can it go?

Posted: Sun Mar 09, 2008 1:16 am
by Lestradae
Me again.

OK, I found that in the shipyard.plist one can set conditions if a given ship appears in a shipyard at all, for example

Code: Select all

<key>conditions</key>
                <array>
                        <string>galaxy_number greaterthan 1</string>
                </array>
So, my question is, could a condition also be set so that a) a certain ship only appears in a shipyard after a given mission (like, say, the Constrictor) or b) that a ship appears only if the player has achieved a certain rank (like for example the Galactic Navy sometimes giving pilots the mighty Condor to fly - if they have reached Elite rank).

Is this possible, and if, how would the command have to look like?

Thanks in advance :)

L

Posted: Sun Mar 09, 2008 5:41 am
by Wolfwood
You can put pretty much all sorts of things there. Here's an example from an OXP I never finished:

Code: Select all

		<array> 
			<string>mission_wolfpack equal COMPLETED</string>
                        <string>dockedStationName_string equal Behemoth - Argus</string>
                </array>

Hi Wolfwood!

Posted: Sun Mar 09, 2008 4:52 pm
by Lestradae
Thanks for your reply!

What I need to know is how (in detail) can I specify these three conditions:

* Constrictor mission completed

* Player is "Clean"

* Player has reached a certain rank or amount of kills

... building on your example.

It would probably look something like

Code: Select all

<array> 
         <string>mission_constrictor equal COMPLETED</string> 
         <string>player_record equal CLEAN</string>
         <string>player_rank equal DANGEROUS</string>
</array>
How exactly do I do that?

And will that work in the shipyard?

Thanks for answer in advance

L

Posted: Sun Mar 09, 2008 5:07 pm
by Kaks
I can help with the second two:

Code: Select all

<array>
         <string>mission_constrictor equal COMPLETED</string>
         <string>legalStatus_number equal 0</string>
         <string>score_number greaterthan 512</string>
</array>

You can find most of this info on the wiki:

here and here for example.

I'd probably go for 'deadly' status myself, but hey, it's your oxp.

I don't actually know the name of the constrictor mission variable, and what it's set to on completion, but I'm sure other people will know....

edit: PS About contacting Charlie. As I said elsewhere, a message has been sent to Charlie, he should read it in due time, and I'm sure he'll answer as soon as he can

Re: Hi Wolfwood!

Posted: Sun Mar 09, 2008 5:15 pm
by Cmdr. Maegil
Lestradae wrote:

Code: Select all

<string>player_rank equal DANGEROUS</string>
That wouldn't allow an ELITE pilot to be eligible any more than a Harmless one, would it?... Try checking the kills instead.

EDIT: too late...

Posted: Sun Mar 09, 2008 5:32 pm
by JensAyton
Kaks wrote:
<string>score_number greaterthan 512</string>
That should be 511.

Posted: Sun Mar 09, 2008 6:04 pm
by Kaks
That should be 511.
Err, exactly! :D

Thanks!

Posted: Sun Mar 09, 2008 10:16 pm
by Lestradae
Thanks, all of you, for the information :!:

One last question:

What are the mission codes for the Constrictor & Thargoid plan missions?

They will be the conditions that unlock two ships from the Realistic Shipyards ... one the Constrictor, and the other ... you`ll see :)

Cheers :idea:

L

PS: Are

Code: Select all

<string>thargoid_plans_debrief equal COMPLETED</string>
<string>constrictor_hunt_debrief equal COMPLETED</string>
correct :?: