vttred / tips

Learn how to use Foundry one tip at a time.
https://foundry.tips
MIT License
2 stars 2 forks source link

Allow world/campaign specific Tips (ie allow a json stored in the worlds directory to be referenced) #37

Open SnortsAlot opened 3 years ago

SnortsAlot commented 3 years ago

Is your feature request related to a problem? Please describe. The localization solution is great and very helpful, but I would like to have a file outside of the /data/modules , one that allows more contextually relevant information.

Describe the solution you'd like allow a directory in the worlds' directory, if a /tips is present, stitch the *.jsons within for such. So that the module references to include as additional tips that are campaign/game specific.

Ideally there would also allow "support" for other modules/systems to include a /tips directory or tip.json in their package so that if the module is loaded it includes those tips into the possible offerings. (this would likely also require settings for enabling/disabling of those tips)

Describe alternatives you've considered Considered doing a single file for worlds , but was looking at how to expand the module's offering to help with other projects in their use to help bring people into foundry as a platform easier, or into their game, into using their module (functionality) or their adventure/world, or even game system.

(ie someone wants to make a tutorial / session zero module to help, but not force those elements into ALL their other worlds - or wanted to include additional/optional help that will be stitched into the main offerings)

anthonyronda commented 3 years ago

allow a directory in the worlds' directory, if a /tips is present, stitch the *.jsons within for such.

I believe somewhere I got a feature request to accept tips from journal entries or roll tables. It doesn't make sense for my tips to be available there, but I didn't think about a possible use case for world-specific tips. Something that's authorable from within the app is ideal.

This isn't for an installable world, is it?

Ideally there would also allow "support" for other modules/systems to include a /tips directory or tip.json in their package so that if the module is loaded it includes those tips into the possible offerings. (this would likely also require settings for enabling/disabling of those tips)

Unless I'm misunderstanding the request, this is already possible. See the PunPun module by BadIdeasBureau.

Third-party tips necessarily go in the localization files of those modules/systems. If you have a reason why it should go somewhere else please share!