Eval Script for Charges based on Stat Modifier
Im trying to create a "rage-like" ability that follows pathfinders basis of rounds/day vs the times/day, and base it on con modifier. thats the problem im having.
Code:
~ Available when not lawful - otherwise we don't meet requirements Code:
total = 2 + (level * 2) + hero.child[aCON].field[Bonus].value Thoughts and help would be useful. Thanks! |
Quote:
Code:
total = (level * 2) PS. "perform" has replaced the need for a variable. For example: Code:
var result as number Code:
if (hero.tagis[Alignment.Lawful] <> 0) then |
I had it previously as two lines. No difference. I'll check the timing tonight when I get home.
|
Alright. I took a look at this. First off, looks like you took the script from the Barbarian Rage which runs post-levels/10000. That's too early to determine your CON bonus. However, if you move the whole script to post-attributes then nothing else works. So, I recommend you move that last piece to a new script.
Second, you want to use the field "aBonus" instead of "Bonus". The former is your CON bonus before modifiers, while the latter is used for untyped bonuses to your CON score. Post-Attributes/15000 Code:
~ We can Fury based on our constitution + level rounds per day |
Thanks. Especially for the Show the Debug fields hint. I always forget about that.
|
All times are GMT -8. The time now is 01:27 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.