DICE PACKS BUNDLE
  1. #1271

    record_char_inventory (New Version with Coins Weight)

    Ronnke

    I made this on campaign\record_char_inventory.xml


    ​
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    
    <!-- 
      Please see the license.html file included with this distribution for 
      attribution and copyright information.
    -->
    
    
    <root>
    	<windowclass name="charsheet_inventory">
        <script>
          function onInit()
    				onEncumbranceChanged();
          end
          function onEncumbranceChanged()
    				local rActor = ActorManager.resolveActor(getDatabaseNode());
    				ActorManager2.updateEncumbrance(rActor);
          end
        </script>
    		<sheetdata>
    			<frame_char name="inventoryframe">
    				<bounds>15,0,-29,-219</bounds>
    			</frame_char>
    			
    			<label name="count_label">
    				<anchored to="inventoryframe" position="insidetopleft" offset="20,10" width="20" />
    				<center />
    				<static>#</static>
    			</label>
    			<genericcontrol name="rightanchor">
    				<anchored to="inventoryframe" width="0" height="0">
    					<top offset="10" />
    					<right offset="-20" />
    				</anchored>
    				<invisible />
    			</genericcontrol>
    			
    			<genericcontrol name="idelete_header">
    				<anchored to="rightanchor" width="20" height="20">
    					<top />
    					<right anchor="left" relation="relative" offset="-5" />
    				</anchored>
    				<disabled />
    			</genericcontrol>
    			
    			<genericcontrol name="shortcut_header">
    				<anchored to="rightanchor" width="20" height="20">
    					<top />
    					<right anchor="left" relation="relative" offset="-2" />
    				</anchored>
    				<disabled />
    			</genericcontrol>
    			<genericcontrol name="carried_header">
    				<anchored to="rightanchor" width="20" height="20">
    					<top />
    					<right anchor="left" relation="relative" offset="-5" />
    				</anchored>
    				<icon>char_inv_carried_header</icon>
    				<tooltip textres="char_tooltip_itemcarried" />
    			</genericcontrol>
    			<label name="weight_label">
    				<anchored to="rightanchor" width="30">
    					<top />
    					<right anchor="left" relation="relative" offset="-10" />
    				</anchored>
    				<center />
    				<static textres="char_label_itemweight" />
    				<tooltip textres="char_tooltip_itemweight" />
    			</label>
    			<label name="location_label">
    				<anchored to="rightanchor" width="80">
    					<top />
    					<right anchor="left" relation="relative" offset="-10" />
    				</anchored>
    				<center />
    				<static textres="char_label_itemlocation" />
    			</label>
    			<label name="name_label">
    				<anchored to="rightanchor">
    					<top />
    					<left parent="inventoryframe" offset="55" />
    					<right anchor="left" relation="relative" offset="-5" />
    				</anchored>
    				<static textres="char_label_itemname" />
    				<center />
    			</label>
    
    
    			<list_charinv name="inventorylist">
    				<anchored to="inventoryframe">
    					<top offset="40" />
    					<left offset="15" />
    					<right offset="-20" />
    					<bottom offset="-15" />
    				</anchored>
    			</list_charinv>
    			<scrollbar>
    				<anchored to="inventorylist" />
    				<target>inventorylist</target>
    			</scrollbar>
    
    
    			<button_iedit name="inventorylist_iedit">
    				<anchored to="inventorylist" position="aboveright" offset="5,10" />
    				<target>inventorylist</target>
            <invisible />
    			</button_iedit>
    			<button_iadd name="inventorylist_iadd">
    				<anchored to="inventorylist" position="aboveright" offset="5,10" />
    				<target>inventorylist</target>
    			</button_iadd>
    			
    			<frame_char name="encumbranceframe">
    				<bounds>15,-219,240,-15</bounds>
    			</frame_char>
    			<simplenumber name="encumbranceload" source="encumbrance.load">
    				<anchored to="encumbranceframe" position="insidetopleft" offset="150,30" width="70" height="20" />
    				<frame name="fieldlight" offset="7,5,7,5" />
    				<readonly />
            <script>
              function onValueChanged()
    						window.onEncumbranceChanged();
              end
            </script>
    			</simplenumber>
    			<label name="encumbrance_label">
    				<anchored to="encumbranceframe" position="insidetopleft" offset="15,30" />
    				<static textres="char_label_totalweight" />
    			</label>
    
    
          <simplestring name="encumbrancelevel" source="encumbrance.level">
            <anchored to="encumbranceframe" position="insidetopleft" offset="150,60" width="70" height="20" />
            <frame name="fieldlight" offset="7,5,7,5" />
            <readonly />
            <center />
          </simplestring>
          <label name="encumbrancelevel_label">
            <anchored to="encumbranceframe" position="insidetopleft" offset="15,60" />
            <static textres="char_label_encumbrancelevel" />
          </label>
    
    
          <frame_char name="coinframe">
    				<bounds>255,-219,-29,-15</bounds>
    			</frame_char>
    			<label_frametop name="coin_label">
    				<anchored to="coinframe" />
    				<static textres="char_label_money" />
    			</label_frametop>
    
    
    			<sub_charcurrency name="sub_currency" />
    			<scrollbar_sub_charcurrency name="scrollbar_currency" />
    			<button_iadd_sub_charcurrency name="currency_iadd" />
    			<button_iedit_sub_charcurrency name="currency_iedit" />
    		</sheetdata>
    	</windowclass>
    	<windowclass name="char_invitem">
    		<margins control="0,0,0,2" />
    		<script>
    			function onInit()
    				getDatabaseNode().onDelete = onDelete;
    			end
    			function onDelete(node)
    				ItemManager.onCharRemoveEvent(node);
    			end
    		</script>
    		<sheetdata>
    			<hidden_record_isidentified name="isidentified">
    				<class>item</class>
    				<ignorehost />
    			</hidden_record_isidentified>
    
    
    			<number_charinv name="count">
    				<bounds>5,2,20,20</bounds>
    				<tabtarget next="name" />
    			</number_charinv>
    
    
    			<genericcontrol name="rightanchor">
    				<anchored width="0" height="0">
    					<top />
    					<right />
    				</anchored>
    				<invisible />
    			</genericcontrol>
    			<button_idelete name="idelete">
    				<anchored width="20" height="20">
    					<top offset="2" />
    					<right parent="rightanchor" anchor="left" relation="relative" offset="-5" />
    				</anchored>
    			</button_idelete>
    			<linkcontrol_id name="shortcut">
    				<anchored width="20" height="20">
    					<top offset="2" />
    					<right parent="rightanchor" anchor="left" relation="relative" offset="-5" />
    				</anchored>
    				<class>item</class>
    				<readonly />
    			</linkcontrol_id>
    			<button_char_inv_carried name="carried">
    				<anchored width="20" height="20">
    					<top offset="2" />
    					<right parent="rightanchor" anchor="left" relation="relative" offset="-5" />
    				</anchored>
    			</button_char_inv_carried>
    			<number_charinv name="weight">
    				<anchored width="30" height="20">
    					<top offset="2" />
    					<right parent="rightanchor" anchor="left" relation="relative" offset="-10" />
    				</anchored>
    				<delaykeyupdate />
    				<tabtarget prev="location" />
    			</number_charinv>
    			<string_charinvloc name="location">
    				<anchored width="80" height="20">
    					<top offset="2" />
    					<right parent="rightanchor" anchor="left" relation="relative" offset="-10" />
    				</anchored>
    				<tabtarget next="weight" prev="nonid_name" />
    			</string_charinvloc>
    
    
    			<string_charinvname name="name">
    				<anchored position="insidetopleft" offset="35,2" height="20">
    					<right parent="rightanchor" anchor="left" relation="current" offset="-5" />
    				</anchored>
    				<tabtarget next="nonid_name" prev="count" />
    			</string_charinvname>
    			<string_charinvname name="nonid_name">
    				<anchored position="insidetopleft" offset="35,2" height="20">
    					<right parent="rightanchor" anchor="left" relation="current" offset="-5" />
    				</anchored>
    				<empty textres="library_recordtype_empty_nonid_item" />
    				<invisible />
    				<tabtarget next="location" prev="name" />
    			</string_charinvname>
    		</sheetdata>
    	</windowclass>
    
    
    	<windowclass name="char_currency">
    		<margins control="0,0,0,5"/>
    		<sheetdata>
    			<list_sub_charcurrency name="list">
    				<anchored position="insidetop" offset="-5,0" />	
    			</list_sub_charcurrency>
    			
    		</sheetdata>
    	</windowclass>
    
    
        <windowclass name="char_currencyitem">
    		<margins control="0,0,0,2" />
    		<sheetdata>
    			<genericcontrol name="rightanchor">
    				<anchored height="0" width="0">
    					<top offset="2" />
    					<right />
    				</anchored>
    			</genericcontrol>
    			<button_idelete name="idelete">
    				<anchored to="rightanchor">
    					<top />
    					<right anchor="left" relation="relative" offset="0" />
    				</anchored>
    			</button_idelete>
    
    
                <number_dropadd name="amount">
    				<anchored to="rightanchor" width="50" height="20">
    					<top />
    					<left parent="" offset="5" />
                    </anchored>
    				<description field="name" />
                    <delaykeyupdate />
    			</number_dropadd>
    
    
    			<string_textlistitem name="name">
    				<anchored to="rightanchor">
    					<top />
    					<left parent="amount" anchor="right" offset="10" />
    					<right anchor="left" relation="relative" offset="-5" />
    				</anchored>
                    <delaykeyupdate />
                    <nodrag />
    			</string_textlistitem>
    		</sheetdata>
        </windowclass>
    </root>

  2. #1272

    Join Date
    Apr 2010
    Location
    Australia
    Posts
    898
    Quote Originally Posted by yako2020 View Post
    I made this on campaign\record_char_inventory.xml
    The latest ruleset release already features the weight of currency as introduced into CoreRPG.
    Timezone: Australian EST (GMT +10).
    Systems/Rulesets: GURPS 4th Edition.
    Campaigns (Ultimate License Holder)
    GURPS Traveller - The Empty Peace
    GURPS Shadowrun - Power Plays
    GURPS Banestorm - Dark Clouds Rising

  3. #1273
    Gosh! It is true! I was the one who got confused and was using my ruleset wrong!

  4. #1274

    Join Date
    Apr 2010
    Location
    Australia
    Posts
    898
    There is a new update for FGU and FGC, which fixes some language issues.

    GURPS 4E Core Ruleset v3.8.1 - FG Unity (FG Unity only)
    FG Forge shop (FG Unity users only): FG Forge Shop
    (Updated: 14th Mar 2022)

    GURPS 4E Core Ruleset v3.7.2 - FG Classic (FG Classic only)
    Download latest release from here: https://bit.ly/GURPS4ECore
    (Updated: 14th Mar 2022)
    Last edited by ronnke; March 14th, 2022 at 06:21.
    Timezone: Australian EST (GMT +10).
    Systems/Rulesets: GURPS 4th Edition.
    Campaigns (Ultimate License Holder)
    GURPS Traveller - The Empty Peace
    GURPS Shadowrun - Power Plays
    GURPS Banestorm - Dark Clouds Rising

  5. #1275

    Join Date
    May 2013
    Location
    East Coast USA.
    Posts
    945
    Quote Originally Posted by ronnke View Post
    There is a new update for FGU and FGC, which fixes some language issues. ...
    Hey Ronnke, thanks for the update!

    I'm not sure if this is a new bug or an old one, but I just noticed that when I un-equip a bow (longbow in my case) on the inventory sheet, and then re-equip the bow. the bow skill does NOT reappear in the combat > ranged weapons tab.

  6. #1276

    Join Date
    Apr 2010
    Location
    Australia
    Posts
    898
    Quote Originally Posted by seycyrus View Post
    Hey Ronnke, thanks for the update!

    I'm not sure if this is a new bug or an old one, but I just noticed that when I un-equip a bow (longbow in my case) on the inventory sheet, and then re-equip the bow. the bow skill does NOT reappear in the combat > ranged weapons tab.
    I am not able to reproduce this issue.

    What I did.

    1. Added a Ranged Weapon to my inventory
    2. Equipped the item.
    3. Adjusted the skill level in the Combat Tab (It's zero by default when first entered)
    4. Unequipped the item in the Inventory Tab.
    5. Checked to see if the item was gone from the Combat Tab. It was.
    6. Equipped the item in the Inventory Tab.
    7. Checked to see if the item was back in the Combat Tab. It was.
    8. Checked the skill level of the various attack mode. They were as I entered them earlier.

    This is what I did...Should this have reproduced the issue you are experiencing?
    Last edited by ronnke; March 14th, 2022 at 23:15.
    Timezone: Australian EST (GMT +10).
    Systems/Rulesets: GURPS 4th Edition.
    Campaigns (Ultimate License Holder)
    GURPS Traveller - The Empty Peace
    GURPS Shadowrun - Power Plays
    GURPS Banestorm - Dark Clouds Rising

  7. #1277

    Join Date
    May 2013
    Location
    East Coast USA.
    Posts
    945
    Quote Originally Posted by ronnke View Post
    I am not able to reproduce this issue.

    What I did.

    1. Added a Ranged Weapon to my inventory
    2. Equipped the item.
    3. Adjusted the skill level in the Combat Tab (It's zero by default when first entered)
    4. Unequipped the item in the Inventory Tab.
    5. Checked to see if the item was gone from the Combat Tab. It was.
    6. Equipped the item in the Inventory Tab.
    7. Checked to see if the item was back in the Combat Tab. It was.
    8. Checked the skill level of the various attack mode. They were as I entered them earlier.

    This is what I did...Should this have reproduced the issue you are experiencing?
    *Sigh* It seems to be working now. I don't know why, maybe I was just blind... or maybe its because I unloaded and loaded extensions in my troubleshooting. I don't know. Thanks. Sorry for taking up your time - a valuable resource.

  8. #1278

    Join Date
    Apr 2010
    Location
    Australia
    Posts
    898
    No probs.
    Timezone: Australian EST (GMT +10).
    Systems/Rulesets: GURPS 4th Edition.
    Campaigns (Ultimate License Holder)
    GURPS Traveller - The Empty Peace
    GURPS Shadowrun - Power Plays
    GURPS Banestorm - Dark Clouds Rising

  9. #1279
    Sorry for my english. Please tell me how to record a direct and amplitude strike into a weapon, as well as a long-range one (for example, knives), so that when transferred to the combat tab, the necessary throw modifiers are created.

  10. #1280

    Join Date
    Apr 2010
    Location
    Australia
    Posts
    898
    You must select "Melee Weapon, Ranged Weapon" in the Type and then separate the various damage types with a "|" symbol. See the highlighted parts of the attacked image.

    KnifeSetup.jpg
    Timezone: Australian EST (GMT +10).
    Systems/Rulesets: GURPS 4th Edition.
    Campaigns (Ultimate License Holder)
    GURPS Traveller - The Empty Peace
    GURPS Shadowrun - Power Plays
    GURPS Banestorm - Dark Clouds Rising

Thread Information

Users Browsing this Thread

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

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
  •  
FG Spreadshirt Swag

Log in

Log in