• 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

How make a Supernatural ability's Base Charges = class level?

draco963

Well-known member
Hello,

I'm making some supernatural abilities that are going to require me to have the base number of charges that the player gets for the abilities to equal 1 rnd/day per class level.

So, the Base Charges field in the SPECIAL/B] tab allows for a number, and then Usage period has rounds/day as an option. All good so far as it goes. But what I need next is for the number in Base Charges to equal a certain class's level on the character.

I presume I'll have to do this with an eval script, by fetching the characters number of class levels, and then making the Base Charges count equal the number. But I'm clueless as to how to achieve that...

Thanks in advance!
 
I presume I'll have to do this with an eval script, by fetching the characters number of class levels, and then making the Base Charges count equal the number. But I'm clueless as to how to achieve that...

Thanks in advance!

Correct!

something like field[hTotal].value = #levelcount[ClassName]

To determine ClassName you'll need to look at the Classes.? tag on the class. Use whatever the ? is.

This is off the top of my head, so let me know if you run into any trouble.
 
Thank you Sendric!

umm... How do I "look" at the Classes.? tag? Or any other tag? Outside of copying a thing in the editor?
 
Thank you Sendric!

umm... How do I "look" at the Classes.? tag? Or any other tag? Outside of copying a thing in the editor?

In your portfolio, go to the "Develop" menu. Make sure "Enable Data File Debugging" is checked (note: this may require restarting HL if it's not already on). Then go to the sub-menu "Floating Info Windows" all the way at the bottom. Select "Show Selection Tags".

In the new window, type the name of your class in the search window then select the option that includes "cHelp" in the thing id. This will show you all of the tags associated with that thing, including the Classes.? tag.

For most things, like skills, feats, weapons, etc, you can bypass all this and just right-click on the thing in question to see the tags, fields, etc. However, the cHelp.? thing doesn't appear in the portfolio so you have to go through the menu to get this info.
 
Back
Top