Junior Member
Join Date: Feb 2018
Posts: 9
|
I'm trying to code up a home-brew Faction. One vanity is challenging me:
Quote:
Code:
perform field[usrChosen1].chosen.assign[Helper.ClassSkill] How do I do a 'perform' operation assigning a tag whose name depends on usrChosen1? Or would it be better to manually do the Skill Specialization work myself? |
|
#1 |
Senior Member
Join Date: Mar 2013
Location: Melbourne, Australia
Posts: 1,089
|
Please define "specialisation"? What effect does it have?
If you mean you want the skill to become a Class Skill, then you can copy the scripts from most traits. Example using Perception skill (making it a class skill, and adding a +1 bonus): Code:
~ If we're disabled, do nothing doneif (tagis[Helper.FtDisable] <> 0) #applybonus[BonTrait,hero.childfound[skPercep],1] #makeclassskill[skPercep] Current RPG's: Pathfinder (GM), Pathfinder (Player), Gamma World (GM, Pathfinder homebrew). HeroLab: 3.5 & Pathfinder. HL User Files for PF: Greyhawk Setting, Gamma World (WIP). DM and player of D&D since 1980. |
#2 |
Junior Member
Join Date: Feb 2018
Posts: 9
|
Good question. From the Pathfinder Society Field Guide, p. 13:
Quote:
The Skill Specialization examples I saw all apply to a fixed skill. vanEagKnight (Knight of the Eagle Knights), vanEagCapt (Rank: Captain in the same org), and vanLionBla (Lion's Blade) are examples I found of this. I think vanEagCapt has a bug as it makes Perform (Oratory) a class skill, but does nothing if it already was a class skill. |
|
#3 |
Senior Member
Join Date: Mar 2013
Location: Melbourne, Australia
Posts: 1,089
|
Yes, all the traits I've seen do both.
So, what you want is: 1. Choose skill 2. If chosen skill is not a class skill apply +1 bonus 3. make class skill For step 2, you might try something like: if tagis[ClassSkill.userchosen1] <> 1 then #applybonus No guarantee this is the correct script. Also, if you've found an existing 'prestige award' that doesn't work properly I'd report it as a bug. Current RPG's: Pathfinder (GM), Pathfinder (Player), Gamma World (GM, Pathfinder homebrew). HeroLab: 3.5 & Pathfinder. HL User Files for PF: Greyhawk Setting, Gamma World (WIP). DM and player of D&D since 1980. |
#4 |
Senior Member
Join Date: May 2015
Posts: 830
|
when using field[usrChosen1].chosen you are selecting whatever is in the usrChosen1 box, and is chosen. Id throw a tagis to see if its a class skill, and then add the appropriate bonus by either giving a +1 untyped or making it a class skill.
|
#5 |
Senior Member
Join Date: May 2015
Posts: 830
|
its actually far easier than you expected:
Code:
~ If we're disabled, do nothing doneif (tagis[Helper.SpcDisable] <> 0) ~ If we're not chosen, get out now doneif (field[usrChosen1].ischosen = 0) perform field[usrChosen1].chosen.assign[Helper.SpecSkill] I grabbed that from Continuing Bardic Education, from Inner Sea Intrigue |
#6 |
Junior Member
Join Date: Feb 2018
Posts: 9
|
Wow! Cool!!!!
Thank you! I clearly don't understand Helper enough. :-) |
#7 |
|
|