View Single Post
DeathSheep
Member
 
Join Date: Jun 2018
Posts: 83

Old February 3rd, 2022, 07:29 AM
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
DeathSheep is offline   #1 Reply With Quote