Junior Member
Join Date: Oct 2008
Posts: 26
|
I am attempting to pull tool proficiencies via the "Item Selection" and Custom Expressions. I have gotten them to show, at the same time as skills... One thing, I cannot get it to exclude tools the character already knows how to use.
Code:
(component.BaseSkill & (Reference.skArcana | Reference.skHistory | Reference.skInsight | Reference.skInvestig | Reference.skNature | Reference.skPercep) & !Helper.Proficient) | (component.Tool & ) Code:
if (field[usrChosen1].ischosen <> 0) then if (field[usrChosen1].ischosen = "ProfSkill.?" then <===(if/then/else here) perform field[usrChosen1].chosen.pulltags[ProfSkill.?] perform forward[ProfSkill.?] else perform field[usrChosen1].chosen.pulltags[ProfTool.gToo?] ~ gtool = "component.BaseEquip & (" & hero.tagids[ProfTool.?,"|"] & ")" ~ field[usrChosen1].chosen.pulltags[ProfTool.?]" endif endif ~ if (field[usrChosen2].ischosen <> 0) then ~ perform field[usrChosen2].chosen.pulltags[ProfSkill.?] ~ endif ~ perform hero.assign[ProfTool.?] |
#1 |
Senior Member
Join Date: May 2016
Posts: 608
|
You may want to look at the scripting on the monk Kensai ability:
c5CMnkPotK aka "Path of the Kensei" There is a script on there that calls the skill/tool proficiency configurable (meaning it opens a Proficiency tab) and somewhere in script indexed as #3 there are a couple of AllowTool2.xxx tags assigned to the configurable to narrow down the tools selection. If the tools are already proficient, I don't think they show up as available on the configurable tab. This is an odd way to do it, but the only example of code I have seen for tool choices that works well. Tool proficiencies are handled completely different from skill proficiencies, and are harder to deal with IMHO. |
#2 |
Junior Member
Join Date: Oct 2008
Posts: 26
|
@Dungeonguru
Thanks, I had considered doing a configurable, though I am not a huge fan of the extra tab. I think I might have found something in the way Samurai handles the bonus language. Which is the path I am exploring at the moment... Unfortunately, I seem to have broken some of my code in the process...lol Update: At least for the time being, I went the route of calling the Proficiencies configurable. I still have one issue after that, that on the Custom expression, instead of it listing all the tools, I need one entry just called "Tools". However, I am unsure as how to list that among the skills. I would like it to look like, for example, how the Samurai looks when taking a language instead of a skill. Last edited by TheBullDog; August 20th, 2018 at 01:34 AM. |
#3 |
Junior Member
Join Date: Oct 2008
Posts: 26
|
Update 2: I found a workaround... I created a new "Skill" called "Tools". If anyone knows of a cleaner way to do this, please let me know.
|
#4 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
Did you take a look at the scripting for the Skilled feat?
Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
#5 |
Thread Tools | |
Display Modes | |
|
|