Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Ostron on September 12, 2012, 10:58:02 am

Title: Weapons & Ships allowed SEXPs
Post by: Ostron on September 12, 2012, 10:58:02 am
I'm planning on having a mission in my campaign where the player's success or failure in protecting some freighters will directly impact their available loadout in the future.

Note: I'm only planning on tying the type of ships and weapons available to the results, not the amount of said items.

Now I know the "allow-ship" and "allow-weapon" SEXPs exist but I'm a cynical, pessimistic bastard and I'm thinking it can't be that easy. I know I can test it, but I'm hoping you all have a quick answer:

1. If I create a mission and allow certain ships in the mission loadout (say, 4 Erinyes, 4 Myrmidons, and 4 Herc IIs) but the mission is in a campaign that only allows Myrmidons, will the mission only proivde Myrmidons to the player in the mission?

2. Related, if a mission occurs prior to the above mission and an event triggers to "allow-ship (HercII)", will the player then have access to Myrmidons and Herc IIs but the Erinyes stays unavailable?
Title: Re: Weapons & Ships allowed SEXPs
Post by: MatthTheGeek on September 12, 2012, 11:27:01 am
1. If I create a mission and allow certain ships in the mission loadout (say, 4 Erinyes, 4 Myrmidons, and 4 Herc IIs) but the mission is in a campaign that only allows Myrmidons, will the mission only proivde Myrmidons to the player in the mission?
Yes it will. Quick way to check : try Surrender Belisarius in Tech Room, where campaign restrictions don't apply. You should see some PromRs here, that you can't get so early in the campaign. IIRC, that is.
Title: Re: Weapons & Ships allowed SEXPs
Post by: Goober5000 on September 12, 2012, 11:29:36 am
1) Yes

2) Yes

By the way, Karajorma's loadout code allows not only the type but also the number to be specified.
Title: Re: Weapons & Ships allowed SEXPs
Post by: Ostron on September 12, 2012, 01:16:24 pm
Thank you all.

I know about the number code thing, but I'm trying to keep things simple regarding mission building (read: if I can't do it 100% in FRED I'm not bothering) since I'm working on this solo.
Title: Re: Weapons & Ships allowed SEXPs
Post by: karajorma on September 12, 2012, 06:33:35 pm
The number thing is 100% in FRED. :) But there's nothing wrong with keeping things simple.