Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
This thread is ten years old. Fenris have you ever tried ShadowChemosh's deity hider? (I know it's for the Pathfinder pack...)
<thing id="ECSDeities" name="Eberron Mechanic, Deities" description="Hide all non-Eberron deities if the source "Hide Non-Eberron Deities" is turned on." compset="Simple" uniqueness="unique"> <usesource source="srcOnlyEbe"/> <eval phase="First" priority="10000"><![CDATA[ ~ Find all non-Eberron deities foreach thing in Deity where "!DeityCat.S2Eberron & !thingid.deiAtheist & !thingid.deiOther" ~ If no deity category then pull the thingid If (eachthing.tagcount[DeityCat.?] = 0) Then perform eachthing.pulltags[thingid.?,HideDeity] ~ If we have a category then pull the cateogry only ~ if we have not already pulled it. Else If (eachthing.intersect[DeityCat,DeityCat] = 0) then perform eachthing.pulltags[DeityCat.?] Endif Endif nexteach ~ Create Hide Deity Catagory tags perform pulltags[DeityCat.?,HideDeiCat] ~ Push the hide deity tags to the hero perform hero.pushtags[HideDeiCat.?] perform hero.pushtags[HideDeity.?] ]]></eval> </thing> |
#11 |
Senior Member
Join Date: Sep 2017
Posts: 600
|
I haven't looked at this. If it's something people want, it could maybe be a pair of adjustments: one that hides all deities of a chosen category and another that hides everything except the deities of a chosen category.
Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! |
#12 |
Senior Member
Join Date: May 2016
Posts: 608
|
The code works perfect but the way it's written is as a mechanic that gets loaded through the configure hero options rather than as adjustments added later.
It wouldn't be a problem to modify it to adjustments but it boils down to if you want to clutter up your adjustments tab or your configure hero tab. |
#13 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
Like I said, I have a "hide Gods" user file that just precludes all the official deities, and then I went and copied each pantheon to their own user file so I can choose them when configuring a hero.
ShadowChemosh's idea intrigued me but I never manage to get it to...work. *sad face* |
#14 |
Senior Member
Join Date: Sep 2017
Posts: 600
|
I've added this as something I'm going to look at for release 3.2 (3.1 is about to release). No promises, but ShadowChemosh's code makes sense.
Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! |
#15 |
Senior Member
Join Date: Sep 2017
Posts: 600
|
I just realized it's much harder to do than I thought. I was thinking we could just to a tag expression to pull the various deity categories. But since those are just tags, it's not actually something we can generate a list of. So...crap.
dungeonguru was getting at this. The simple but bloated way is to just make an adjustment or mechanic for each pantheon. But that's way too bloated. I have other ideas for less bloated solutions, but they still would require manual additions every time a pantheon is added. I'll think more about it. Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! |
#16 |
Senior Member
Join Date: Sep 2017
Posts: 600
|
I think I’m on to something that’ll make this work. I’ll have to test it when I get home. Since the headers for each pantheon are marked as Show Only, they should have a thing.showonly tag. Unless that tag isn’t used in the 5e data set, we can build a list of pantheons to pick from by looking for all deities that have that tag. Then you select that pantheon, we pull that deity category tag, and limit based on that. The only other question is whether or not the name will show up funky on the generated drop-down list, thanks to the formatting we use for pantheon names. We’ll have to see how it goes, but this is better than manually making helper things for each pantheon, which is what I was going to have to do.
Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! |
#17 |
Senior Member
Join Date: Sep 2017
Posts: 600
|
Well...that didn't work. The fact that they’re marked as show only is probably why they’re not showing up on the drop down. Looks like it's back to the drawing board.
EDIT: So I think I’ve exhausted all other options for doing this in a more automatic fashion. I think I’ll have to make Simple Things for each pantheon, creating a pool for the adjustment to pull from. When new pantheons are added, a new Simple Thing will need to be created for that pantheon in order for it to be used in this hiding adjustment. I may push this to release 3.3, depending on whether I get to it soon. Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! Last edited by Fenris447; April 6th, 2021 at 05:07 AM. |
#18 |
Senior Member
Join Date: Sep 2017
Posts: 600
|
Thanks to the code from above, I was able to get this working.
I had to create Simple Things for each deity category, give them their respective DeityCat tag, and then have the adjustment generate a list of those Simple Things. The adjustment pulls the tag from the chosen thing and then either hides all deities from that category OR hides everything except for that category, depending on which drop-down you use on the adjustment. For posterity's sake, when we add new pantheons, they will need their own Simple Thing created in the same manner. See 5CFrgtPnth in the PHB - Deities.user for an example of this. The adjustment will be in release 3.3, since 3.2 just came out yesterday. Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! |
#19 |
|
|