dungeonguru |
July 23rd, 2018 03:31 AM |
It's not done the same as weapons that I can see, weapons have a WepProf.XXX tag that you assign to the hero, this is done at the Race level or at the Class level. Armor is only assigned in the broad groups (light, medium, heavy, shields). However, you can manipulate the Helper.Proficient tag if you do it early enough.
For an adjustment you could do the following (pre-levels/10000) - if the Show Menu option is "Current Armor" it only shows armor that you have bought, but you could modify it with a list of all armors if you know how to construct the selection lists.
Code:
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~ If we've not chosen anything, get out
doneif (field[pChosen].ischosen = 0)
~ Assign the identity tag for the proficiency
var id as string
id = field[pChosen].chosen.idstring
foreach pick in hero where "IsArmor." & id
perform eachpick.assign[Helper.Proficient]
nexteach
This means that if you don't have chain shirt in your normal armor proficiencies, but you have a chain shirt in inventory you could pick the chain shirt and grant yourself proficiency in it.
|