Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - D&D 5th Edition SRD (http://forums.wolflair.com/forumdisplay.php?f=89)
-   -   Armor Proficiency (http://forums.wolflair.com/showthread.php?t=58342)

FCWesel May 6th, 2017 01:21 PM

Armor Proficiency
 
Any way to give proficiency in a specific set of armor, like the way that Weapon Proficiency does in the adjustment tab?

Meaning, is there a way to make a character proficient with chain shirt if the character has Chain Shirt on his armor list, but isn't actually proficient with it?

MNBlockHead July 22nd, 2018 09:05 PM

I would like to know this as well.

daplunk July 22nd, 2018 11:47 PM

Should be possible as you can do this with monsters. If you have a look at the script for a monster in the MM Community Pack you should be able to find code where this has been done.

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.

ShadowChemosh July 23rd, 2018 01:59 PM

Quote:

Originally Posted by dungeonguru (Post 268382)
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


As an FYI instead of doing string manipulation you can just use the tagids[] function directly in the foreach loop.

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 helper proficient tag
      foreach pick in hero where field[pChosen].chosen.tagids[IsArmor.?]
        perform eachpick.assign[Helper.Proficient]
        nexteach

You can read more about tagids[] on the HL wiki.


All times are GMT -8. The time now is 01:40 AM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.