Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
Illyahr
Senior Member
 
Join Date: Feb 2013
Posts: 196

Old September 2nd, 2018, 12:46 PM
As title.

Code:
var result as number

foreach pick in Hero from BaseSkill where "AllCraft"
  if (each.tagis[Helper.SkillFocus] <> 0) then
    result += 1
  endif
nexteach

if (result >= 1) then
  @valid = 1
endif
Getting an invalid tag error. What should I be using?
Illyahr is offline   #1 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 2,593

Old September 2nd, 2018, 05:20 PM
Don't remember offhand. Take the feat, choose a skill, then take a look at the tags on the skill. Should be obvious I think.

Also, I'm pretty sure you can't just use "AllCraft". There should be two parts to that.
Sendric is offline   #2 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 2,593

Old September 5th, 2018, 07:52 AM
Quote:
Originally Posted by Illyahr View Post
As title.

Code:
var result as number

foreach pick in Hero from BaseSkill where "AllCraft"
  if (each.tagis[Helper.SkillFocus] <> 0) then
    result += 1
  endif
nexteach

if (result >= 1) then
  @valid = 1
endif
Getting an invalid tag error. What should I be using?
Looks like the Helper tag you used is actually correct so the error may be stemming from "AllCraft". Here's how I would rewrite this:

Code:
foreach pick in Hero from BaseSkill where "Helper.SkCatCraft"
  validif (eachpick.tagis[Helper.SkillFocus] <> 0)
nexteach
You don't need to bother with the variable. It just adds an extra step.
Sendric is offline   #3 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 05:02 PM.


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