Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
lifer4700
Senior Member
 
Join Date: Nov 2011
Location: Michigan
Posts: 182

Old January 17th, 2013, 10:00 AM
I want to copy the three tags from one weapon to another.

I know timing is going to be a huge issue, since I have to perform the copy after the tags are set, but before the weapon damage is calculated.

I'm not even worried about that yet, since I'm having trouble figuring out how to do the copy in the first place.

I know tagreplace[] is likely going to make an appearance, but I don't know how to (programatically) figure out which tags exist in the first weapon. I can see them in the floating debug window. I can programatically check for a specific tag (hardcode wCritMin.20 for instance), or even check for wCritMin.?, but that won't help me assign or tagreplace on the target weapon.

I tried using idstring to get the ID, but that gives me the same error I always get when I try to read a value. Apparently, there's just something I'm missing

Quote:
Hero Lab was forced to stop compilation after the following errors were detected:
Syntax error in 'eval' script for Thing 'wL47Hand' (Eval Script '#1') on line 2
-> Error in right-side expression of assignment
Below is the code that generates this error. This is an Eval Script on a Weapon.
Code:
var sCritMin as string
sCritMin = hero.childfound[wUnarmed].tagis[wCritMin.?].idstring
debug sCritMin


My next question will have to do with the weapon being made Magic. It appears that setting these three tags manually (with script) works fine for the normal version of the weapon, but when I make it magic through the UI, the damage does not appear (blank).


P.S. My ultimate goal is to bring back the hated/loved handwraps. I have created a weapon that behaves just like any other monk melee weapon, but I want it to copy the damage, threat range, and crit multiple from the Unarmed Attack (wUnarmed).
lifer4700 is offline   #1 Reply With Quote
lifer4700
Senior Member
 
Join Date: Nov 2011
Location: Michigan
Posts: 182

Old January 17th, 2013, 10:21 AM
Well, on a side note, I just found the custom Mighty Fist type items in the Wondrous Items section, so the need for handwraps is now gone...

However, I still would like to know how to read a value or a string without using foreach.
lifer4700 is offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old January 17th, 2013, 01:43 PM
Code:
~ Pull Crit tags from unarmed strike
perform hero.child[wUnarmed].pulltags[wCritMin.?]
All tags from wUnarmed are now going to be on the the Thing that is running this script. So if you are a weapon yourself you need to either NOT have these tags on the weapon or delete them before pulling from the other thing.

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   #3 Reply With Quote
lifer4700
Senior Member
 
Join Date: Nov 2011
Location: Michigan
Posts: 182

Old January 17th, 2013, 03:29 PM
Wow, nice, thanks!
lifer4700 is offline   #4 Reply With Quote
Reply


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 07: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.