PDA

View Full Version : whats the simplest way to add a number with a label?



heavy3p0
March 1st, 2015, 00:47
Hello and thanks in advance.
I'm new to editing FG and am attempting to create a character sheet for a game without a ruleset. I'm trying to create a simple characters sheet with no automation or database functions, just a list of skills and abilities with a box next to each item to enter a number. Can someone please point me in the right direction? thanks.

Thegroo
March 1st, 2015, 01:29
Have a look at this https://www.fantasygrounds.com/forums/showthread.php?23137-Walkthrough-of-Creating-a-Character-Sheet-for-any-game-system-with-zero-coding

Trenloe
March 1st, 2015, 01:33
You can do this very quickly and easily in CoreRPG without needing to edit the underlying ruleset. There are a few examples of what can be done here: https://www.fantasygrounds.com/forums/showthread.php?23138-Share-Game-System-Character-Sheets

And a thread with a video on how to make a CoreRPG character sheet with no coding here: https://www.fantasygrounds.com/forums/showthread.php?23137-Walkthrough-of-Creating-a-Character-Sheet-for-any-game-system-with-zero-coding

The above cover the simplest way to add skill fields etc.

If you really want to code it up, then the best way to do this will be to make a windowlist (https://www.fantasygrounds.com/refdoc/windowlist.xcp) and populate that with your skills from a LUA script - as this will allow you to make it dynamic, add/remove skills etc.. However, if you're not familiar with the windowlist control and LUA in FG then that would be a complex task. So, you might want to make the list static - using number_column and number_columnh controls to hold the values and label_column for the label. See the NPC as an example - this has 3 examples of something very similar for rolls, equipment and languages (using string_column/h controls rather than number_column/h controls, but it's essentially the same). See campaign\record_npc.xml and the npc_main windowclass - you can just keep adding label_column and number_column/h or string_column/h controls and FG will do the spacing etc. for you. Further up in this XML are examples of size and reach - one on the left (label_column and number_column) and one on the right (label_column_right and number_column_right).

heavy3p0
March 1st, 2015, 02:06
I think the number_column controls are what i'm looking for. Thanks for the responses!

damned
March 1st, 2015, 04:27
Suggestion - pointing you back towards CoreRPG again - Add the Number/Value/Skill/Target to the String field and then you can have some basic automation - well dice rolling anyway.
Golgorosh created a French Call of Cthulhu v7 character sheet. https://www.fantasygrounds.com/forums/showthread.php?23138-Share-Game-System-Character-Sheets/page2
Ive added the Skill Rating in [brackets] so you see it in the description and you know that her Driving Skill is 20 when you see the result in the Chat Window.

https://www.fg-con.com/wp-content/uploads/2015/03/CoC7Core.jpg




https://www.fg-con.com/wp-content/uploads/2015/01/fg-con-6-150-1.jpg (https://www.fg-con.com/events/)
FG Con 6 – April 17-19th 2015 - register at www.fg-con.com (https://www.fg-con.com/) for all the latest info.