• 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

Performing hero.tagcount[] on custom class levels

Helix42

New member
I have been searching the forums hoping to locate an answer but I am unable to. I am writing a custom ability that is essentially a copy of the Assassin's death attack for a custom class. There are some additional restrictions etc, but I have one issue. I can't get hero.tagcount[Classes.<myclassname>] to work in the eval script. The whole script is as follows:

Original:
field[abDC].value += 10 + field[xTotalLev].value + hero.child[aINT].field[aModBonus].value + hero.tagcount[Classes.Assassin]

The above works.

However I need to change the "hero.tagcount[Classes.Assassin]" to
count my custom class levels (Adrestia). I cannot find a group to replace "Classes" with that contains the definition for my custom class. I get a syntax error that tells me Adrestia is not defined in the group Classes. I have tried to find a group that works and even looked in the user file's xml to try to get it work.

Is there some group that hero labs puts custom classes in, or some way to count the levels of Adrestia to get this simple little script to compile?

I have attached the .user file for reference. The class is Adrestia

Any help would be appreciated.

Thanks.
 
The easy way to find this tag is to do the following:

1) add a level of your new class to new character.
2) Go to "Develop->Floating Info Windows->Show Hero Tags".
3) In the new window that opens type in "classes" into the top left search box.
4) The Classes.? tag will display for you and that is the tag that you need to use for the script.
 
Back
Top