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

Old July 12th, 2013, 09:51 AM
Quote:
Originally Posted by bodrin View Post
Nevermind this worked.

Code:
~ Check for Evil or Law domain
 @valid = 0

  if (#hasability[cdLaw] <> 0) then
   @valid = 1
    else

  if (#hasability[cdEvil] <> 0) then
   @valid = 1
    endif
   endif
Just an FYI you could make this all one line of code:
Code:
~ We are valid if we have the Law or Evil Domain
validif (#hasability[cdLaw] + #hasability[cdEvil] <> 0)
Also you could then put this on the Pre-Req section:
Code:
#hasability[cdLaw] + #hasability[cdEvil] <> 0

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.
ShadowChemosh is offline   #3 Reply With Quote