• 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

need help with racial ability

ashuramarsh

Well-known member
hi again,

I am trying to add a radial ability that grants a bonus to an attribute based on your level/HD. I mean of course you get like a +1 at level 6 and so on. I am having issues with it, I know partly it will involve eval scripts, but utterly lost on how to do that.

I wish there was an easier way to do this for us non-programmer types, who just can't wrap our heads around code.
 
In PostLevel, look at the tHitDice herofield, divide that by 6 and round down to get the value to add.

Other questions:
Does all the bonus go to the same attribute or can it be split among different ones?
Is it always the same attribute, or does the user get to pick what attribute is boosted?
 
Looking for code example to work with as well. As I said, I can modify code ot some extent, I just can't create it form scratch.

The bonus would go to a specific attribute and the user doesn't get to pick which, that is assigned.
 
PostLevel 10000
Code:
field[abValue].value += round(herofield[tHitDice].value/6,0,-1)

~ Assuming this is a racial bonus
hero.childfound[UNIQUEIDOFWHATEVERATTRIBUTE].field[Racial].value += field[abValue].value
 
Thanks.

How about if I wanted to add say a +2 at a certain level? Such as at 4th level (doesn't matter class), gain +2 Dex.
 
Last edited:
Thanks.

How about if I wanted to add say a +2 at a certain level? Such as at 4th level (doesn't matter class), gain +2 Dex.

I'm a big believer in learning by doing. Could you give your best try to modify a script and post it here, then I can correct as necessary?
 
As am I when I know what I am doing. Once I know for one thing, similar things aren't to much an issue.

but I got it.
Pre-Attributes, 10000
~ Check whether you're at least a 4th-level hero
if (#totallevelcount[] >= 4) then

~ Add a +2 racial bonus to our Dexterity
hero.child[aDEX].field[aNormMod].value += 2
endif
 
Looks like you figured it out yourself? Congrats!

One tweak I would make would be to add to the "Racial" field of Dex instead of "aNormMod"

Also, when posting to the forums you can enclose code with "{CODE}" and "{/CODE}" (use square brackets instead of {}) to make it clearer.
 
Nah, just went to the help file in the editor, which is where I needed to be pointed. :p

From there I just found the examples and all, then spent hours trying to mod them properly.

Wish I could do really complicated stuff, still been trying to make the Magister class from Rogue Genius, as well as the Godling classes, and adding in some additional Summoner feats, though will look at the examples in the help file to see if I can do something there, like treating the class as a higher level for purposes of selecting Eidolon abilities.

Thanks.
 
Back
Top