Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: METAL_ARMOR_LEVELS/ARMORLEVEL question  (Read 576 times)

Tachytaenius

  • Bay Watcher
    • View Profile
METAL_ARMOR_LEVELS/ARMORLEVEL question
« on: November 05, 2022, 05:03:02 am »

Is it possible to get the effective ARMORLEVEL of an armour item with METAL_ARMOR_LEVELS to be 1 (leather) when not metal, and 3 (plate) when metal? Instead of 1/2, leather and chain.
If not, does it matter? Does armour level even do anything besides determine whether to wear like civilian clothing?
Is effective armour level stored anywhere? I could hack it if so.
Logged

Tachytaenius

  • Bay Watcher
    • View Profile
Re: METAL_ARMOR_LEVELS/ARMORLEVEL question
« Reply #1 on: November 05, 2022, 06:11:09 am »

I can see there probably is no solution, so why is the game like this?
Logged

Tachytaenius

  • Bay Watcher
    • View Profile
Re: METAL_ARMOR_LEVELS/ARMORLEVEL question
« Reply #2 on: November 05, 2022, 07:36:29 am »

I suppose I could split items into different variants with set ARMORLEVELs if it turns out ARMORLEVEL has any importance.
Logged

peasant cretin

  • Bay Watcher
  • [MEANDERER][GNAWER]
    • View Profile
Re: METAL_ARMOR_LEVELS/ARMORLEVEL question
« Reply #3 on: November 09, 2022, 09:32:49 pm »

Does armour level even do anything besides determine whether to wear like civilian clothing?
It's mainly useful for separating what melee and range units will spawn/generate with item pop-wise. Melee will use any, but range units are limited: they will never show with hand/foot/pants armor higher than ARMORLEVEL:1.

I suppose I could split items into different variants with set ARMORLEVELs if it turns out ARMORLEVEL has any importance.
This is your solution.

Remove the METAL_ARMOR_LEVELS token and replace it with ARMORLEVEL:1, which is what I have:
Code: [Select]
[ITEM_PANTS:ITEM_PANTS_LEGGINGS]
[NAME:leggings:leggings]
[CHAIN_METAL_TEXT]
[ARMORLEVEL:1] ^pcrtn: 1 means game will let archers use mail
METAL_ARMOR_LEVELS ^pcrtn: no longer needed as leather isn't being used
[LBSTEP:MAX]
[SHAPED]
[LAYER:OVER] ^pcrtn: was armor
[COVERAGE:100]
[LAYER_SIZE:15]
[LAYER_PERMIT:30]
[MATERIAL_SIZE:5]
SCALED ^pcrtn: removed
[METAL]
LEATHER ^pcrtn: removed
BARRED ^pcrtn: removed
[STRUCTURAL_ELASTICITY_CHAIN_METAL]
« Last Edit: November 09, 2022, 09:34:29 pm by peasant cretin »
Logged