• 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

Questions regarding abilities of two custom races

Hello, folks.

My name is Vert, and I'm happy to say I recently purchased Hero Lab to help me manage my characters for my d20Pro license. I've been lurking around these forums for about two weeks and I've been trying to prepare for when I needed to jump into the realm of custom content.

I've come to an impasse, and though I've tried following the directions from the "Help" link in the Editor, I feel as though I'm getting nowhere.

My question is regarding the abilities of a custom race I'm brewing up (Really they are just tweaked versions of existing race).

The tweaked Saurian is a race that is particularly sensitive to Arcane Magic, and I want to give them the ability to choose my tweaked "Sensitive" feat without meeting the prerequisites. In the "Edit Pre-req" box, I placed two scripts.

  1. if (#skillranks[skSpellcr] >=5) then
    @valid = 1
    endif
  2. if (tagis[israce.rSaurian2]) then
    @valid = 1
    endif

Could anyone help me recognize what I've done wrong in this instance? When I go to "Test Now" I get the error message "Syntax error in 'pre-requisite rule' for Thing 'fSensitive' on line 1 -> Group 'israce' not defined"

Thank you very much for your time in advance,
-Vert
 
Capitalization matters in Hero Lab's scripting language - IsRace, rather than israce.

Also, within an if () then, you need to have it be some sort of comparison - =, <, >, or <> - in this case, "<> 0".



Here's your test, re-written with a few macros and code refinements:

Code:
validif (#skillranks[skSpellcr] >= 5)
validif (#hasrace[rSaurian2] <> 0)
 
Back
Top