MadBeardMan
May 8th, 2016, 18:05
Hello,
Right - I've hit a bit of a logger head.
I've built weapon, armour and general equipment for the TravellerRPG ruleset i'm working on, and have it listing and displaying super nice.
Now I'm linking those records to the Character Sheet and have hit an issue....
When armour or weapons get dragged to the Character Sheet, the item dragged appears in both lists, so Armour & Weapons in Weapons and the same in Armour.
Now I'd hoped I could filter this, as I have a record type of 'armour' for Armour and 'weapon' for Weapo
<windowlist name="weapons">
<anchored>
<top parent="columnanchor" anchor="bottom" relation="relative" offset="0" />
<left />
<right />
</anchored>
<datasource>.equipmentdata</datasource>
<class>char_weapon</class>
<sortby><control>name</control></sortby>
<filter>
<control>weapon</control>
<field>recordtype</field>
</filter>
<allowdelete />
<noscroll />
<script file="campaign/scripts/char_weaponlist.lua" />
</windowlist>
How the filter isn't working.... so I'm a bit lost.
Any help would be ace, cheers
Col
Right - I've hit a bit of a logger head.
I've built weapon, armour and general equipment for the TravellerRPG ruleset i'm working on, and have it listing and displaying super nice.
Now I'm linking those records to the Character Sheet and have hit an issue....
When armour or weapons get dragged to the Character Sheet, the item dragged appears in both lists, so Armour & Weapons in Weapons and the same in Armour.
Now I'd hoped I could filter this, as I have a record type of 'armour' for Armour and 'weapon' for Weapo
<windowlist name="weapons">
<anchored>
<top parent="columnanchor" anchor="bottom" relation="relative" offset="0" />
<left />
<right />
</anchored>
<datasource>.equipmentdata</datasource>
<class>char_weapon</class>
<sortby><control>name</control></sortby>
<filter>
<control>weapon</control>
<field>recordtype</field>
</filter>
<allowdelete />
<noscroll />
<script file="campaign/scripts/char_weaponlist.lua" />
</windowlist>
How the filter isn't working.... so I'm a bit lost.
Any help would be ace, cheers
Col