• 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

Dwarven Dorn-Dergar Master

Umarian

Well-known member
Sorry if this was addressed somewhere else, tried a search on it but not coming up with results. I am trying to input the feat Dorn-Dergar Master from the Dwarves of Golarion book. I think that I have most everything entered with the exception of changing it from a two-handed weapon to a one-handed weapon.

I was trying to use the Dervish Dance as a template and change the eachpick.field for the weapon class and running into some errors. I am extremely new to this and probably making some simple mistake, but I did not see a section for changing the weapon class field in the help documents.

Code:
foreach pick in hero from BaseWep where "IsWeapon.wPcDwaDor" 
  eachpick.field[wClass.TwoHanded].value = eachpick.field[wClass.OneHanded].value
    nexteach

Thank you for the help.
 
You were close. If you see things in the square brackets that are divided by a ".", that means it's a tag, rather than a field. Here's how to delete one tag and assign the next one.

Early in the Pre-Levels phase is the timing I'd try first.

Code:
foreach pick in hero from BaseWep where "IsWeapon.wPcDwaDor"
  perform eachpick.delete[wClass.TwoHanded]
  perform eachpick.assign[wClass.OneHanded]
  nexteach
 
Having this thread linked to reminded me that a new capability was added in HL 3.6d that makes this simpler to code:

Code:
foreach pick in hero from BaseWep where "IsWeapon.wPcDwaDor"
  perform eachpick.delete[wClass.TwoHanded]
  perform eachpick.assign[wClass.OneHanded]
  nexteach
becomes:

Code:
foreach pick in hero from BaseWep where "IsWeapon.wPcDwaDor"
  perform eachpick.tagreplace[wClass.TwoHanded,wClass.OneHanded]
  nexteach
 
Back
Top