• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Legendary Gunslinger: Slinger's Quirk

CorzatTheGray

Well-known member
So, this weekend's project has been to enter the changes presented in Legendary Games's Legendary Gunslingers into HL as an archetype for the Gunslinger.

I'm having some issues in figuring out how to implement a new class special introduced in the book called Slinger's Quirk so that the drop down selection of skills is limited to only CHA and INT based skills.

Slinger's Quirk said:
At 2nd level, a legendary gunslinger selects two Charisma or Intelligence based skills; she may choose to use her Wisdom modifier in place of her Charisma or Intelligence when determining her bonus for those skills.

I've gotten everything else figured out... just not the tag expression that would only show those skills linked to CHA and INT.

Any help would be appreciated.

Thanks in advance.
 
I believe the SkillAbil tags show the final ability used, but that won't help if you're hoping to change that.

I think there is a linkage skills start with, let me look into that.
 
Here is a script I found which might do the trick:

PostLevel 10000
Code:
        foreach pick in hero from BaseSkill
          ~ If we are a Strength based skill make it a Dex based
          if (eachpick.tagis[SkillOver.aSTR] <> 0) then
            perform eachpick.tagreplace[SkillOver.?,SkillOver.aDEX]
          elseif (eachpick.linkage[skillattr].tagis[thingid.aSTR] <> 0) then
            perform eachpick.assign[SkillOver.aDEX]
            endif
          nexteach

Change attributes as needed
 
Now that I think on it, I may not have been clear enough. You'll need to foreach through the skills on the hero, find the ones which meet your requirements, and build a tag expression from each, then plug that into your candidate expression.
 
Thanks Aaron!

I finally had a chance to come back to look at this tonight...

I had the class special applying the attribute switch already, but that was a good find on how to accomplish the switch for all skills...

This class special requires the selection of 2 skills from the list filtered by INT or CHA-based skills to then apply the WIS mod to them.

I figured out the custom expression to filter the selection list for usrCandid1 and usrCandid2 fields as:
Code:
component.BaseSkill & (SkillAbil.aCHA | SkillAbil.aINT)

Then my scripts for doing the switch on the selected skills is:
Code:
Pre-levels   10000

      ~ If we're disabled, do nothing
      doneif (tagis[Helper.FtDisable] <> 0)

      doneif (field[usrChosen1].ischosen = 0)

      perform field[usrChosen1].chosen.assign[SkillOver.aWIS]
And then a second script using usrChosen2

The fun part was scavenging an Eval Rule to use...
Code:
Validation Phase   10000

Must Choose a Charisma or Intelligence skill


      validif (field[usrChosen1].ischosen = 0)

      validif (field[usrChosen1].chosen.tagis[SkillOver.aCHA] <> 0)
      validif (field[usrChosen1].chosen.tagis[SkillOver.aINT] <> 0)

      ~ If it has a normal linkage to Charisma or Intelligence it also qualifies.
      if (field[usrChosen1].chosen.islinkage[skillattr] <> 0) then
        validif (field[usrChosen1].chosen.linkage[skillattr].tagis[thingid.aCHA] <> 0)
        validif (field[usrChosen1].chosen.linkage[skillattr].tagis[thingid.aINT] <> 0)
        endif
And again a second script using usrChosen2.

So far it seems to be working...
 
Does that work in conjunction with other things which switch the ability score used for a skill before or after your script runs?
 
Does that work in conjunction with other things which switch the ability score used for a skill before or after your script runs?

I haven't tested that thoroughly enough yet...

But after reading this question I did a relatively quick search for something that would adjust the ability of INT or CHA skills... and it was situational for certain aspects of Diplomacy, Bluff or Intimidate and if it wasn't situational it was an adjustment to WIS in any case so I didn't find too much that affected it.

That's not to say that there isn't something out there that would and does affect it, I just haven't run across it yet.

I have it working in the vacuum of its own existence for right now.

I'm running into new challenges as I try to enter this class and I'm finding truth to the words found somewhere around here on the boards or in the help files that entering in a whole class is one of the hardest things to do in the editor.
 
Back
Top