-
February 25th, 2021, 07:29 #341
- Join Date
- Dec 2013
- Posts
- 69
-
February 25th, 2021, 07:34 #342
oh, yes
Ruleset Wizard
The Ruleset Development Environment
www.rulesetwizard.com
Ruleset Wizard Tutorials
Damned's Ruleset Wizard Tutorials
-
February 25th, 2021, 07:55 #343
- Join Date
- Dec 2013
- Posts
- 69
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?
-
February 25th, 2021, 08:25 #344
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>
-
February 26th, 2021, 06:59 #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
-
February 26th, 2021, 08:12 #346
-
February 26th, 2021, 21:57 #347
- Join Date
- Dec 2013
- Posts
- 69
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>
-
February 26th, 2021, 22:59 #348
dont write to the Window - write to the database.
-
February 27th, 2021, 14:13 #349
-
February 27th, 2021, 21:56 #350
Great!
Ruleset Wizard
The Ruleset Development Environment
www.rulesetwizard.com
Ruleset Wizard Tutorials
Damned's Ruleset Wizard Tutorials
Thread Information
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)
Bookmarks