• 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

Custom Ability Help!

Manalishi66

Well-known member
Hi All...

I'm trying to script a custom ability that each time you select it (not class level), it gives you 1d6 of sneak attack ability. I just don't know where to start.

Thanks....

Don
 
How are you looking to apply this to the charater, as a feat, skill, or something thats on the fly, like a Adjustment to the char?
 
It is going to be part of a list of abilities the class can choose from, so if he decided to choose it at 3rd level (every3 levels), he could choose it again at 6th (gaining 2d6) or another ability from a list of several. Similar to a thief picking abilities or a ranger, but he does not get sneak attack (in this case) automatically at certain levels, only when he picks the skill one or more times.

Thanks!
 
You can simply count the number of Ability.? tags that are on the hero but you will want to use a single helper Ability to control the value so it appears once on the hero.

So make a new on the "Ability" tab in the editor and make sure that the "Show in Specials List?" is check marked. Give it a unique id of "x66Sneak" set the Uniqueness to "Unique".

Then add a new script to this Ability at Final/25000. Please replace cXXXXXXX with the real Unique ID of your Custom Ability.
Code:
~ Count the number of instances
field[abValue].value += hero.tagcount[Ability.cXXXXXXX]
~ Set live name with the value
field[livename].text += " +" & field[abValue].value & "d6"

Bootstrap this new x66Sneak to your Custom Ability. Now each time you add your Custom Ability a single version of x66Sneak will be on the hero. That single Ability Thing will count the number of instances of Custom Ability and will display on the character sheet. Make sure on the "Custom Ability" you check mark "Upgrade - hide from list?" so that you don't show multiple copies of the Custom Ability on the character sheet.
 
I think it's a bit simpler than that. In the "Class Special Abilities" option on the custom ability you're creating, add "Sneak Attack", and set it to be added at level 1. The Custom Ability itself will check the "Upgrade - Hide from list" checkbox, since the abilities they're adding are what's actually going to be shown on the special tab and on the printout.

Now when you're looking at the list of abilities this class has, all the sneak attacks you've chosen to add will be clustered at the top, rather than being at the level where you actually selected the ability, but the total sneak attack displayed on the Special tab will be correct.
 
I think it's a bit simpler than that. In the "Class Special Abilities" option on the custom ability you're creating, add "Sneak Attack", and set it to be added at level 1. The Custom Ability itself will check the "Upgrade - Hide from list" checkbox, since the abilities they're adding are what's actually going to be shown on the special tab and on the printout.

Now when you're looking at the list of abilities this class has, all the sneak attacks you've chosen to add will be clustered at the top, rather than being at the level where you actually selected the ability, but the total sneak attack displayed on the Special tab will be correct.
Oh so just bootstrap "cSneakAtt" and set the tags so its always applied at level 1. That is nice and slick I like it. So basically its what I described above but instead we trick the built in Sneak Attack Thing to work for us. Nice! :D
 
Back
Top