Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - d20 System (http://forums.wolflair.com/forumdisplay.php?f=46)
-   -   Checking if a Craft skill has focus. (http://forums.wolflair.com/showthread.php?t=61182)

Illyahr September 2nd, 2018 11:46 AM

Checking if a Craft skill has focus.
 
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?

Sendric September 2nd, 2018 04: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 September 5th, 2018 06:52 AM

Quote:

Originally Posted by Illyahr (Post 270131)
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.


All times are GMT -8. The time now is 11:22 AM.

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