FG Spreadshirt Swag
Page 6 of 11 First ... 45678 ... Last
  1. #51
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,719
    Blog Entries
    1
    string_useredit and string_useredit_bold are templates I wrote for MoreCore
    They allow these fields to be User Editable.
    But they also have a default value.
    The very first time they are viewed the default value is applied but it will only do this one time.
    If you change the field it will now always have that value.
    If you open a new Charsheet it should have teh default values.
    This used to catch me out regularly!

  2. #52
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,719
    Blog Entries
    1
    For the Attack frame - to modify it in the Extension do this:

    Code:
    	<windowclass name="charsheet_more" merge="join">
    		<script>
    			function onInit()
    				self.onSizeChanged = resizeFrames;
    			end
    
    			function resizeFrames(sourceWindow)
    				local nWidth,_ = getSize();
    				combatframe.setStaticBounds((nWidth/3*2)-15, 45, (nWidth/3)-15, 170)
    				attackframe.setStaticBounds(15, 0, (nWidth*2/3)-30, 215)
    				cas2.setStaticBounds((nWidth/3), 215, (nWidth/3)-15, 240)
    			end
    		</script>
    Include the whole script section and set your new parameters.

  3. #53
    Thank you very much for that.
    I feel a bit silly now, but I hope this is one typically error that everyone goes through.

    I will try the code you gave me, and see if I can make it function.

    But I have techincal question here (see picture)SkillsFrame2.PNG.

    As you can see inside the blue field the top "charm" is cut off.
    And the bottom "charm animal" is not.

    The difference is that I've used anchored position "below" for the charm, and "insidetopleft" for charm animal.

    Code:
    <<string_useredit name="charm">
    		<anchored to="bribery" position="below" offset="0,10" />
    		<default>Charm</default>
    		<tooltip textres="label_editable" />
    	</string_useredit>
    
    <string_useredit name="charmanimal">
    		<anchored to="charm" position="insidetopleft" offset="0,28" />
    		<default>Charm Animal</default>
    		<tooltip textres="label_editable" />
    	</string_useredit>
    So I used "below" because I thought that this would create a prettier code.

    Just now I tested with "belowleft" instead, and that worked perfectly.
    Why does "below" cut the text of where the anchored text stops?

    Just trying to figure out how things work. Thanks.

  4. #54

  5. #55
    Damned,

    I have been working thru these videos, and it appears in Video 5 you are changing the files directly in the MoreCore directory instead of the extension. At 24.04, you actually changed some code, I looked at the ext code, and couldn't find where you were changing this. And it wasn't in the dbdcombat lua file in the MoreCore script files either. I am loath to actually change the MoreCore, as I assume I could blow some of the files up. Where was this changed? Should I be making a lua script file in the extension folder?

  6. #56
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,719
    Blog Entries
    1
    Hi Amatiste

    All rolls shoudl really be in the MoreCore ruleset just so that they are available to everyone.
    I encourage everyone to make new rolls and donate them to MoreCore.
    I cant recall Video 5 but based on its title Im making new rolls and as such I was doing it in the ruleset.
    You can create a roll in an extension if you prefer.

    What are you working on? Any sneak peeks?

  7. #57
    Good day! I'm just looking to hide the MoreData and Abilities tabs...how exactly do I do this? Can't seem to find it.

    Thanks,

    GBFF
    Ultimate Edition license holder - No License Needed to Play My Games (Need Demo Version of FG Downloaded)

    Timezone: Eastern Standard Time (EDT) United States; GMT -4 hours

    Game in Progress: AD&D 2e - Against the Zhentarim

  8. #58
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,719
    Blog Entries
    1
    Gunbunny

    in your extension do something like this:
    file \campaign\record_char.xml
    Code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <root>
    	<windowclass name="charsheet" merge="join">
    		<sheetdata>
    			<subwindow name="more">
    				<bounds>0,65,-1,-20</bounds>
    				<class>charsheet_more</class>
    			</subwindow> 
    			<subwindow name="main">
    				<bounds>0,65,-1,-20</bounds>
    				<class>charsheet_main</class>
    			</subwindow>
    			<subwindow name="inventory">
    				<bounds>0,65,-1,-20</bounds>
    				<class>charsheet_inventory</class>
    			</subwindow>
    			<subwindow name="notes">
    				<bounds>0,65,-1,-20</bounds>
    				<class>charsheet_notes</class>
    			</subwindow>
    
    			<tabs_charsheet>
    				<tab>
    					<icon>tab_more</icon>
    					<subwindow>more</subwindow>
    				</tab> 
    				<tab>
    					<icon>tab_main</icon>
    					<subwindow>main</subwindow>
    				</tab>
    				<tab>
    					<icon>tab_inventory</icon>
    					<subwindow>inventory</subwindow>
    				</tab>
    				<tab>
    					<icon>tab_notes</icon>
    					<subwindow>notes</subwindow>
    				</tab>
    				<activate>1</activate>
    			</tabs_charsheet>
    			<helper_mc_charsheet />
    		
    			<close_charsheet />
    		</sheetdata>
    	</windowclass>
    </root>

  9. #59
    Here is the code from the video, and the code from the manager_custom_dbdamage_lua file. I guess my concern is that all the other code you mention in the video is there. This is not. Should I add the code into the file? Since I got the pak from here, I am nervous this could be an up to date file and I could be causing a problem.
    Annotation 2020-04-12 192223.png
    manager_custom_dbdamagelua.png

  10. #60
    I am only following your videos, trying to figure out how this works to be able to make something of my own So this is just Damned Basic Dungeon

    Also, I cant seem to get the attack rolls correct. For testing, I made a simple rat, using the help file. and its not adding up correctly. First picture is how I have it built. Second is my results. I used the same build for attack and damage as the "PC." Am I doing things incorrectly? Or did I miss a parameter
    Attachment 33579
    Attachment 33580

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 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
  •  
DICE PACKS BUNDLE

Log in

Log in