I am working on a template that has a special that does the same damage as a natural attack granted by the template. I want it to display in its livename "Special (damage)." I figured this would be easy enough by getting the tagname of the wMain tag on the attack.
However there is an issue if the template is placed on a base creature that is not of Medium size. Namely the damage auto adjusts for the creature's size, but the wMain tag is still the original.
For example, the template has a wClaw attack with the tag wMain.1d6_5. I apply this to a small creature and the claw attack correctly displays as 1d4, but the tag on wClaw is still 1d6_5, so if I use tagnames to get the damage I still get 1d6. (The same issue happens if I have an attack with DamageUp or DamageDown tags). How can I get the correct damage text that I can put in the display of my special?
However there is an issue if the template is placed on a base creature that is not of Medium size. Namely the damage auto adjusts for the creature's size, but the wMain tag is still the original.
For example, the template has a wClaw attack with the tag wMain.1d6_5. I apply this to a small creature and the claw attack correctly displays as 1d4, but the tag on wClaw is still 1d6_5, so if I use tagnames to get the damage I still get 1d6. (The same issue happens if I have an attack with DamageUp or DamageDown tags). How can I get the correct damage text that I can put in the display of my special?