Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
Illyahr
Senior Member
 
Join Date: Feb 2013
Posts: 357

Old April 8th, 2016, 07:10 AM
I'm programming in the Complete Adventurer PrC's for the community files and I was wondering if you could give me some help on something.

Versions of the Animal Lord Prestige Class gain natural weapons while they are using their Wild Aspect ability. I've got it coded properly to show up only when active, but the damage increases at higher levels and I can't get that to show up properly. This is what I have so far:

Animal Lord - Apelord
Wild Aspect

[Eval, Post Levels, 10000]

var level as number
level = field[xTotalLev].value

if (level < 7) then
perform hero.child[wClaw].assign[wMain.1d4_4]
perform hero.child[xRend].assign[User.2d4_6]
else
perform hero.child[wClaw].assign[wMain.1d6_5]
perform hero.child[xRend].assign[User.2d6_104]
endif

As far as I can see, that should work. However, the damage keeps showing up as - + Str Mod instead of 1d4+Str Mod or 1d6+Str Mod. When I adjusted the size of the PC, it shows that the damage is showing up, but the hero is too small to do damage with it. Any ideas?
Illyahr is offline   #1 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,144

Old April 8th, 2016, 10:05 AM
I don't think I would do it that way. Instead, I would use a bootstrap condition on them and then assign all the tags I needs. The biggest reason for this is for what happens if your character already has claws or rend from another source? HL doesn't know which one you want to assign those tags to unless you use a foreach loop to find a unique tag. We should avoid foreach loops if we can to cut down on processing time.

For example,

Code:
bootstrap: wClaw

assigned tags:
Helper.NatPrimary (if a primary natural weapon)
Helper.NatSizeDmg (this tag allows the weapon damage to change with size)
wMain.1d4_4

condition: 
count:Classes.Apelord<7 (use whatever the Classes tag you created is)
Let me know if this helps.
Sendric is offline   #2 Reply With Quote
Illyahr
Senior Member
 
Join Date: Feb 2013
Posts: 357

Old April 8th, 2016, 11:28 AM
Can you apply two conditions at the same time? It's already bootstrapped to Wild Aspect. I already have:

fieldval:hIsOn1 = 1

This makes sure the claw attacks only show up when the Wild Aspect effect is active.
Illyahr is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 8th, 2016, 12:40 PM
Quote:
Originally Posted by Illyahr View Post
Can you apply two conditions at the same time? It's already bootstrapped to Wild Aspect. I already have:

fieldval:hIsOn1 = 1

This makes sure the claw attacks only show up when the Wild Aspect effect is active.
Yes you can do "or" using "|" or "and" using "&":

Code:
fieldval:hIsOn1 = 1 & count:Classes.Apelord >= 7

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   #4 Reply With Quote
Illyahr
Senior Member
 
Join Date: Feb 2013
Posts: 357

Old April 8th, 2016, 01:13 PM
Success! Thanks guys. The rest of it is simple scripts and then copy & paste to make the other versions.
Illyahr is offline   #5 Reply With Quote
Reply

Thread Tools
Display Modes

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


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