• 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

Hiding-Non System Specific Content

TobyFox2002

Well-known member
Heya all again,

I am working on a way to create non-preclude/hide of system specific content. I am using the method that has been designed with the Eberron Campaign material and am trying to get it to work with other things besides Deities. Ultimately, I want to get it working with Languages, Classes and Races.

I have made some progress with adapting the code from deities to languages, however. Its kinda copypasta at this point so I cant take it further. Some guidance would be appreciated.

This is what I have sofar:
First/10000
Code:
      ~ Find all non-Athas languages
      foreach thing in BaseLang where "LangCat.Trade | LangCat.Monster | LangCat.Planar"

        ~ If no deity 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 Deity Catagory tags
[COLOR="Red"]      perform pulltags[LangCat.?,HideLangCat][/COLOR]
      ~ Push the hide deity tags to the hero
      perform hero.pushtags[HideLang.?]
      perform hero.pushtags[HideLangCat.?]

When I run this I get:

Syntax error in 'eval' script for Thing 'meDSRace' (Eval Script #2) on line 18
-> Invalid id specified for target tag group

I kinda have an idea of whats going wrong but, done know how to correct it. After I get this done, I want to move on to a similar type of script for Races/Monsters, then Classes/Templates if it is possible to hide those outside of a hidden/preclude. It would be very helpful for Systems such as Dark Sun that have drastically different rulesets that replace items with new versions or have mechanics that just dont function with normal content.

But one step at a time.
 
HideLangCat is 11 characters. Tag groups must be 10 characters or less.

Also, where do those come from? What's defining that tag group?
 
foreach thing in Deity where "DeityCat.? | !DeityCat.AthasSorMo"
~ Create Hide Deity Catagory tags
~ If no deity category then pull the thingid
If (eachthing.tagcount[DeityCat.?] = 0) Then
perform eachthing.pulltags[thingid.?,HideDeity]
Else
If (eachthing.tagcount[DeityCat.?] <> 0) Then
perform eachthing.pulltags[DeityCat.?,HideDeity]
Endif
Endif
nexteach
~ Push the hide deity tags to the hero
perform hero.pushtags[HideDeity.?]
Not sure what to use to disable the set things but if you can tell your code to use HideDeity.? and push a disable tag to them.

As you might have guessed, I have never attempted to disable anything through this method.
 
Last edited:
Hrm, thank you for the extra pair of eyes. I guess I'd been working on it too long. And could see what I was doing wrong. I was using the wrong tag group name, it should have been HideLanCat.? instead of HideLangCat.?

Now, my next step is to find a way to adapt this to races, classes and templates.

Thank you again for your help.
------
I was composing this message and posted it just after Delta, teach me to go afk in the middle of typing a message :D

Anyways, the Deity code is what I used as a basis to construct this language script, and indeed I have the deity cat set up to exclude all deities except the Athas ones and Atheism (If the user has the Hide/Show only Athas deities selected).
 
Last edited:
Hrm, thank you for the extra pair of eyes. I guess I'd been working on it too long. And could see what I was doing wrong. I was using the wrong tag group name, it should have been HideLanCat.? instead of HideLangCat.?

Now, my next step is to find a way to adapt this to races, classes and templates.

Thank you again for your help.
------
I was composing this message and posted it just after Delta, teach me to go afk in the middle of typing a message :D

Anyways, the Deity code is what I used as a basis to construct this language script, and indeed I have the deity cat set up to exclude all deities except the Athas ones and Atheism (If the user has the Hide/Show only Athas deities selected).

;) I do love playing a ninja!
 
Back
Top