KyleC
April 11th, 2006, 21:17
I've created a windowlist in my custom character sheet to keep track of skills. The issue is that some of the controls within my windowlist need to access data from other controls outside of the window list, but they don't seem to want to. Has anyone successfully done this before, or is this currently not available in FG?
Thanks,
-KyleC
Rathlan
September 24th, 2006, 23:33
Seems like I'm having the same issue. What I'm doing is creating a weapon entry section similar the spell entry section. Players add a new weapon entry and put in information for a single weapon like weapon bonus, feat information, and so on. In addition, users will be able to select whether the damage bonus is strength, strength * 1.5, strength * 2. That this bonus is automatically calculated by the sheet depending on a user selection. That is, it will work that way if I can figure this out ;)
What happens is that I try to access "strengthbonus" from the weapon entry and it acts like it's a brand new entry. Looking at the created character sheet I see that there is an entry for "strengthbonus" under "<node name="charsheet">" (the one I want to use) but that a new entry is created under "<node name="weapon">" when I just try to use it in a calculation from the weapon entry itself. I'm guessing it has something to do with setting up my windowlist or even the datasource section, but I can't figure it out.
I'm including some code snippets in case someone can spot the problem:
<windowclass name="charsheet_weaponentry">
<frame name="charsheet_weaponentry" />
<datasource name="weapon" />
<defaultsize width="516" height="80" />
<sheetdata>
...
<numbercontrol name="weapon_strength_mod">
<bounds rect="297,17,24,16" />
<value type="modifier" />
<nodrop />
<noreset />
<displaysign />
<source name="strengthbonus" op="+" />
<description text="Weapon Str Mod" />
</numbercontrol>
...
</sheetdata>
</windowclass>
<windowclass name="charsheet_combat">
<frame name="charsheet_combat" />
<datasource name="charsheet" />
<defaultsize width="550" height="685" />
<sheetdata>
<windowlist class="charsheet_weaponentry" name="weaponlist">
<allowcreate />
<allowdelete />
<nestdata />
<bounds rect="10,294,509,375" />
<acceptdrop class="weapondesc" fields="description" />
</windowlist>
<scroller>
<bounds rect="15,640,45,27" />
<target name="weaponlist" />
<button normal="button_scroller" pressed="button_scroller_down" />
</scroller>
</sheetdata>
</windowclass>
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.