• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Conditional Armor Proficiencies

DeathSheep

Well-known member
I am sure I saw someone had written a script to do this, but I can't find it. I am looking for a conditional where if the character does not have medium armor proficiency they gain it, but if the do, they instead get heavy armor proficiency. I don't have any problems with adding medium armor proficiency, but I'm not having any luck getting the heavy armor proficiency part to work.

Code:
      ~ Check for medium armor proficiency and grant it, or heavy if already there
      if (tagis[ArmProfGrp.ArmorMed] = 0) then
          perform hero.assign[ArmProfGrp.ArmorMed]
      else
          perform hero.assign[ArmProfGrp.ArmorHeavy]
      endif
 
You're checking this thing for the ArmProfGrp tag, not the hero. Change line 2 to:

if (hero.tagis[ArmProfGrp.ArmorMed] = 0) then

Super easy mistake to make, I do it all the time ;)
 
Back
Top