Log in

View Full Version : Adding windowclasses in Modules?



jikkilimallan
August 24th, 2008, 06:36
I am trying, without any luck, to add new windowclasses in a module. Is it even possible to do?

I want to do this because I do not want the module to be tightly coupled to the ruleset since the module is simply a description of a campaign setting and does not have any rules in it (just alot of text). However, each ruleset defines what windowclasses are available and as such I need to write a new version of the module for every ruleset I want to use the setting in. I really do not want to go through all the work of detailing my world in FG if I have to go though the legwork of adapting it to all the different rulesets I like to run. On the other hand, I really want to be able to link to this source material in story / encounter descriptions.

Ideally my module would define all the windowclasses it needs to display its information, then I would only need to update the definition.xml for each ruleset I want to run.

J

Foen
August 24th, 2008, 07:17
Sorry Jikkilimallan, modules cannot contain window class definitions at the moment (I think they are looking into it) but can only contain database info (including images and tokens).

It is possible, however, for your module to work with multiple rulesets, as most rulesets derive from the d20 one and will retain the d20 basic window classes (such as referencetext, referencetextwide, referenceindex and referenceinlineindex), which should give you most of the functionality you need for campaign background material. I don't suggest you rely on the d20-specific window classes (such as referencespells), as not all rulesets will retain them.

Hope that helps

Foen

jikkilimallan
August 24th, 2008, 08:15
I suspected as much.

I, for one, will be a happy storyteller if/when either a common set of windowclasses or module-specified wondowclasses are made available.

Thank you for the prompt reply.


J

Tenian
August 24th, 2008, 11:41
If you made your own unique windowclasses, and named them in such a way that they are unlikely to be used by anyone else, you could place them all in a single reference file.

If you had all the classes in a single reference file, adding it to a new ruleset would be a trivial. You would just have to add a single line to references.xml.

It's not what you wanted, but it's not very difficult to do.