Thread: Loading variables ><
-
May 13th, 2011, 02:22 #11
- Join Date
- Feb 2009
- Location
- Jacksonville, Florida
- Posts
- 153
May be relatively basic process to you, but it's greek to me :P
How does it pull up all the different stats from the bonuses?"Tis better to die on your feet, then live on your knees."
-
May 13th, 2011, 18:42 #12
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,539
One thing I noted from the code that could be an issue. When you use createChild, you need to make sure that you specify a data type for the node to be created. Otherwise, you end up creating an untyped (or list) node by default. Once you have the wrong node type created in the database, the specific number/string controls set to those database locations will not link up correctly, or may not even appear.
Regards,
JPGLast edited by Moon Wizard; May 13th, 2011 at 18:50.
-
May 13th, 2011, 18:49 #13
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,539
Also, you should check out the linkednumber template from either the d20 or 4E rulesets. The d20 ruleset is simpler, so you might start there. It is available for download from the Downloads section.
Then, you can define fields that total up other fields like this:
Code:<linkednumber name="agility" source="stats.agility"> <anchored> <to>vitality</to> </anchored> <noreset /> <readonly /> <source> <name>trueagility</name> <op>+</op> </source> <source> <name>stats.race.agility</name> <op>+</op> </source> <source> <name>stats.agility_bonus</name> <op>+</op> </source> </linkednumber>
Regards,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks