OpenXcom Forum
Modding => Help => Topic started by: The Martian on October 21, 2020, 10:22:41 am
-
I would like to limit which kinds of X-Com soldiers can equip certain types of armor.
How is this accomplished?
I'll borrow some images from The X-Com Files (https://openxcom.org/forum/index.php/board,21.0.html) to create a quick visual example of what I mean.
Lets say the player is able to obtain three different kinds of X-Com soldiers.
Type 1:
Can equip all but 3 armors in the game.
(https://openxcom.org/forum/index.php?action=dlattach;topic=8685.0;attach=51661)
Type 2:
Can equip those 3 armors and all others.
(https://openxcom.org/forum/index.php?action=dlattach;topic=8685.0;attach=51662)
Type 3:
Can only equip the 3 armors that Type 1 cannot.
(https://openxcom.org/forum/index.php?action=dlattach;topic=8685.0;attach=51663)
Another example is dogs should only be able to wear armor designed for a dog and not be able to wear human armor.
(https://openxcom.org/forum/index.php?action=dlattach;topic=8685.0;attach=51664)
Even if they technically have the right amount of limbs to attempt wearing it. ::)
(https://openxcom.org/forum/index.php?action=dlattach;topic=8685.0;attach=51665)
-
By specifying soldier types:
- type: STR_PERSONAL_ARMOR_UC
units:
- STR_SOLDIER
- type: STR_DOGE_ARMOR
units:
- STR_DOG
You can also list multiple soldier types:
- type: STR_ASTRAL_ARMOR_UC
units:
- STR_SOLDIER
- STR_HYBRID
- STR_MUGGLE_AI
- STR_DOG
All examples are real, taken from The X-Com Files.
-
Thank you! ^_^
This combined with Soldier Transformation (https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Soldier_Transformation) looks pretty interesting.