Page 2 of 2 First 12
  1. #11
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    GMT -7
    Posts
    7,463
    Blog Entries
    9
    Why not just use the link method from something like the 5E sheet where you can click on a class item and have the class entry open up? Same thing used with the items and everything else. Maybe that would be easier?

    Current Projects: Ultimate Undermountain (NYDUM)
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets
    DMsGuild Content: Balance Disturbed (Adventure), Dungeon Room Descriptions
    FG Product Reviews: Virtual Scribe Reviews

  2. #12
    Untitled.jpg

    I did it brute force

    Code:
    <windowclass name="perceptionsheet">
    		<placement>
    			<size>
    				<width>525</width>
    				<height>600</height>
    			</size>
    		</placement>
    		<nodelete />		
    		<playercontrol />
    		<sheetdata>
    			<genericcontrol name="perceptionframe">
    				<bounds>0,0,525,600</bounds>
    				<frame>
    					<name>storybox</name>
    				</frame>
    			</genericcontrol>
    			<stringcontrol name="perception_header">
    				<anchored>
    					<to>perceptionframe</to>
    					<position>insidetopleft</position>
    					<offset>220,30</offset>
    				</anchored>
    				<center />
    				<static>Perception </static>
    				<font>narratorfont</font>
    			</stringcontrol>
    			<stringcontrol name="perc_desc1">
    				<anchored>
    					<to>perceptionframe</to>
    					<position>insidetopleft</position>
    					<offset>35,50</offset>
    				</anchored>
    				<left />
    				<font>sheettextsmall</font>
    				<static>Perception measures a character’s ability to observe his environment. This may </static>
    			</stringcontrol>
    			<stringcontrol name="perc_desc2">
    				<anchored>
    					<to>perceptionframe</to>
    					<position>insidetopleft</position>
    					<offset>15,62</offset>
    				</anchored>
    				<left />
    				<font>sheettextsmall</font>
    				<static>involve a conscious effort, such as searching an area, but it is more often intuitive,</static>
    			</stringcontrol>
    			<stringcontrol name="perc_desc3">
    				<anchored>
    					<to>perceptionframe</to>
    					<position>insidetopleft</position>
    					<offset>15,74</offset>
    				</anchored>
    				<left />
    				<font>sheettextsmall</font>
    				<static>as the character’s keen senses notice something out of the ordinary. Perception is</static>
    			</stringcontrol>
    			<stringcontrol name="perc_desc4">
    				<anchored>
    					<to>perceptionframe</to>
    					<position>insidetopleft</position>
    					<offset>15,86</offset>
    				</anchored>
    				<left />
    				<font>sheettextsmall</font>
    				<static>a sensitivity to one’s surroundings, and is seldom present in the cynical or jaded</static>
    			</stringcontrol>
    			<stringcontrol name="perc_desc5">
    				<anchored>
    					<to>perceptionframe</to>
    					<position>insidetopleft</position>
    					<offset>15,98</offset>
    				</anchored>
    				<left />
    				<font>sheettextsmall</font>
    				<static>(who have seen it all before).</static>
    			</stringcontrol>
    			<stringcontrol name="perc_desc6">
    				<anchored>
    					<to>perceptionframe</to>
    					<position>insidetopleft</position>
    					<offset>35,110</offset>
    				</anchored>
    				<left />
    				<font>sheettextsmall</font>
    				<static>Perception is used to determine whether or not a character understands a given</static>
    			</stringcontrol>
    			<stringcontrol name="perc_desc7">
    				<anchored>
    					<to>perceptionframe</to>
    					<position>insidetopleft</position>
    					<offset>15,122</offset>
    				</anchored>
    				<left />
    				<font>sheettextsmall</font>
    				<static>situation or detects an environmental stimulus. It can warn a character of ambushes,</static>
    			</stringcontrol>
    			<stringcontrol name="perc_desc8">
    				<anchored>
    					<to>perceptionframe</to>
    					<position>insidetopleft</position>
    					<offset>15,134</offset>
    				</anchored>
    				<left />
    				<font>sheettextsmall</font>
    				<static>distinguish a clue from a pile of refuse, or uncover any other hidden or overlookable</static>
    			</stringcontrol>
    			<stringcontrol name="perc_desc9">
    				<anchored>
    					<to>perceptionframe</to>
    					<position>insidetopleft</position>
    					<offset>15,146</offset>
    				</anchored>
    				<left />
    				<font>sheettextsmall</font>
    				<static>detail, whether physical or otherwise.</static>
    			</stringcontrol>
    			<stringcontrol name="perc_desc10">
    				<anchored>
    					<to>perceptionframe</to>
    					<position>insidetopleft</position>
    					<offset>15,159</offset>
    				</anchored>
    				<left />
    				<font>narratorfont</font>
    				<static>Specialties: Attentive, Insightful, Careful, Discerning, Tactical</static>
    				</stringcontrol>
    			<closebutton_charsheetmini />
    		</sheetdata>	
    	</windowclass>
    My shame is great but I am happy. If anyone knows how to do this with less code please, teach me!
    Last edited by Moon Wizard; June 14th, 2019 at 16:58.

  3. #13
    I've included a sample below of what it might look simplified a bit.

    However, the main issue you are going to have is that you will not be able to distribute this ruleset, since it contains exact text blocks from the books. This is why people have been suggesting links or records previously.

    In the 5E ruleset, when clicking on a skill entry, the code in the character sheet attempts to look up the link "reference.skills.<skillname>@*" in order to display the details of the skill. The data pack which contains the skill description is provided by the publisher as an official module. If no official module is available, then the link does not work, but a custom module can be created by the user. If you did something similar, you would also need to build skill or attribute records in order to reference.

    My suggestion is to keep poking around like you are already doing in order to build something for yourself and learn more about how the FG interface works. You can always come back to change or refine later as you learn more.

    Regards,
    JPG

    This code has not been tested, so it may need some adjustments.
    Code:
    <windowclass name="perceptionsheet">
    		<placement>
    			<size>
    				<width>300</width>
    				<height>300</height>
    			</size>
    		</placement>
    		<nodelete />
    		<sheetdata>
    			<genericcontrol name="perceptionframe">
    				<bounds>0,0,525,600</bounds>
    				<frame>
    					<name>storybox</name>
    				</frame>
    			</genericcontrol>
    			<stringcontrol name="perception_header">
    				<anchored>
    					<to>perceptionframe</to>
    					<position>insidetopleft</position>
    					<offset>220,30</offset>
    				</anchored>
    				<center />
    				<static>Perception </static>
    				<font>narratorfont</font>
    			</stringcontrol>
                            <stringcontrol name="perc_desc">
    				<anchored>
    					<to>perceptionframe</to>
    					<position>insidetop</position>
    					<offset>35,50</offset>
    				</anchored>
    				<multilinespacing>20</multilinespacing>
    				<font>sheettextsmall</font>
                                    <static>Perception measures a character’s ability to observe his environment. This may involve a conscious effort, such as searching an area, but it is more often intuitive, as the character’s keen senses notice something out of the ordinary. Perception is a sensitivity to one’s surroundings, and is seldom present in the cynical or jaded (who have seen it all before).\rPerception is used to determine whether or not a character understands a given situation or detects an environmental stimulus. It can warn a character of ambushes, distinguish a clue from a pile of refuse, or uncover any other hidden or overlookable detail, whether physical or otherwise.\r\rSpecialties: Attentive, Insightful, Careful, Discerning, Tactical</static>
                            </stringcontrol>
    			<closebutton_charsheetmini />
    		</sheetdata>	
    	</windowclass>

  4. #14
    Quote Originally Posted by Druthlen View Post
    Attachment 27573

    So you see the character sheet. I want to add buttons that have info on the attributes. So far my button pops up. It has my window with a header. It has a section where I can type text in but I want to make that text automatic so I don't have to add it per character.
    You can create a library mod with all the explanatory text, then drag links from the relevant windows to the corresponding spots on your character sheet. That approach is used in Savage Worlds, The One Ring, 5E...

    Running: GUMSHOE--Esoterrorists; Learning: The One Ring
    Want to play: City of Mist, Dresden Files RPG

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in