Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Dwarven Dorn-Dergar Master (http://forums.wolflair.com/showthread.php?t=10143)

Umarian April 15th, 2010 05:28 PM

Dwarven Dorn-Dergar Master
 
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.

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.

Code:


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:

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


ShadowChemosh August 12th, 2010 10:51 AM

That is pretty handy actually. Thanks Mathias.


All times are GMT -8. The time now is 09:33 AM.

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