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

Old February 23rd, 2017, 11:12 AM
Quote:
Originally Posted by Sendric View Post
In attempting to make all of the Factotum skills class skills, I appear to have done something that HL very much doesn't like. Does anyone know an easy way to set all skills as class skills? I tried this method, but the line with pushtags causes the program to crash, so that's not terribly helpful:

Code:
~ All skills are class skills

foreach pick in hero from BaseSkill where "!Helper.SkCat?"
  perform eachpick.pulltags[ClassSkill.?]
  perform pushtags[ClassSkill.?]
nexteach
PS Yes, I have reported this to LW.
Most likely cause you overwhelmed HL with several hundred thousand tags!

By the above logic you pull tag 1 then push to yourself. Now Tag 1 is assigned Twice to your Thing. Then you get tag 2 and push tag 1 (x2) and 2 to yourself again. Then you get tag 3 and push tag 1,2,3 to yourself again. Etc etc etc....

Try this instead:
Code:
~ All skills are class skills
foreach pick in hero from BaseSkill where "!Helper.SkCat?"
  perform eachpick.pulltags[ClassSkill.?]
nexteach

~ Push all the tags One time. 
perform hero.pushtags[ClassSkill.?]

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.

Last edited by ShadowChemosh; February 23rd, 2017 at 11:14 AM.
ShadowChemosh is offline   #617 Reply With Quote