Thread: Hero.Epic
View Single Post
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old December 2nd, 2016, 03:14 PM
I will take a look maybe this Sunday. Just won't have time before then. Sorry.

Allot of what I see is small syntax issues that would cause HL to freak out on. The "concept" I think is ok but the code syntax is off.

This:
Code:
hero.findchild[ClassList,fieldval:cIndex = X].setfocus
Needs to become this:
Code:
hero.findchild[ClassList,"fieldval:cIndex = 1"].setfocus
This script. I have no idea what your trying to do. SORRY! It looks like you trying to change a field into a tag and assign that as a string to the pick? If that is true you can't do that.
Code:
var index as string
index = eachpick.field[cIndex].value
index = "cIndex" & index
perform eachpick.assign[User.(index)]
findchild[] is almost as bad as foreach loop. The only difference is that you only ever get back "ONE" Pick instead of many. So the first Pick you get back better be the one you need.

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   #31 Reply With Quote