Setting conditions in shipyards: How far can it go?

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

Moderators: winston, another_commander

Post Reply
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

Setting conditions in shipyards: How far can it go?

Post 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
User avatar
Wolfwood
---- E L I T E ----
---- E L I T E ----
Posts: 735
Joined: Wed Mar 29, 2006 9:53 am
Location: Finland
Contact:

Post 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>
Author of Tales from the Frontier - official Elite 4 anthology.
Author of Marcan Rayger adventures - unofficial fan-fic novellas set in the Frontier universe.
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

Hi Wolfwood!

Post 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
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post 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
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Cmdr. Maegil
Sword-toting nut-job
Sword-toting nut-job
Posts: 1294
Joined: Tue Feb 27, 2007 10:28 pm
Location: On the mend in Western Africa

Re: Hi Wolfwood!

Post 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...
You know those who, having been mugged and stabbed, fired, dog run over, house burned down, wife eloped with best friend, daughters becoming prostitutes and their countries invaded - still say that "all is well"?
I'm obviously not one of them.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Kaks wrote:
<string>score_number greaterthan 512</string>
That should be 511.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

That should be 511.
Err, exactly! :D
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

Thanks!

Post 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 :?:
Post Reply