• 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

Increasing the bonus of masterwork tools

AndrewD2

Well-known member
I've got a feat that increases the bonus of masterwork tools from +2 to +4. This would be easy if it used abValue but it doesn't and I'm not really sure how to adjust it.
 
here's the code from mastwork tool, runs at Pre-Levels 10000

Code:
      ~ there's nothing we can do if nothing's been chosen
      doneif (field[usrChosen1].ischosen = 0)

      ~ get the ToolsAvail tag from the chosen skill
      perform field[usrChosen1].chosen.pulltags[ToolsAvail.?]

      ~ use that ToolsAvail tag to find the pick for our skill
      perform hero.findchild[BaseSkill,tagids[ToolsAvail.?,"|"]].setfocus

      doneif (state.isfocus = 0)

      doneif (field[gIsEquip].value = 0)

      perform focus.field[skToolMod].modify[+,2,field[thingname].text]
 
Guess I posted before I thought too much on it.

I went with:

Code:
foreach pick in hero from BaseEquip where "thingid.fToolM"
  perform eachpick.field[usrChosen1].chosen.pulltags[ToolsAvail.?]

  perform hero.findchild[BaseSkill,tagids[ToolsAvail.?,"|"]].setfocus

  doneif (state.isfocus = 0)

  doneif (eachpick.field[gIsEquip].value = 0)

  perform focus.field[skToolMod].modify[+,4,field[thingname].text]
nexteach

it works, just seems like it could be done better.
 
Back
Top