OpenXcom Forum
OpenXcom => Suggestions => Topic started by: Amiga on March 10, 2018, 12:32:25 am
-
Just wondering if it's even possible to create condition when we can use particular craft weapon with one type of craft ect...It would be nice to see this functionality.
-
Already done in OXCE and OXCE+, you can define custom weapons types and in each slot in craft what types are available.
-
Already done in OXCE and OXCE+, you can define custom weapons types and in each slot in craft what types are available.
Thats intertesting. I couldn't find it on wiki ruleset reference....
-
You can use the various mods as a ruleset reference. If they are using the feature you want, just check out their code and see how they did it. X-Pirates is said to use nearly every OXCE+ function, so that one is probably a great reference to sift through to find new tricks you might want to use.
-
Aa right. Oxc+ has own documentation. I have to dbl check it again. Thanks for advice
UPDATE
INDEED!
crafts:
weaponTypes: #definition of allowed weapon types in craft. Max 4 different types per slot.
- 0 #slot 1 accepts weapons with type 0. This is default.
- 0 #slot 2 accepts weapons with type 0.
- [0, 4, 13] #slot 3 accepts weapons with type 0, 4 and 13.
- 1 #slot 4 accepts weapons with type 1.
craftWeapons:
weaponType: 1 #default value 0.
..and working flawless!