DICE PACKS BUNDLE
Page 1 of 2 12 Last
  1. #1

    window lists for npcs,creatuers, and spells demo?! willing to pay.

    Hi guys,
    I'm looking to correctly create a link list, or lists for spells, NPCs, and creatures. either on the same page or separate pages. damned briefly touched on it in his video, and I was fascinated! it's just what I need to complete my project. I tried to replicate it from his video but with no luck.
    I am almost complete with creating my ext. I just need more info on link lists, and how to get them to function correctly for those three tables. Any info would help. if you are willing to create a demo/tutorial I will be happy to pay you for your time. you can pm me about payment if you are interested or post any info you have on the subject here.

    thanks a bunch.

  2. #2

    what info goes ino what input?!

    ok, I think I narrowed down the problem. I need to know what goes into the "accept drop classes" collections, data source, and class name for each widow list NPC, creatures, and spells. hopefully, that info would correct the issue of getting them to work correctly. also, can I put them on the same page or do I have to create a separate page for each window list?

    window lists.jpg
    Last edited by twoditdmonk; June 4th, 2023 at 20:41.

  3. #3

    the pages in code form.

    here's the code for the Windows the red code is not correct from what I understand. I don't know what to put into these fields.

    window list main window code "tab6page"

    tab 6 page.jpg

    Code:
    <root>
      <windowclass name="tab6page">
        <placement>
          <size height="416" width="354" />
        </placement>
        <sizelimits resize="both">
          <dynamic />
        </sizelimits>
        <sheetdata>
          <stringcontrol name="main_Tab_Label">
            <bounds>8,9,100,20</bounds>
            <tooltip textres="tab6page_main_Tab_Label_Tooltip" />
            <center />
            <static textres="tab6page_main_Tab_Label_LabelCaption" />
            <font>reference-h</font>
            <readonly />
          </stringcontrol>
          <windowlist name="WindowListSpells">
            <frame>
              <name>fielddark</name>
            </frame>
            <anchored>
              <left offset="8" />
              <right offset="-7" />
              <top offset="38" />
              <bottom offset="-266" />
            </anchored>
            <tooltip textres="tab6page_WindowListSpells_Tooltip" />
            <class>subwindowlistSpells</class>
            <datasource>.spells</datasource>
            <acceptdrop>
              <class>spells</class>
              <field>*</field>
            </acceptdrop>
            <filter>
              <control>spells</control>
            </filter>
          </windowlist>
          <windowlist name="WindowListHeros">
            <frame>
              <name>fielddark</name>
            </frame>
            <anchored>
              <left offset="11" />
              <right offset="-9" />
              <top offset="160" />
              <bottom offset="-145" />
            </anchored>
            <tooltip textres="tab6page_WindowListHeros_Tooltip" />
            <class>subwindowlistHeros</class>
            <datasource>.heros</datasource>
            <acceptdrop>
              <class>npc</class>
              <field>*</field>
            </acceptdrop>
          </windowlist>
          <windowlist name="WindowListMonsters">
            <frame>
              <name>fielddark</name>
            </frame>
            <anchored>
              <left offset="12" />
              <right offset="-13" />
              <top offset="281" />
              <bottom offset="-9" />
            </anchored>
            <tooltip textres="tab6page_WindowListMonsters_Tooltip" />
            <class>subwindowlistMonsters</class>
            <datasource>.monsters</datasource>
            <acceptdrop>
              <class>creature</class>
              <field>*</field>
            </acceptdrop>
          </windowlist>
        </sheetdata>
      </windowclass>
    </root>
    "subwindowlistspells"

    subwindowlistspells.jpg

    Code:
    <root>
      <windowclass name="subwindowlistSpells">
        <placement>
          <size height="25" width="556" />
        </placement>
        <sheetdata>
          <linkfield name="LinkField1">
            <bounds>7,4,20,20</bounds>
            <description>
              <field>name</field>
            </description>
            <class>spelllist_entry</class>
            <selfonempty />
            <allowdrop />
          </linkfield>
          <stringcontrol name="name">
            <bounds>33,3,515,20</bounds>
            <readonly />
          </stringcontrol>
        </sheetdata>
      </windowclass>
    </root>
    I don't know what to put in the links class for monsters, and NPCs also. So I didn't complete them.
    Last edited by twoditdmonk; June 5th, 2023 at 06:35.

  4. #4
    datasource is the location in the database where the subrecords for that list are stored. Type /save in the chat window, and then look at the db.xml to see what gets created. (Best to do in a new campaign to minimize data you're looking through.)

    acceptdrop is an older method to specify what window class shortcut drops are accepted for drops, and which fields to copy (i.e. * = all fields). This can also be accomplished via handling onDrop event in the windowlist control. In general, leave off acceptdrop unless you specifically want a record to be dropped on the list from elsewhere, and you know that the dropped record has the same structure as the list records.

    Regards,
    JPG

  5. #5
    thanks that helped a little but it's still not working.
    I need more to go on I am new when it comes to the rules wizard.

    <npc> must mean data source .npc?
    <spell> must mean data source .spell?
    could not find monsters, encounters, or creatures!
    Last edited by twoditdmonk; June 5th, 2023 at 12:59.

  6. #6

    i found this in the windows dtabase?!

    I found this in the windows database?!

    Code:
    	<window data="reference.npcdata.id-00001@AD&amp;D 2E Monstrous Manual" class="npc" pos="649,337,1129,887" />
    	<window data="spell.id-00001" class="power" pos="479,322,829,672" />
    does it mean the data source for NPCs should be
    Code:
    .reference.npcdata
    and the link window class should be npc?

    and for spells, the data source should be
    Code:
    .spell
    and the link window class should be power?
    Last edited by twoditdmonk; June 5th, 2023 at 13:53.

  7. #7
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,362
    Maybe provide us with a bit more information about what you're trying to achieve.

    Are you trying to display a list of all NPCs, spells, etc.? If so, this is done in the ruleset library file - adding buttons to the sidebar down the right side, using the aRecords LUA table in the Core RPG ruleset scripts\data_library.lua file - there are a lot of comments at the top of this file. For examples of adding/modifying the CoreRPG data in a layered ruleset or extension, see the 5E ruleset, scripts\data_library_5E.lua.lua for example - the aRecordOverrides table is used to add new records or override existing ones.

    If this is not what you're trying to do, then please provide more information - are you wanting to display a complete list of all NPCs, spells, etc. in a custom window you're creating (if so, what's the use case?) Or are you wanting to store a subset of these in a windowlist - e.g. the Encounter windowlist that stores links to NPCs.

    Knowing exactly what you're wanting to do will determine what advice we can give.
    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!

  8. #8
    Quote Originally Posted by Trenloe View Post
    Maybe provide us with a bit more information about what you're trying to achieve.

    Are you trying to display a list of all NPCs, spells, etc.? If so, this is done in the ruleset library file - adding buttons to the sidebar down the right side, using the aRecords LUA table in the Core RPG ruleset scripts\data_library.lua file - there are a lot of comments at the top of this file. For examples of adding/modifying the CoreRPG data in a layered ruleset or extension, see the 5E ruleset, scripts\data_library_5E.lua.lua for example - the aRecordOverrides table is used to add new records or override existing ones.

    If this is not what you're trying to do, then please provide more information - are you wanting to display a complete list of all NPCs, spells, etc. in a custom window you're creating (if so, what's the use case?) Or are you wanting to store a subset of these in a windowlist - e.g. the Encounter windowlist that stores links to NPCs.

    Knowing exactly what you're wanting to do will determine what advice we can give.
    I just want to add certain new spells, NPCs, and monsters to a separate window list for each on the same page. my ext requires it because it allows the gm to create NPCs, monsters, and new spells to a certain created mythology and link them to that page. I'm trying to figure out what to input for data source, and accept dropfield class on each window list. Also, what to input on the window class on the linkfield button for each one. I provided pics, and an example code to show what I'm trying to achieve. what I need is a tutorial or a demo/ext file of a working windows list of NPC, monsters, and spells, or the correct coding to acheive this. thanks a bunch. damned briefly touched on it in his video
    Last edited by twoditdmonk; June 5th, 2023 at 15:42.

  9. #9
    oh, it's for corerpg and 2ed d and d rulesets! i still need his PayPal info so i can pay him for those video tutorials
    Last edited by twoditdmonk; June 5th, 2023 at 15:59.

  10. #10
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,362
    I'm still not 100% clear on exactly what you want to do. So let's run through an example - a list of NPCs:

    • There is a campaign master list of NPCs - where the GM can create new NPCs or edit existing ones; this is all handled by FG natively via the NPCs sidebar.
    • You want to allow a GM to link specific NPCs to another page - I'm not clear if this is purely for reference or if there's some other functionality around this list of linked NPCs.


    So, you have a couple of options:
    1. Make a Story or Reference Manual page and drag/drop your NPC links to that page. If what you're looking for is a list of NPCs, then this is your simplest way to do it. See the first screenshot below as an example.
    2. Program a windowlist "somewhere" where you can drag/drop NPCs to. I'm not clear on the "somewhere" - where would this NPC list be applied to? That is, what other window will this windowlist be located within? A basic example of this (an NPC windowlist within another window) is the Encounter window - where NPCs are added to a windowlist within an encounter record. This allows for multiple different encounters, with each encounter having one or more NPCs linked.
    3. You also have a third option - but this depends on exactly what you're actually trying to do. If all you want is the ability for a GM to have a list of specific NPCs, then you can add a field to an NPC and use that as a filter (#1 in the second screenshot below) - then you can filter the NPCs in the standard NPC campaign data lists, or write a grouped list button at the top of the NPC campaign data list that will open and just display the NPCs that have a specific field value (#2 in the second screenshot below).


    If these aren't what you're looking for, then please provide more details so that we can give advice which is specific to exactly what your end goal is.



    Attached Images Attached Images
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Starfinder Playlist

Log in

Log in