Author Topic: How to only allow X-Com soldiers to wear specific armor types and not others?  (Read 1469 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
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 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.


Type 2:
Can equip those 3 armors and all others.


Type 3:
Can only equip the 3 armors that Type 1 cannot.



Another example is dogs should only be able to wear armor designed for a dog and not be able to wear human armor.


Even if they technically have the right amount of limbs to attempt wearing it.  ::)
« Last Edit: October 21, 2020, 10:27:54 am by The Martian »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11452
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
By specifying soldier types:

Code: [Select]
  - type: STR_PERSONAL_ARMOR_UC
    units:
      - STR_SOLDIER

Code: [Select]
  - type: STR_DOGE_ARMOR
    units:
      - STR_DOG

You can also list multiple soldier types:

Code: [Select]
  - 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.

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Thank you!  ^_^

This combined with Soldier Transformation looks pretty interesting.