Junior Member
Join Date: Nov 2013
Posts: 14
|
Hello! I am trying to deal with a boon that allows for circumstance bonus to ability checks on a situational basis. (e.g. +1 circumstance bonus on any Charisma based checks with any dwarf...)
I have found how to add a permanent bonus like this (non-situational) as well as situational bonuses to individual skill checks (thanks to ShadowChemosh and his Adjustments Addon) but not both. I am not much of a programmer / coder and I'm stuck.... I am not sure how to get the #situational macro to acknowledge fields associated with the tags drawn from the pulltags command. Quote:
|
|
#1 |
Junior Member
Join Date: Nov 2013
Posts: 14
|
After some sleep I've come up with something that seems less messed up, but still have the same issue of how to tell the macro what field to use...
Quote:
|
|
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Please write out the text of the ability you're trying to code. I don't understand what you're trying to accomplish.
|
#3 |
Junior Member
Join Date: Nov 2013
Posts: 14
|
Apologies for being unclear. It is an adjustment as opposed to an ability.
The boon reads... Quote:
|
|
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
I will try and add a Situational Bonus adjustment that affects all things of a ability score for the next release of my Adjustments Addon.
Until then I would just use "Skill Bonus, Situational" adjustment and add it 3 times so you can select "Bluff, Diplomacy, and Intimidate". Fill in your text of "+1 circumstance vs any citizen of Andoran" and boom your done! Or you could make an adjustment that foreach loops through all the different Cha based skills. The fun is to make sure you cover any skill that gets changed from say a Wisdom to Cha. You can see THIS post for info on that. Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Hmm maybe I should read slower. You basically have the code above... You just have maybe too much.... I have no access to HL so no way to test the below but I think its all good.
Code:
~ If we are not on get out now! doneif (field[pIsOn].value <> 1) var nChaSkill as number foreach pick in hero from BaseSkill ~ set Cha based skill flag to FALSE nChaSkill = 0 ~ If skill override tag to Cha is found then set flag to TRUE if (eachpick.tagis[SkillOver.aCHA] <> 0) then nChaSkill = 1 ~..else check the linkage to see if Cha skill then set flag to TRUE elseif (eachpick.linkage[skillattr].tagis[thingid.aCHA] <> 0) then nChaSkill = 1 endif ~ If we found a valid Cha based skill set the situational text If (nChaSkill <> 0) Then #situational[eachpick,field[pDuration].text,field[pSource].text] Endif nexteach Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#6 |
Junior Member
Join Date: Nov 2013
Posts: 14
|
The above code works fine for Charisma skills. I'm going to try to see if I can adapt it to accept different abilities. Thank you much as this answers my initial questions.
|
#7 |
|
|