aliens

Author Topic: [Answered][Question] Is there a way to "apply" minRank to items/armors  (Read 1965 times)

Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
Hi,

I wonder if there is a possibility to apply some kind of "minRank" to items and armors?
Would be useful for example to make powerful weapons/armors require to be sergent or captain to use/wear it

No idea if it's possible to implement this constraint by script, if some of you have ideas how to deal with that request, I'm clearly interested


« Last Edit: April 09, 2023, 01:39:13 pm by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9084
    • View Profile
Re: [Question] Is there a way to "apply" minRank to items/armors
« Reply #1 on: April 09, 2023, 01:39:00 pm »
Items:

1/ wear/equip it - no
2/ use it - partially via soldier skills + Y-scripts: https://openxcom.org/forum/index.php/topic,7974.0.html
3/ make it do no damage, etc. - yes, via Y-scripts, e.g. hitUnit/damageUnit hooks

Armors:

1/ wear it - no
2/ make it "unusable" - theoretically you can give it a negative health regeneration based on rank... so low rank soldiers will die or fall unconscious when using it



PS:
In general, we don't support any kind of Soldier Classes concept in OXC/OXCE.
I don't believe in such concept, classes belong into RPG games.
If you want soldier classes, you'll be better off modding Firaxis-XCOM.

The closest you can get is misuse of soldier types/races + use of soldier skills as developed by Vigilo Confido mod: https://openxcom.org/forum/index.php/topic,8007.0.html

Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
Re: [Answered][Question] Is there a way to "apply" minRank to items/armors
« Reply #2 on: December 24, 2023, 05:13:11 pm »
Thanks for your answers!