PDA

View Full Version : Changing attributes?



bazutti
February 25th, 2008, 20:24
Where are attributes defined? For instance, is it possible to make the grantedpower element take an attribute of type="formattedtext" or must it only be type="string"?

Griogre
February 26th, 2008, 01:09
Hmm. Let me explain it this way. You can change any attribute you define and use. IE you can add something on a character sheet with a different attribute and write the script to use it.

What you can *not* do is change an attribute the program, the FG exe, uses because when the program reads in the data it is expecting the data in a certain way and if the data is not in that way you will probably crash the program.

So the short answer is if the exe defines the attribute you can't change it. If the attribute is used by Lua scripting and not the executable you can change it assuming you change the scripting to expect it. Often the trick is determining which is which.

Foen
February 26th, 2008, 06:24
It is also worth noting that if you change the ruleset databse field types (which dictate what attribute is used) FG won't automatically change the attributes in the db.xml file (in fact it will likely crash).

The db attributes must match the rule database fields for existing content. You can, of course, create a new character/npc etc using the ruleset and the attributes will be set up correctly.

Please shout if that garbled explanation failed to make sense!

Stuart

bazutti
February 26th, 2008, 22:15
Thanks for the input! Slowly trying to understand the changes I'm making. :)