Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old July 12th, 2013, 01:48 AM
I have a class special that requires a specific Diety and certain Domains as a pre-req. The #hasdeity[XXXXX]<>0 macro works spiffingly well however It would appear that Domain pre-requisites are an anomaly.

I tried #hasdomain[cdEvil] <> 0 but received a right side expression parsing error, presumably there isn't a has domain macro?

and then this script

Code:
~ Start out invalid
    @valid = 0

    ~ Check for Evil or Law Domain

    if (hero.childfound[HasDomain.cdEvil] <> 0) then

      ~ If so, we're valid.
      @valid = 1
      else
     
    if (hero.childfound[HasDomain.cdLaw] <> 0) then

      ~ If so, we're valid.
      @valid = 1
      endif
     endif
Error message below

HTML Code:
Syntax error in 'pre-requisite rule' script for Thing 'arWoWUnBar' on line 6
  -> Non-existent thing 'HasDomain' used by script
I referred to the hero fields and noticed that adding and removing domains altered the fields to HasAbility.cdEvil cdLaw respectively so I tried

if (hero.childfound[HasAbility.cdEvil] <> 0) which also didn't compile.

Exactly how can this be done??

Looking through the existing data I'm seeing a text placeholder stating script required (Ultimate Magic - Warrior Priest) or a huge search expression chooser that cycles through anything that grants a Domain ability (Domain Strike - Ultimate Combat) and allows the user to select a domain ability to apply effects to.

Edit: #hasability[cdLaw] <> 0 does work.

Dormio Forte Somnio


Community Created Resources :
Data Package Repositories :
d20pfsrd
Custom Character Sheets
Community Server Setup (Packs)

Hero Lab Help- Video Tutorials and Pathfinder FAQ

Created by the community for the community

Last edited by bodrin; July 12th, 2013 at 01:54 AM. Reason: the hasability macro does work!!
bodrin is offline   #1 Reply With Quote
 


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 01:05 AM.


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