STAR TREK 2d20
  1. #1

    Help with my first ruleset?

    Hey everybody,

    I just bought the full version, and I'm trying to make a character sheet for my game.

    The characters are REALLY simple, and I've included a sample character below.

    My question is this: is there any kind of checkbox? Nothing has real "Numbers" per se, only symbols. I can use numbers but I'd prefer not to. First though, the character.

    Unspent Points: 0

    Aspects
    Body ( ) ( ) ( ) ( )
    Mind ( ) ( ) ( )
    Spirit ( ) ( )

    Details (-5)
    Delusion (sees things in the dark)
    Addict-Alcohol
    Addict-Nicotine
    Supersitious
    Gambler

    Strengths (21+5)
    Firearms * * *
    Kickboxing
    Grappling (C-Kickboxing)
    Psychology
    Dodge * *
    History *
    Occult *
    Research
    Detective
    Sneak
    Conceal
    Spot *
    Listen
    Quick
    Smart
    Knowledge (New York)
    Drive Auto
    Language Latin

    Keys
    - Find out what truth about Mom (8)
    - Find out why Dad disappeared (8)
    - Gain more knowledge in occult and paranormal things (4)
    As you can see, pretty simple. However, I want the aspects to have a series of clickable boxes, signifying damage of some kind (Like they have a value, but as they take damage, the character clicks one of the boxes, and when they fill up, they're out).

    So, any suggestions? Is there a checkbox?

    Is there any way to make your own, custom interaction? (Like, a checkbox that goes in series between empty -> checked -> completely full -> empty)

    Thanks for your help!
    -sean

  2. #2

    Update

    Oh, and I'm very familiar with XML and anything else I need, being a developer -- so spare nothing in your helping!

  3. #3
    Yes, check out the d20 character sheet, the second page, under
    Code:
    <windowclass name="charsheet_skills">
    There is the code used for the check box on the character sheet, if I remember correctly, whatever image is listed for the value "0" is the default.

    Code:
    			<multistate name="appraisestate">
    				<bounds rect="11,50,7,7" />
    				<state value="0" icon="indicator_naskill" />
    				<state value="2" icon="indicator_crossclassskill" />
    				<state value="1" icon="indicator_classskill" />
    			</multistate>
    The icon's image is set in "graphics.xml", near the bottom.To change the image, just create a new one and change the reference in the graphics.xml file.

    Hope that helps!

    Oh one thing I should have added, copy the "graphics.xml" from the data folder and paste it into your ruleset folder, that way you do not mess up the original file used by FG. You will then have to redirect FG from the source data folder to your ruleset as well.
    Last edited by Snikle; October 18th, 2006 at 15:37.
    • snikle •
    . .lapsus calumni. .

  4. #4
    Sweeet!

    Thanks, that is perfect. So it changes state when you click on it?

    Thanks for the info about graphics.xml too.. I'll see if I can get something working

    Thanks a ton!
    -sean
    Last edited by emb; October 18th, 2006 at 15:51.

  5. #5
    mr_h's Avatar
    Join Date
    Dec 2005
    Location
    GMT -5 / EST
    Posts
    548
    Yes it does, I added a ton of check boxes to my character sheet for TSSI using the same method Snikle describes above (I actually have four states, it works the same).
    DM: For reference sake, when a bad guys dies, I'll turn their token over. So an upside down 'A' or 'B' means it's a corpse.
    PC 1: So if we kill a 'M' is it reincarnated as a 'W'?
    PC 2: That damn 'O' just won't die!

  6. #6
    Yeah changing the rulesets is pretty easy to do if you mess around with it a little bit, now that I have done a couple of them, I got most of it down pat, if you have more questions feel free to ask. I am sure if I do not know an answer, someone else here in the community will.
    • snikle •
    . .lapsus calumni. .

  7. #7
    Ok, thanks everybody, I have my checkbox-ish things working great now.

    Here's another question for you: how can you change the font (especialy size) of a text box?

  8. #8
    Quote Originally Posted by emb
    Ok, thanks everybody, I have my checkbox-ish things working great now.

    Here's another question for you: how can you change the font (especialy size) of a text box?
    On how to create a new font and how to insert it into the ruleset read this post:

    https://www.fantasygrounds.com/forum...74&postcount=1

  9. #9
    Great! You guys have been an immense help. I never did get my own custom font working (it would freeze when it opened the character sheet), but I did choose a different preinstalled font, which is working fine.

    Here's a screenshot of my character sheet (with junk information on it). The clickable aspects up top are cool! Anyway, thanks again -- this is good enough for now.



    A few important things I learned. The actual size of the character sheet is set in charsheet.xml, under the <windowclass name="charsheet">, and this controls the size for the starting window for your charsheet.

    The charsheet doesn't work if you delete these tags (obvious now, but at first I thought the name="charsheet_main" windowclass tag was what I was really needing to edit).

    Fonts can freeze the program if you screw them up.

    And, finally, those watching the forums are very helpful.

    Thanks guys!
    -sean

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