PDA

View Full Version : Dwarven Dorn-Dergar Master


Umarian
April 15th, 2010, 05:28 PM
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.

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.

Mathias
April 15th, 2010, 08:22 PM
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.


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

Umarian
April 15th, 2010, 11:07 PM
That got it! Thank you for the help.

Mathias
August 12th, 2010, 08:26 AM
Having this thread linked to reminded me that a new capability was added in HL 3.6d that makes this simpler to code:


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

becomes:


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

ShadowChemosh
August 12th, 2010, 10:51 AM
That is pretty handy actually. Thanks Mathias.