FG Spreadshirt Swag
Page 1 of 2 12 Last

Thread: Module Creation

  1. #1
    dellanx's Avatar
    Join Date
    Sep 2015
    Location
    Chicago, IL
    Posts
    954

    Module Creation

    How does one get this level of module organization? When I export an NPC module, all I get is "NPCs". Does this require XML editing?

    Code:
    	<library>
    		<testsummon static="true">
    			<categoryname type="string"></categoryname>
    			<name type="string">testsummon</name>
    			<entries>
    				<npc>
    					<librarylink type="windowreference">
    						<class>reference_list</class>
    						<recordname>..</recordname>
    					</librarylink>
    					<name type="string">NPCs</name>
    					<recordtype type="string">npc</recordtype>
    				</npc>
    			</entries>
    		</testsummon>
    	</library>
    What i don't understand is NPCs may be changed to NPC 1, NPC 2, etc...


    Untitled.jpg

  2. #2
    Kelrugem's Avatar
    Join Date
    Sep 2018
    Location
    Geneva, Switzerland, and Lyon, France
    Posts
    2,733
    Yeah, I think such things are done directly in xml

    By the way, you may want to cut down your screenshot; one can see your campaign password there (because you took a screenshot of all your monitors, also with your FB page and the conversations there)

  3. #3
    dellanx's Avatar
    Join Date
    Sep 2015
    Location
    Chicago, IL
    Posts
    954
    Quote Originally Posted by Kelrugem View Post
    Yeah, I think such things are done directly in xml

    By the way, you may want to cut down your screenshot; one can see your campaign password there (because you took a screenshot of all your monitors, also with your FB page and the conversations there)
    Opps thought I trimmed that thanks!

  4. #4

    Join Date
    May 2016
    Location
    Jacksonville, FL
    Posts
    2,100
    Blog Entries
    7
    [deleted body content]
    Last edited by Talyn; January 10th, 2021 at 23:57.

  5. #5
    dellanx's Avatar
    Join Date
    Sep 2015
    Location
    Chicago, IL
    Posts
    954
    Quote Originally Posted by Talyn View Post
    Aside from "hi, here's my password" that was waaaaaaaay too big a shot anyway. Thanks for paring it down to something a bit more manageable.

    The library category is literally in the export dialog though:



    Unless you're talking about breaking down the NPCs per level in which case, yes that'd be an XML job.

    Attachment 42772
    May one have more then one category per module?

  6. #6

    Join Date
    May 2016
    Location
    Jacksonville, FL
    Posts
    2,100
    Blog Entries
    7
    No, and I think I misunderstood what you were asking originally since the screenshot was so huge and you copied the library text so... anyway the category that you set in the export dialog is the text category in your library page and there's only one of those.

    Could you post a more concise example of what you're trying to do? There are a couple list types already in FG that you could point to (still an XML job) or create a custom list. I do that all the time for practically every project I work on. Some lists are easy (FG does all the hard work) where some of the older list types are fully manual (you have to build each entry yourself) which is still ... "easy" it's just time-consuming and tedious.

  7. #7
    dellanx's Avatar
    Join Date
    Sep 2015
    Location
    Chicago, IL
    Posts
    954
    Quote Originally Posted by Talyn View Post
    No, and I think I misunderstood what you were asking originally since the screenshot was so huge and you copied the library text so... anyway the category that you set in the export dialog is the text category in your library page and there's only one of those.

    Could you post a more concise example of what you're trying to do? There are a couple list types already in FG that you could point to (still an XML job) or create a custom list. I do that all the time for practically every project I work on. Some lists are easy (FG does all the hard work) where some of the older list types are fully manual (you have to build each entry yourself) which is still ... "easy" it's just time-consuming and tedious.
    I export a Module "test-summon"

    Untitled.jpg

    The Astral Deva and Barbed Devil (hamatula) are organized under NPCs. I would like there to be Summoned NPC 9 for Astral Deva and Summoned NPC 8 for Barbed Devil (hamatula).

    Just like in this module: Summonable Monsters.mod here. The problem with that module is that the special abilities are not parsed. I am able to do that, but I would like to organize my summoned monsters by spell type.

    Thanks

  8. #8

    Join Date
    May 2016
    Location
    Jacksonville, FL
    Posts
    2,100
    Blog Entries
    7
    Oh, gotcha. What Blackfoot did was create separate XML lists for each summon level, which was really the only way to do it back in 2013. What I'd probably do today is add a custom tag to each monster entry then code a single reference_groupedlist to have FG create the list and categorize them for me on the fly. Either way it's six of one, half-dozen of the other, and it's working in the XML no matter what.

    Something along the lines of:

    Code:
    <summonlevel type=string">Summon Monsters 8</summonlevel>
    which I would manually add to each NPC once it's been exported.
    Last edited by Talyn; January 11th, 2021 at 00:02.

  9. #9
    dellanx's Avatar
    Join Date
    Sep 2015
    Location
    Chicago, IL
    Posts
    954
    Not getting very far, came up with this, but something is wrong:

    <name type="string">NPCs</name>
    <recordtype type="string">npc</recordtype>
    <reference_list type="string">summonlevel</reference_list>

    and

    <summonlevel type="string">Summon Monsters 8</summonlevel>
    <name type="string">Barbed Devil (hamatula)</name>
    Thanks

  10. #10
    dellanx's Avatar
    Join Date
    Sep 2015
    Location
    Chicago, IL
    Posts
    954
    Quote Originally Posted by Talyn View Post
    Oh, gotcha. What Blackfoot did was create separate XML lists for each summon level, which was really the only way to do it back in 2013. What I'd probably do today is add a custom tag to each monster entry then code a single reference_groupedlist to have FG create the list and categorize them for me on the fly. Either way it's six of one, half-dozen of the other, and it's working in the XML no matter what.

    Something along the lines of:

    Code:
    <summonlevel type=string">Summon Monsters 8</summonlevel>
    which I would manually add to each NPC once it's been exported.

    How and where would I add a " custom tag to each monster entry"?

    is there an example of a reference_groupedlist?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Joshua Stream Pre

Log in

Log in