Thread: Character Sheet questions
-
March 17th, 2014, 03:44 #11
Doh!
Too many things running around my head just now - yes we talked about Traps being NPCs...
The spells thingy sounds like coding to me...
-
March 17th, 2014, 04:01 #12Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
March 17th, 2014, 12:17 #13
Regarding putting these things on a wishlist; moon_wizard does maintain a list of things people want in the CoreRPG ruleset that most rulesets will soon be built on top of, as well as in Fantasy Grounds in general.
However, if there is something that's really only relavant to Castles & Crusades, Dr. Venture started up a side list to track those: https://cncdev.idea.informer.com/
Might be better to track C&C stuff there, esp. as I hear rumours that someone might start picking off some of those items real soon.
Regards,
Ben (-PW-)Former SW ruleset / Deadlands extension author. Now I just wanna play a few games. And maybe hack. A little.
-
March 17th, 2014, 12:43 #14
man oh man... you guys give me a warm fuzzy feeling.
-
March 19th, 2014, 15:42 #15
Forgot to point out that when you have an ability that gives you a bonus to something (i.e. Fearless) you can hover your mouse pointer over the box with the basic modifier and roll the wheel and it will increase or decrease and you'll see the modifier in a small bubble. Probably not explaining it well and don't have access to a screenshot.
"I am a Canadian, free to speak without fear, free to worship in my own way, free to stand for what I think right, free to oppose what I believe wrong, or free to choose those who shall govern my country. This heritage of freedom I pledge to uphold for myself and all mankind."
- John Diefenbaker
RIP Canada, February 21, 2022
-
March 20th, 2014, 18:27 #16
- Join Date
- Apr 2012
- Location
- Prosper, TX
- Posts
- 727
As I'm working through the Castles & Crusades plugin for Hero Lab, I'm at the same time working on a converter that takes Hero Lab output xml and creates an input xml for Fantasy Grounds.
The current part I'm working on is getting gear into the inventory.
I started with weapons and armor.
I know I can drag stuff from the players handbook onto the character sheet...
What I want to know is there's some way to drag an item (like a long sword) from the inventory tab, and have it appear in the combat tab.
I know that if you drag it from the players handbook, it does this. But my XML so far only populates inventory, there's a different section for combat inventory.
So, what happens is I'm populating inventory, but it's not appearing in the combat tab.
It's easy enough to code this, but just wondering if there's a way to drag something from the inventory and make it appear in the combat tab.
TL : DR
Can you drag an item from the inventory tab and have it appear in the combat tab?
BoomerETNo signature needed, please leave parcel on the porch.
-
March 20th, 2014, 19:14 #17
I don't think you can - at least I haven't found a way to do it through the user interface.
But, you want to do this programmatically, right?
Look in campaign\scripts\manager_char.lua (in the C&C ruleset) and you'll find a function called addtoWeaponDB(nodeitem) - this function can be called to add an item DB record to the <weaponlist> entry in the charsheet database.
This will give you an idea of the code and database structure used to create a <weaponlist> database entry based off the inventory item data.
EDIT: You might be able to write a right-click function in an extension that can be used to run addtoWeaponDB for a specific inventory item??
Or, put a flag in your original inventory list XML that indicates it is from an external source (import) and then have code in an extension that parses through the inventory items and creates the weaponlist entries with addtoWeaponDB - then remove the flag so that it only happens the first time the character sheet is opened.Last edited by Trenloe; March 20th, 2014 at 19:18.
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
March 20th, 2014, 20:00 #18
- Join Date
- Apr 2012
- Location
- Prosper, TX
- Posts
- 727
Trenloe,
Thanks for all that info, wow.
I think the best way for me to handle this is just add the weaponlist to my existing code. Don't want players/GM's to have to depend on an extension.
(Unless of course, it makes it's way into the official package?)
BoomerETNo signature needed, please leave parcel on the porch.
-
March 21st, 2014, 02:02 #19
i also tried lots of things and couldnt get it to drag. drag it to inventory it auto adds. create it in inventory - no joy.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks