JimAde
First Post
Exactly. So you need a model that is tolerant of stuff like that. You have to include "miscellaneous" elements everywhere so applications programmers and users can throw in things ad hoc.
You can't, for example, create a data model for weapons that only includes bonuses to hit and damage. What about when the GM wants to have a weapon that give you a bonus to AC? Or your Diplomacy skill? So you add a "skill modifier" element, but then the GM wants a different weapon that does some other weird thing.
I'm thinking of an element that is allowed to modify other elements by name, somehow. That may be getting into implementation too much, but it's something to think about. So, for example, I want to create a +1 weapon that gives a +2 deflection bonus to AC. So the weapon includes elements like:
<modifier modifiedElementName="tohit.enhancement" modifier="1" />
<modifier modifiedElementName="damage.enhancement" modifier="1" />
<modifier modifiedElementName="wielder.ac.deflection" modifier="2" />
It would be the application's responsibility to know that the deflection bonus doesn't stack with other deflection bonuses.
Just thinking out loud, I guess.
You can't, for example, create a data model for weapons that only includes bonuses to hit and damage. What about when the GM wants to have a weapon that give you a bonus to AC? Or your Diplomacy skill? So you add a "skill modifier" element, but then the GM wants a different weapon that does some other weird thing.
I'm thinking of an element that is allowed to modify other elements by name, somehow. That may be getting into implementation too much, but it's something to think about. So, for example, I want to create a +1 weapon that gives a +2 deflection bonus to AC. So the weapon includes elements like:
<modifier modifiedElementName="tohit.enhancement" modifier="1" />
<modifier modifiedElementName="damage.enhancement" modifier="1" />
<modifier modifiedElementName="wielder.ac.deflection" modifier="2" />
It would be the application's responsibility to know that the deflection bonus doesn't stack with other deflection bonuses.
Just thinking out loud, I guess.