Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old April 9th, 2014, 03:04 PM
If you actually want to choose among weapon groups, why not use the existing selection abilities for weapon groups? You can choose among them by applying the fShowWhat.WeaponsGrp tag to your feat. Now ideally, you could then pull the wFtrGroup tag from the chosen selection but it looks like those aren't on the selection picks right now. I will add them for the next release, but if you want to get this working before then you'll have to check the selection and assign an appropriate wFtrGroup to the feat within your script.

Regardless of how it got there, once you have the tag on your feat, foreach through all weapons on the hero looking for an intersect. If you find one, apply both broadcast tags to the chosen weapon and let HL's internal stuff apply the bonuses.

Neither of these is tested, tweak as necessary.

Version 1 (wait for release):

Pre-levels 5000
Code:
      doneif (tagis[Helper.FtDisable] <> 0)

      doneif (field[usrChosen1].ischosen = 0)

      perform field[usrChosen1].chosen.pulltags[wFtrGroup.?]

      foreach pick in hero from BaseWep
        if (eachpick.intersect[wFtrGroup,wFtrGroup] <> 0) then
          perform eachpick.assign[Broadcast.WepFocus]
          perform eachpick.pulltags[WepFocus.?]
          perform eachpick.assign[Broadcast.WepSpec]
          perform eachpick.pulltags[WepSpec.?]
          endif
        nexteach

        perform hero.pushtags[WepFocus.?]
        perform hero.pushtags[WepSpec.?]
Version 2 (working now):

Pre-levels 5000
Code:
      doneif (tagis[Helper.FtDisable] <> 0)

      doneif (field[usrChosen1].ischosen = 0)

      if (field[usrChosen1].chosen.tagis[thingid.selWGrpAxe] <> 0) then
        perform assign[wFtrGroup.Axes]
      elseif (CHECK THE NEXT AND SO ON)
        ASSIGN THE RIGHT TAG AND SO ON
        endif

      foreach pick in hero from BaseWep
        if (eachpick.intersect[wFtrGroup,wFtrGroup] <> 0) then
          perform eachpick.assign[Broadcast.WepFocus]
          perform eachpick.pulltags[WepFocus.?]
          perform eachpick.assign[Broadcast.WepSpec]
          perform eachpick.pulltags[WepSpec.?]
          endif
        nexteach

        perform hero.pushtags[WepFocus.?]
        perform hero.pushtags[WepSpec.?]
Aaron is offline   #11 Reply With Quote
Maidhc O Casain
Senior Member
 
Join Date: Nov 2009
Location: Jonesboro, AR (USA)
Posts: 858

Old April 9th, 2014, 05:55 PM
Thanks, Aaron (and thanks to you as well, Shadow)!

That's what I was aiming for, and just not quite getting there. I'll wait for the next release, probably, as that looks much more elegant. Any idea when that will be? (Not rushing you, just looking for a ballpark).
Maidhc O Casain is offline   #12 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 12:44 AM.


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