FG Spreadshirt Swag
Page 12 of 35 First ... 2101112131422 ... Last
  1. #111
    Blackfoot's Avatar
    Join Date
    Oct 2010
    Location
    New Jersey, USA
    Posts
    4,202
    Blog Entries
    4
    The data below (in my previous post) was from the db after typing /save with a modified character. .. So yes. it should be showing there right? .. and no it isn't.. so something is tweaked. Gotta figure out where to look to untweak it.
    Full License Operator - You must have a 'Lite' License to play in my games.
    Member and GM in the Fantasy Grounds Pathfinder Society Group.
    PFS Fantasy Grounds Forum
    FG Community Teamspeak Server: ts.fg-con.com
    Interested in Custom Character Portraits and Tokens? Contact me.

  2. #112
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,361
    Is your number_cv template based on the same template hierarchy as number_charabilitybonus from the 3.5E ruleset? i.e. does it at some point in the hierarchy link to the CoreRPG number_modifier template? It is this template (number_modifier) that has the code (in number_modifer.lua) that sets and reads the value in the database.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  3. #113
    Blackfoot's Avatar
    Join Date
    Oct 2010
    Location
    New Jersey, USA
    Posts
    4,202
    Blog Entries
    4
    Yep.. number_cv uses number_chartotal which uses number_modifier...
    Full License Operator - You must have a 'Lite' License to play in my games.
    Member and GM in the Fantasy Grounds Pathfinder Society Group.
    PFS Fantasy Grounds Forum
    FG Community Teamspeak Server: ts.fg-con.com
    Interested in Custom Character Portraits and Tokens? Contact me.

  4. #114
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,361
    In the onInit() function for number_modifier.lua (the LUA script file for the number_modifier control template) there is code that creates the database entry for the modifier field:
    Code:
    modifierFieldNode = window.getDatabaseNode().createChild(modifierFieldName, "number");
    In your case, modifierFieldName will be combatvalues.dcv.bonusmodifier - so this will be created as a child of window.getDatabaseNode(). I'd recommend putting some debug code in the script to see what window.getDatabaseNode() returns - use Debug.console to write the result of window.getDatabaseNode().getNodeName() and see if his is valid and also if adding combatvalues.dcv.bonusmodifier as a child node would make sense.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  5. #115
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,361
    Actually, I think I see the issue. Compare your database structure with that of the example I gave above:
    Code:
    <number_charabilitybonus name="strengthbonus" source="abilities.strength.bonus">
    	<anchored to="strength" />
    	<target>strength</target>
    	<modifierfield>abilities.strength.bonusmodifier</modifierfield>
    	<description textres="char_tooltip_strbonus" />
    </number_charabilitybonus>
    This gives database entries of:
    Code:
    <strength>
    	<holder name="Player" owner="true" />
    	<bonus type="number">2</bonus>
    	<bonusmodifier type="number">2</bonusmodifier>
    	<damage type="number">0</damage>
    	<score type="number">14</score>
    </strength>
    Notice that both the strength bonus (the field to display as the main bonus field) is strength.bonus and that the modifier field is strength.bonusmodifier - they are built on the same base database entry, strength, which is just a placeholder not a database entry that has a type (number in this case).

    In your code you use combatvalues.dcv to hold the number and then try to build a child on this to hold the bonus: combatvalues.dcv.bonusmodifier. I don't think the FG database supports this for these type of fields.

    Use similar code to the 3.5e example code to have 2 separate values combatvalues.dcv.bonus and combatvalues.dcv.bonusmodifier. Use:
    Code:
    <number_cv name="dcv" source="combatvalues.dcv.bonus">
    	<anchored>
    		<to>cvtitle</to>
    		<position>insidetopleft</position>
    		<offset>105,20</offset>
    	</anchored>
    	<target>dcv</target>
    	<modifierfield>combatvalues.dcv.bonusmodifier</modifierfield>
    	<description>
    		<text>DCV</text>
    	</description>
    </number_cv>
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  6. #116
    Blackfoot's Avatar
    Join Date
    Oct 2010
    Location
    New Jersey, USA
    Posts
    4,202
    Blog Entries
    4
    Thanks. That did it. I went the other way and changed them to combatvalues.dcvmod and kept combatvalues.dcv since it was incorporated all over the place in the mechanics and the mods really only come up in a couple of places. It seems to have worked just fine. Thanks again!
    Full License Operator - You must have a 'Lite' License to play in my games.
    Member and GM in the Fantasy Grounds Pathfinder Society Group.
    PFS Fantasy Grounds Forum
    FG Community Teamspeak Server: ts.fg-con.com
    Interested in Custom Character Portraits and Tokens? Contact me.

  7. #117
    Dayson's Avatar
    Join Date
    Jan 2010
    Location
    Exeter, New Hampshire
    Posts
    150
    I would really love it if this rule set was downloadable. It doesn't have to be perfect.

  8. #118
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,361
    What version of Champions is this for?

    A big set of Champions and Hero System 5th Revised Edition PDFs available for a short time on Bundle of Holding: https://bundleofholding.com/index/preview

    If you're not using the same version, sorry for the slightly unrelated spam!
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  9. #119
    Blackfoot's Avatar
    Join Date
    Oct 2010
    Location
    New Jersey, USA
    Posts
    4,202
    Blog Entries
    4
    That is in fact exactly the version that I am using as the model for the ruleset.
    Full License Operator - You must have a 'Lite' License to play in my games.
    Member and GM in the Fantasy Grounds Pathfinder Society Group.
    PFS Fantasy Grounds Forum
    FG Community Teamspeak Server: ts.fg-con.com
    Interested in Custom Character Portraits and Tokens? Contact me.

  10. #120
    Nurgelrot's Avatar
    Join Date
    Dec 2012
    Location
    Intermountian West, USA
    Posts
    14
    I'm very glad that you're doing this work with the 5th Revised version. While I like the work the DOJ guys have been doing with the Hero System Rules, I think they sorta lost their way with 6th edition. Plus me and my group are old so we like the older rules, took some convincing to move to 5th haha.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in