Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
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 HTML Code:
Syntax error in 'pre-requisite rule' script for Thing 'arWoWUnBar' on line 6 -> Non-existent thing 'HasDomain' used by script 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!! |
#1 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
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 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
|
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Code:
~ We are valid if we have the Law or Evil Domain validif (#hasability[cdLaw] + #hasability[cdEvil] <> 0) 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. |
|
#3 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Quote:
Code tidying usually falls by the wayside once something is working as it should, but thanks for the pointer. 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
|
|
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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. |
|
#5 |
|
|