Member
Join Date: Jun 2018
Posts: 83
|
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 |
#1 |
Senior Member
Join Date: Sep 2017
Posts: 600
|
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 Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! |
#2 |
Member
Join Date: Jun 2018
Posts: 83
|
That did the trick. Thanks! I found a few other places where I made that same error too!
|
#3 |
|
|