Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
Umarian
Senior Member
 
Join Date: Apr 2010
Location: Lemont, IL
Posts: 320

Old 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.

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.
Umarian is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old 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
Mathias is online now   #2 Reply With Quote
Umarian
Senior Member
 
Join Date: Apr 2010
Location: Lemont, IL
Posts: 320

Old April 15th, 2010, 11:07 PM
That got it! Thank you for the help.
Umarian is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old 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
Mathias is online now   #4 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

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

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #5 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 08:29 PM.


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