• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Checking if a Craft skill has focus.

Illyahr

Well-known member
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?
 
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.
 
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.
 
Back
Top