Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Alright, so I'm working on some feats that I can currently divide into 2 groups for this question.
Part 1 - The easy one I'm working on a feat that gives extra bonuses based on what a flying creatures maneuverability is, but I can't figure out how to target maneuverability in the if statement. Part II - the not so easy ones I'm also inputting a set of 3 feats that do something different based on the domains you have. I had a couple different ideas, but I haven't tried either yet, because both will require a lot of typing. Idea #1 - If elseif statements. Basically doing eval scripts for each one that will have a bunch of if/elseif statements to get all the info in. I'm sure this would work, but it just doesn't seem like the best way. Idea #2 - Ability bootstrapping. This idea is to great an individual ability that matches for each domain and then bootstrap them to the feat with conditions that check for what domains they have. Personally I think this will likely be the easiest one, but I'm not sure it's feasible. And finally a question about design philosophy. When creating a new race, if it has spell-like abilities similar to that of a gnome (where in the rules they're under the ability Gnome Magic) should you create the main ability and then bootstrap the SLAs to that and then bootstrap the main ability to the race, or do each one individually to the race? Thanks, Andrew |
#1 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Ok, I figured out the maneuverability part, for anyone interested here's the code I used.
Code:
if (hero.child[xFly].tagis[Maneuver.Good] <> 0) then perform hero.child[xFly].assign[Maneuver.Perfect] elseif (hero.child[xFly].tagis[Maneuver.Average] <> 0) then perform hero.child[xFly].assign[Maneuver.Good] elseif (hero.child[xFly].tagis[Maneuver.Poor] <> 0) then perform hero.child[xFly].assign[Maneuver.Average] elseif (hero.child[xFly].tagis[Maneuver.Clumsy] <> 0) then perform hero.child[xFly].assign[Maneuver.Poor] endif Andrew |
#2 |
Spy
Join Date: Jan 2011
Location: Van Nuys, California
Posts: 1,220
|
Andrew, just a pointer. With what you have above, you will have both maneuverability classes assigned to a creature, when you obviously only want the better of the two. Delete the tag identified maneuverability class also. So the first if statement will have perform hero.child[xFly].delete[Maneuver.Good], and so forth for the other if statements.
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
So if one Thing assigns "Average" and different Thing assigns "Perfect" then xFly calculates the Fly Skill based on "Perfect" then. Just an FYI... 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. |
|
#4 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
If it'll be better, its not that big of a deal to add the delete statements in.
|
#5 |
Spy
Join Date: Jan 2011
Location: Van Nuys, California
Posts: 1,220
|
Wasn't aware of that, go figure. I've been deleting them.
|
#6 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Anyone on Question 2 at the beginning? I'm still working on that one.
|
#7 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
I'm sorry, what is question 2? Both of your proposed methods seem reasonable to me. Are you having trouble getting them to work? If so, please give some more details.
As for design philosophy, I think we generally bootstrap the racial SLAs directly to the race rather than through an intermediary. |
#8 |
Senior Member
Join Date: Dec 2010
Location: Northeast Quadrant
Posts: 128
|
AndewD2, I just wanted to point out I was working on the very same thing. I wracked my brain for a good long while. Finally I checked here to discover you'd solved that same question months ago.
Thank you! |
#9 |
|
|