• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Trying to make scaled Dragonborn breath

thundershot

Well-known member
For the life of me, I can't figure out how to turn this into a special ability. I'm terrible at scripting, and I can't find a monster to copy it from. I'm trying to make a 4E Dragonborn in Pathfinder in HL based on someone else's design. Here's what I'm trying to accomplish.


Breath Weapon: Dragonborn can use a breath weapon three times per day. The breath weapon is a line with a range of 5 feet plus 5 feet per Hit Die, to a maximum of 100 feet. It inflicts 1d6 damage plus 1d6 per 3 HD the Dragonborn possesses. This damage may be acid, cold, electricity, or fire; the specific type is chosen at creation and cannot be changed afterward.


Thanks
Chris
 
Try looking at the Breath weapon that's used by the half-dragon template - that gains 1d6/HD, rather than 1d6/3HD, but everything else sounds the same.
 
Okay, I tried that, but I'm not sure which fields to alter in the script. I tried changing something and it gives me errors. Here's the field:



var energy as string
energy = "(energy)"
if (root.tagcount[BloodEner.?] <> 0) then
energy = root.tagnames[BloodEner.?]
endif

~our value is our total HD - our class levels
field[abValue].value += herofield[tHitDice].value - herofield[tLevel].value
if (field[abValue].value <= 0) then
perform assign[Helper.SpcDisable]
endif

field[abSumm].text = field[trkMax].value & "/day, Breath Weapon deals " & field[abValue].value & "d6 " & energy & " damage, DC "& field[abDC].value & "."





And then the other is here:


var HD as number
HD = herofield[tHitDice].value - herofield[tLevel].value
field[abDC].value += 10 + round(HD / 2,0,-1) + hero.child[aCON].field[aModBonus].value



I can see that I need to make it so that the total character level affects it instead of just racial HD, but I tried removing that little part and it errored on me.
 
Would you mind posting the change you made - show me exactly what differs between the original and the new version? That would help me diagnose the error you've run into.
 
var energy as string
energy = "(energy)"
if (root.tagcount[BloodEner.?] <> 0) then
energy = root.tagnames[BloodEner.?]
endif

~our value is our total HD - our class levels
field[abValue].value += herofield[tHitDice].value
if (field[abValue].value <= 0) then
perform assign[Helper.SpcDisable]
endif

field[abSumm].text = field[trkMax].value & "/day, Breath Weapon deals " & field[abValue].value & "d6 " & energy & " damage, DC "& field[abDC].value & "."



and the DC one



var HD as number
HD = herofield[tHitDice].value
field[abDC].value += 10 + round(HD / 2,0,-1) + hero.child[aCON].field[aModBonus].value



the DC is working. What I have a problem with is getting the program to actually put the true damage to the breath weapon on the sheet instead of "1d6 every 3 levels". Maybe if it was in the attacks section...

Also, I can't seem to find where to put which energy type the PC chooses.
 
Last edited:
Back
Top