Thread: CoreRPG basic questions
-
February 18th, 2014, 02:04 #21
- Join Date
- May 2013
- Location
- East Coast USA.
- Posts
- 945
-
February 18th, 2014, 03:48 #22
What needs to be in definition.xml to see it in CoreRPG? The only module I can seem to get to open in CoreRPG is Calendar...
-
February 18th, 2014, 03:55 #23
I believe if you leave the <ruleset> tag empty it will default to CoreRPG.
I never claimed to be sane. Besides, it's more fun this way.
-
February 18th, 2014, 04:12 #24
- Join Date
- Apr 2011
- Posts
- 2,253
-
February 18th, 2014, 05:31 #25
I have tried Any, CoreRPG and blank.
Maybe there is something else I am missing?
definition.xml
db.xml
zip it up and rename it .mod
-
February 18th, 2014, 06:39 #26
-
February 18th, 2014, 10:43 #27Private 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!
-
February 18th, 2014, 11:10 #28
-
February 18th, 2014, 12:15 #29
Ok - I dont know why I couldnt convert Nickademus's .mod but doing it the other way - creating some content in the campaign and exporting it and then updating that file has worked for me...
And yes - at least on some of those attempts I did zip up the root folder too - doh!
So... moving along...
To be able to drag content (of any nature) into a character sheet... like you can drag spells into spell sheet and items and armour and weapons into inventory.... Is that coding in the spells/armour/weapons/equipment lists/database/module or in the character sheet tab?
Look I *know* I'm asking some dumb questions - but I'm finding this really bloody hard ok!
-
February 18th, 2014, 12:53 #30
It's all in the character sheet control where the drag-drop is taking place.
Assuming you're doing this in the C&C ruleset?
Look at \campaign\record_char_abilities.xml - the "abilitylist" control is defined as follows:
Code:<list_text name="abilitylist"> <anchored to="abilityframe"> <top offset="30" /> <left offset="15" /> <right offset="-15" /> <bottom offset="-15" /> </anchored> <datasource>.abilitylist</datasource> <class>char_ability</class> <sortby><control>value</control></sortby> <newfocus>value</newfocus> <acceptdrop> <class>ability</class> <field>*</field> </acceptdrop> <script> function onDrop(x, y, draginfo) local sDragType = draginfo.getType(); if sDragType == "shortcut" then local sClass, sRecord = draginfo.getShortcutData(); if sClass == "ability" then local w = createWindow() if w then local n = w.getDatabaseNode(); DB.copyNode(sRecord, n); DB.setValue(n, "locked", "number", 1); end end return true; end end </script> </list_text>
Code:w.value.setValue(DB.getValue(nodeSource, "name", "")); w.shortcut.setValue(draginfo.getShortcutData());
Another way for you to do this is to add an extra tab and put a <formattedtextcontrol> in the tab: https://www.fantasygrounds.com/refdo...extcontrol.xcp These have the ability to have links embedded - but there is not direct drag-drop capabilities, you need to enable the link first and then drag/drop the item to the link - just like creating links in Story entries.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!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks