OpenXcom Forum

Modding => Work In Progress => Topic started by: Roxis231 on October 31, 2015, 01:27:00 am

Title: [Question] Can You Use A Craft As A Required Item In A Manufacture Project?
Post by: Roxis231 on October 31, 2015, 01:27:00 am
I've been thinking, can you use a Craft (ie Skyranger, Interceptor) as a required item for makeing a new Craft?

And If so what code/text would you have to use in the ruleset?
Title: Re: [Question] Can You Use A Craft As A Required Item In A Manufacture Project?
Post by: Hobbes on October 31, 2015, 02:41:45 am
I've been thinking, can you use a Craft (ie Skyranger, Interceptor) as a required item for makeing a new Craft?

And If so what code/text would you have to use in the ruleset?

Haven't tried it but I don't see why not, since I already use vanilla HWPs as required items for the upgraded HWPs. You should need something like this:

    requiredItems:
      STR_SKYRANGER: 1
Title: Re: [Question] Can You Use A Craft As A Required Item In A Manufacture Project?
Post by: Roxis231 on October 31, 2015, 03:10:08 am
Ok I'll test try a rule set this weekend and see how it goes.

Any more sugestions or help is nice though.
Title: Re: [Question] Can You Use A Craft As A Required Item In A Manufacture Project?
Post by: Hobbes on October 31, 2015, 03:17:52 am
Ok I'll test try a rule set this weekend and see how it goes.

Any more sugestions or help is nice though.

Just tried it without success - the issue is that planes are Craft and it doesn't seem possible to set them as Items.
Title: Re: [Question] Can You Use A Craft As A Required Item In A Manufacture Project?
Post by: Roxis231 on October 31, 2015, 03:37:19 am
I thought Dioxine had done something like this in Piratez? or was he just able to make it seem that way?
Title: Re: [Question] Can You Use A Craft As A Required Item In A Manufacture Project?
Post by: Dioxine on October 31, 2015, 04:09:22 am
No, I had that idea long time ago but it's impossible.
Title: Re: [Question] Can You Use A Craft As A Required Item In A Manufacture Project?
Post by: Solarius Scorch on October 31, 2015, 04:09:32 am
I thought Dioxine had done something like this in Piratez? or was he just able to make it seem that way?

No, I'm pretty sure that's not possible. The reason being, craft is a composite item, since it also contains weapons and possibly soldiers/items.
Title: Re: [Question] Can You Use A Craft As A Required Item In A Manufacture Project?
Post by: Roxis231 on October 31, 2015, 04:32:51 am
Damm - Looks like I'll have to go with the other plan then, unless some one changes the code - and that's probably not a good idea.
Title: Re: [Question] Can You Use A Craft As A Required Item In A Manufacture Project?
Post by: Mackus on October 31, 2015, 07:52:13 pm
I thought Dioxine had done something like this in Piratez? or was he just able to make it seem that way?
I think he just made it look this way, if you are referring to old aircraft hulls being requirement to manufacture new aircraft. IIRC there are two types of old hulls, one is normal item used in game, other is "hidden" craft that cant be bought but is used only for bootypedia entry.
Title: Re: [Question] Can You Use A Craft As A Required Item In A Manufacture Project?
Post by: Firestorm on November 14, 2015, 12:57:33 am
What about using live aliens as a component in manufacturing?  Anyone tried that yet? (wrings hands together evilly)
Title: Re: [Question] Can You Use A Craft As A Required Item In A Manufacture Project?
Post by: Arthanor on November 14, 2015, 03:04:10 am
Yup, Piratez does it, mostly to slaughter them and get components from them. Or for human captives enslaving them and keeping all their possessions for yourself.
Title: Re: [Question] Can You Use A Craft As A Required Item In A Manufacture Project?
Post by: Dioxine on November 14, 2015, 03:16:38 am
Live alien is just like any other item, with the exception it takes Containment space and (thus?) can be shipped despite size = 0.
Title: Re: [Question] Can You Use A Craft As A Required Item In A Manufacture Project?
Post by: The Reaver of Darkness on November 27, 2015, 08:06:46 am
I tried to tackle this a while back. What I came up with was possibly being able to add an option to "repackage" the craft, trading it in for an inventory item which can be traded back for the actual craft. The inventory item would carry the same name and monetary value but would take up storage space instead of a hangar. You could then use it as an item in production.

You would just need to make some way to swap one craft for another. I was trying to use it for alloy interceptors--what I finally did was grant two options in the purchase menu: the actual interceptor, or a packaged interceptor. There was no way to swap between them except if you accidentally bought the packaged interceptor when you wanted the actual interceptor, you could sell the packaged one and get most of the money back.

That's the best I came up with.
Title: Re: [Question] Can You Use A Craft As A Required Item In A Manufacture Project?
Post by: SupSuper on January 28, 2016, 12:28:02 pm
This has been added in the latest nightly.
Title: Re: [Question] Can You Use A Craft As A Required Item In A Manufacture Project?
Post by: The Reaver of Darkness on January 29, 2016, 08:41:07 am
This has been added in the latest nightly.
Thanks!!

How do I use the feature?