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
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old February 20th, 2011, 01:50 PM
Ok, I'm having an issue with this statement as a prereq:

Code:
validif (hero.child[fWepFoc].field[usrChosen1].chosen.field[livename].text = 'Ray')
The feat is valid if the character has chosen Weapon Focus (ray).

I get an error with parsing the right side of the expression.

Thoughts?
TCArknight is offline   #1 Reply With Quote
risner
Senior Member
Volunteer Data File Contributor
 
Join Date: Jun 2010
Posts: 623

Old February 20th, 2011, 02:34 PM
You can't check strings that way.

Link to Intrinsics

use compare(str1, str2)
risner 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 February 20th, 2011, 04:20 PM
Wouldn't it just be easier to do the following:
Code:
validif (hero.tagis[WepFocus.wRay] <> 0)
Especially considering the Ray name could change to say Range Touch where the Thingid wRay won't change.

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
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old February 20th, 2011, 04:49 PM
Thanks to both of you.

The intrinsics link helps and I think I'll go with the wRay tag...

Really appreciate the help!
TCArknight 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 09:16 PM.


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