• 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

Source Element attribute abbrev?

ShadowChemosh

Well-known member
So I found that the Source Element has the attribute "abbrev" as listed on the "Wiki". Which is great and I added it to some of my Sources without any problems.

My question is how do I 'get' to that text from a script? I found the "sourcerefs" command but that gives me back the Source element "name" text.

For a tag I could use "tagabbrevs" to get the abbreviation text. Anything similar for getting to the 'Sources' "abbreviation" text?
 
It's a recent change, but items in HL now have tags in the usesource group for each of their sources. I don't make much use of source abbreviations, but hopefully, an abbreviation in the source will turn into an abbreviation on the tag.
 
It's a recent change, but items in HL now have tags in the usesource group for each of their sources. I don't make much use of source abbreviations, but hopefully, an abbreviation in the source will turn into an abbreviation on the tag.
No I tried last night and I got back "???" for the result using tagabbrevs vs usesource. I assumed it was because they where two different "Things" and the usesource must not "inherit" the abbreviation part.

Oh well. I went a different way storing the value of "[ToS]" in the "srcBookInf" field on the class.

I was trying for a way to mimic your "[playtest]" info in Pathfinder that displays next to a class name. But link it to the "source" the class was from. So that "[ToS]" would mean "Tome of Secrets" and I could store it as the abbreviation attribute in the .1st file. This way it would become very "soft-coded".

Thanks! :)
 
In that case, I'd make srcBookInf a dynamic tag group, and then display the tag group's abbreviation as part of the thing template in the class chooser. You can even have the [] be added by the labeltext script, so that if a book has more than one source, the brackets go around all of them.
 
Back
Top