DICE PACKS BUNDLE
Page 35 of 109 First ... 2533343536374585 ... Last
  1. #341
    Quote Originally Posted by psicodelix View Post
    to make a dice field add a modifier to the roll set
    - Allow drag & drop to: true
    - Dice roll string to: + {modifierfield}

    to set the description for the roll you can set the Roll Description Property, for example.

    Attack with {weaponname}


    you can find more advanced examples of dice handling in the Ruleset Wizard Core demo project.
    And I had to set the Rollable field to True before it would generate the code.

  2. #342

  3. #343
    I was doing some testing and I discovered that with a Number Field configured like this:

    Allow drag & drop: True
    Dice Roll string: 1d20 + {weapon_attack} (2 in this case)
    Reset Modifier Stack: True
    Roll Description: {weapon_name} [{weapon_skill}: {weapon_attack}]
    Use Modifier Stack: True

    And then I apply a modifier to the stack of +1 the following things happen.
    When I drag the die out to the chat window and drop it, the modifier stack is cleared but never used.
    When I double click the number field, the modifier stack is used and then cleared.

    Bug?

  4. #344
    Quote Originally Posted by psicodelix View Post
    at a first glance, I think the datasource of your list should be .TraitList (note the dot before the name), as the data source must be relative.
    This worked a treat on the Trait List and Weapon List that wasn't showing up on the player sheet, thank you! However, despite duplicating everything on a sub window that holds the same type of expandable/editable list (titles 'Magick'), the same fix isn't working. I noticed when going through everything there was a typo (I left a 'k' off the end of the datasource in the FGWindow I think) which has now been corrected, however, I wonder if the original typo is somewhere in code elsewhere other than the FGWindows (for the Detail or the List on the sub tab)? I have looked at the code and can't see anything wrong:
    <?xml version="1.0" encoding="ISO-8859-1"?>

    -<root>


    -<windowclass name="sub4">


    -<placement>

    <size width="610" height="700"/>

    </placement>


    -<sizelimits resize="both">

    <maximum width="615" height="700"/>

    <minimum width="615" height="500"/>

    </sizelimits>


    -<sheetdata>


    -<stringcontrol name="Label6">

    <bounds>275,47,47,33</bounds>

    <static textres="sub4_Label6_LabelCaption"/>

    <font>ACaslon_bold_25</font>

    </stringcontrol>


    -<stringcontrol name="Label5">

    <bounds>81,46,47,33</bounds>

    <static textres="sub4_Label5_LabelCaption"/>

    <font>ACaslon_bold_25</font>

    </stringcontrol>


    -<number name="NumberField_ib">

    <bounds>88,45,23,35</bounds>

    <font>DOMISC_30</font>

    </number>


    -<stringcontrol name="Label2">

    <bounds>18,27,201,20</bounds>

    <color>#FF800000</color>

    <static textres="sub4_Label2_LabelCaption"/>

    <font>DOMISC_20</font>

    </stringcontrol>


    -<stringcontrol name="Label3">

    <bounds>216,26,173,20</bounds>

    <color>#FF800000</color>

    <static textres="sub4_Label3_LabelCaption"/>

    <font>DOMISC_20</font>

    </stringcontrol>


    -<number name="NumberField_wb">

    <bounds>281,45,23,35</bounds>

    <font>DOMISC_30</font>

    </number>


    -<stringcontrol name="Label4">

    <bounds>396,26,173,20</bounds>

    <color>#FF800000</color>

    <static textres="sub4_Label4_LabelCaption"/>

    <font>DOMISC_20</font>

    </stringcontrol>


    -<number name="NumberField_Incantation">

    <bounds>452,45,33,35</bounds>

    <font>DOMISC_30</font>

    </number>


    -<scrollbarcontrol name="ScrollBar2">


    -<frame>

    <name>scrollbar_base</name>

    </frame>

    <bounds>-33,88,18,-48</bounds>

    <target>MagickList</target>


    -<normal name="scrollbutton_normal">

    <minimum height="scrollbutton_normal"/>

    </normal>

    </scrollbarcontrol>


    -<stringcontrol name="Label1">

    <bounds>485,54,17,27</bounds>

    <static textres="sub4_Label1_LabelCaption"/>

    <font>CaslonAntique_20</font>

    </stringcontrol>


    -<windowlist name="MagickList">

    <bounds>34,86,-36,-43</bounds>

    <class>MagickDetail</class>

    <datasource>.MagickList</datasource>

    <allowcreate/>

    <allowdelete/>

    </windowlist>

    </sheetdata>

    </windowclass>

    </root>

  5. #345
    I can't find anyting wrong. Try to re-create it from scratch, starting with a single field to narrow the problem.
    Ruleset Wizard
    The Ruleset Development Environment
    www.rulesetwizard.com
    Ruleset Wizard Tutorials
    Damned's Ruleset Wizard Tutorials

  6. #346
    Quote Originally Posted by psicodelix View Post
    I can't find anyting wrong. Try to re-create it from scratch, starting with a single field to narrow the problem.
    Will do. Thanks for looking at this for me.

  7. #347
    Okay, I want to keep track of the hit points rolled for each level. I've got a list setup for it, but there wasn't really room on the sheet for it. So I created a new window for it, and I've setup the ability from the sheet to open/close the window and that part works nicely. The problem comes when I'm in the roll handler and I have received the rActor, how can I add an entry to the list if the window isn't open? Here's the entry with the data from db.xml

    Code:
    <hitpointrolls>
         <holder name="me" owner="true" />
         <id-00001>
              <holder name="me" owner="true" />
    	  <hitpointitem_roll type="number">4</hitpointitem_roll>
         </id-00001>
    </hitpointrolls>

  8. #348

  9. #349
    Quote Originally Posted by psicodelix View Post
    I can't find anyting wrong. Try to re-create it from scratch, starting with a single field to narrow the problem.
    Duplicated one of the other fields, one or two amendments and now works perfectly, thank you!

  10. #350

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
  •  
STAR TREK 2d20

Log in

Log in