-
September 18th, 2024, 14:39 #1121
- Join Date
- Jul 2017
- Posts
- 10
Wow, that sounds quite complex. Thank you, it will definitely help. I’ll try to adapt it to what I need in the end. If you’re interested, I can send it to you when I’m done!
-
September 20th, 2024, 21:00 #1122
- Join Date
- Mar 2020
- Posts
- 57
Did someone ever answer this question a few pages back? I am also curious how to add a new tab to a record window, preferably without having to mess with xml using this Ruleset Wizard.
I am trying out the demo and following Damian's Ruleset Wizard Extension Tutorial and the second video isn't working for me where a tab is added. Even though it bugs out and is presumably fixed in future tutorials, it at least adds the tab and is overriding the original functionality, but it doesn't even do that for me. I'm guessing the way tabs work has been recently changed to involve this record_window_tabbed thing that I can't seem to find on the internet except for in this thread a couple pages back and another thread also in 2024, so it's got to be recent, I'm guessing. Is there a way to work around it with Ruleset Wizard currently so I can keep going on in the tutorial?Last edited by SieferSeesSomething; September 20th, 2024 at 21:41.
-
September 21st, 2024, 00:21 #1123
I am trying to learn the new tabs thing still myself...
-
September 21st, 2024, 01:13 #1124
- Join Date
- Mar 2020
- Posts
- 57
Oh wow, it must be fresh then. I suppose I'll just keep an eye on this thread, and wait for people smarter than myself, like you or psicodelix, to figure it out.
Do you think the Ruleset Wizard would still be useful to learn or does that signify other parts of the code have changed too much, and I should wait for some patches for the Ruleset Wizard before I jump in and try to figure it out? Was hoping to use it to help make extensions for existing rulesets. I was learning how to do it manually through XML and Lua before, and I could keep doing that, but this looks like it could really speed the workflow up.
For example, D&D 4th edition doesn't have classes, races, backgrounds, skills, etc, in the sidebar for some reason like other rulesets do, just feats and powers. I was thinking I could possibly use this tool to help mimic that behavior as an extension (and it'd be even more awesome if I could make it so you can drag them onto a character sheet to add them, too). I've got other ideas, but that's probably the next online campaign I'll run, so anything that speeds up the process to make extensions for it sounds tempting.Last edited by SieferSeesSomething; September 21st, 2024 at 01:25.
-
September 21st, 2024, 01:27 #1125
You may have to do the tabs manually in XML (you can create manual XML files in your project via the RSW still) at this time.
Not only have tabs changed but they have not changed across all things at the same time.
Some have new tabs, some have old tabs and I think some might even be in a transitional state too right now.
-
September 22nd, 2024, 07:38 #1126
- Join Date
- May 2020
- Posts
- 40
Hi, also after the last update, where the "npc_pictures" tab occurs, you need to set a xml based vertical tab additionally. But only for npc sheet.
xml_example.png
As Damned mentioned, you have to do a xml script. In my example you can see, it is very easy inside the Ruleset Wizard to create a new xml file an put your code in. I underlined my own code snippet inside the core template, you have to override. This example works, if you only want to add a vertical tab on npc sheet, take it and customize it into your wording. All the other tab functionalities are working in Ruleset Wizard without coding. If that was still familiar , I am sorry!
-
September 22nd, 2024, 07:48 #1127
Great work! One small suggestion Elawyn - consider naming the file something like npc_tabs.xml - the word script might confuse you or someone else at a later time.
-
September 22nd, 2024, 08:00 #1128
- Join Date
- May 2020
- Posts
- 40
Hi Damned, thanks for the hint. I will do.
-
October 13th, 2024, 09:24 #1129
- Join Date
- Jul 2017
- Posts
- 10
Hello again.
I keep working on my ruleset, and have new porblem. I used the standard version with a character sheet that uses "SubWindow". I have charsheet. it has a subwindow. For work, I use charsheet_main and charsheet_weapon, which are switched via verticalTab. charsheet_weapon has a windowlist called weapon_detail. it contains a weapon_detail object. There is a fight cell in weapon_detail. I need to get the value of the Fight_current cell from charsheet_main and assign it to the fight cell from weapon_detail. I used like:
1.local nodeCharSheetMain = window.getDatabaseNode("charsheet_main");
2. local nodeWin = window.getDatabaseNode();
local nodePath = nodeWin.getPath();
local nodeList = nodeWin.getParent().getParent()
and numerous variation of that codes. But it didnt work. I know, i can put Fight_current cell in window list to set value, but i need to keep it on charsheet_main. Is there any solution of this problem?
thanks a lot!
-
October 13th, 2024, 11:01 #1130
Dont get it from the Window. Get it from the database.
Something like:
Code:local nodeChar = window.getDatabaseNode(); Debug.chat("nodeChar: ", nodeChar); local nFight = DB.getValue(nodeChar, "fight_curr", 0); Debug.chat("nFight : ", nFight );
Thread Information
Users Browsing this Thread
There are currently 4 users browsing this thread. (0 members and 4 guests)
Bookmarks