Another question: I'm trying to hide all non-Core languages (all those languages outside the Core Rulebook), but I'm having a hard time with that too.
Code:
~ Find all non-Greyhawk languages
foreach thing in BaseLang Category where "!component.BaseLang"
~ If no language category then pull the thingid
If (eachthing.tagcount[LangCat.?] = 0) Then
perform eachthing.pulltags[thingid.?,HideLang]
~ If we have a category then pull the cateogry only
~ if we have not already pulled it.
Else
If (eachthing.intersect[LangCat,LangCat] = 0) then
perform eachthing.pulltags[LangCat.?]
Endif
Endif
nexteach
~ Create Hide Language Catagory tags
perform pulltags[LangCat.?,HideLanCat]
~ Push the hide deity tags to the hero
perform hero.pushtags[HideLanCat.?]
perform hero.pushtags[HideLang.?]