Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Suggestions please with mutating tag ID (http://forums.wolflair.com/showthread.php?t=61927)

wrs92103 January 5th, 2019 08:52 PM

Suggestions please with mutating tag ID
 
I'm trying to code up a home-brew Faction. One vanity is challenging me:

Quote:

Your studies have paid off. You become specialized in one of the following skills: Knowledge (arcana), Knowledge (planes), Linguistics, Spellcraft, or Use Magic Device.
I can make a drop-down to pick one of the five skills, and I can see how to manipulate the field:

Code:

perform field[usrChosen1].chosen.assign[Helper.ClassSkill]
What I'm not getting is that the code above looks like it's adding a tag. For Skill Specialization, it looks like each skill specialization has its own tag name. Linguistics is SpecSkill.skLinguistics and Spellcraft is SpecSkill.skSpellcr and so on. So what was 'Helper.ClassSkill' above needs to be 'SpecSkill' plus the end of the choice name.

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?

Dami January 5th, 2019 09:06 PM

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]


wrs92103 January 5th, 2019 09:56 PM

Quote:

Originally Posted by Dami (Post 274705)
Please define "specialisation"? What effect does it have?

Good question. From the Pathfinder Society Field Guide, p. 13:
Quote:

Many of the prestige awards and recognitions or resources that faction members purchase allow a character to become specialized in a skill. When a PC becomes specialized in a skill, that skill immediately becomes a class skill for her. If the PC gains that skill as a class skill from any other source (either before or after you purchase the prestige resource), she gains a +1 competence bonus on those skill checks.
So we add +1 OR we get it as a class skill. All the traits I looked at are "and"s. You get +1 trait bonuses AND something becomes a class skill.

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.

Dami January 6th, 2019 02:07 AM

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.

Minous January 6th, 2019 03:18 AM

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.

Minous January 6th, 2019 03:34 AM

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]

Post attributes 10005.

I grabbed that from Continuing Bardic Education, from Inner Sea Intrigue

wrs92103 January 6th, 2019 08:09 AM

Wow! Cool!!!!

Thank you!

I clearly don't understand Helper enough. :-)


All times are GMT -8. The time now is 04:25 AM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.