I have never been one to enter duplicate data when once is all that is needed. On CSI there is an area to show what gear you are wearing in a particular slot, and as the armor is already selected on the Start page for the purpose of determining the character's AC, I didn't like having to enter it again in the worn armor section. Instead, in place of typing the name of the armor again, I use the following formula:
So, if no armor is selected at all, leave the worn armor area blank. If is selected, see if the name override is blank. If the override is blank, use the selected armor. If the override is not blank, use that instead.
I just thought I would share this for others who may be interested. This does not take into account any +s of magical armor, but that shouldn't be to hard to add if needed.
Update:
This updates the code to handle positive armor bonuses. If you are so unlucky as to be wearing armor with a negative bonus, you have bigger problems than this, though it can be handled with more conditionals. I am a neophyte excel coder and haven't written code much at all in over 10 years, so I am sure there are better/more elegant ways to do this.
=IF(StartArmorShieldArmor="Select...","",IF(Y206="",StartArmorShieldArmor,Y206))&IF(StartArmorShieldArmorBonus="","","+"&StartArmorShieldArmorBonus)
Update #2:
This change supports a positive or negative bonus, including if a override armor name is used (something that is not handled if =ArmorName is used instead). Note that the only space that should be present in this entire line of code is the space before the +. ENWorld adds spaces in long strings of text whether they are wanted or not.
=IF(StartArmorShieldArmor="Select...","",IF(Y206="",StartArmorShieldArmor,Y206))&IF(StartArmorShieldArmorBonus>0,
" +"&StartArmorShieldArmorBonus,IF(StartArmorShieldArmorBonus<0," "&StartArmorShieldArmorBonus,""))
So, if no armor is selected at all, leave the worn armor area blank. If is selected, see if the name override is blank. If the override is blank, use the selected armor. If the override is not blank, use that instead.
I just thought I would share this for others who may be interested. This does not take into account any +s of magical armor, but that shouldn't be to hard to add if needed.
Update:
This updates the code to handle positive armor bonuses. If you are so unlucky as to be wearing armor with a negative bonus, you have bigger problems than this, though it can be handled with more conditionals. I am a neophyte excel coder and haven't written code much at all in over 10 years, so I am sure there are better/more elegant ways to do this.
=IF(StartArmorShieldArmor="Select...","",IF(Y206="",StartArmorShieldArmor,Y206))&IF(StartArmorShieldArmorBonus="","","+"&StartArmorShieldArmorBonus)
Update #2:
This change supports a positive or negative bonus, including if a override armor name is used (something that is not handled if =ArmorName is used instead). Note that the only space that should be present in this entire line of code is the space before the +. ENWorld adds spaces in long strings of text whether they are wanted or not.
=IF(StartArmorShieldArmor="Select...","",IF(Y206="",StartArmorShieldArmor,Y206))&IF(StartArmorShieldArmorBonus>0,
" +"&StartArmorShieldArmorBonus,IF(StartArmorShieldArmorBonus<0," "&StartArmorShieldArmorBonus,""))
Last edited: