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

    3.2 Chaining Tables, Multiple Columns and Story Result Question

    I have a specific question about how FG outputs text from multi-column tables.

    I'm a big fan of chaining tables. I set up a cool character generation scheme that really streamlined the process.

    With 3.2, we can have table results displayed in chat, story or parcels, via templates. And that's awesome. I started to play with converting my table results into story entries. (By the way devs, I think you should include "notes" as an output option, but I digress).

    So let me show what my problem is. Here is my "Backgrounds Table":

    Attachment 16607

    You'll see that in columns 2 thru 5, they all make calls to other tables, such as this:

    Attachment 16611

    I tested a story output to the Backgrounds Table with a simple template.

    Attachment 16608

    When I generated a story result from the template, this is what I got:

    Attachment 16610

    Now, the good news is that everything is there. All the results from the various table calls are there, but they look a bit of a mess. I was hoping for something more like this:

    Attachment 16609

    Does anyone know if there is a way to remedy this? If not, I suggest that the devs add just a little functionality to the table calls. Instead of just [Table Name], they could have [Table Name, 2] for reference to the column (where the row would be determined by the roll).

    Thanks!

    EDIT: The plot thickens. See follow up post below.
    Last edited by RCathcart; November 25th, 2016 at 17:52.

  2. #2

    Different text format result from template than direct table roll

    So this is weird.

    Playing around with this issue a little more, I discovered that I get a different text format result from a direct roll to a table versus a roll from a template.

    See above for the Backgrounds Table I'm rolling on (see above pic "Backgrounds Table.png").

    From the template, I get a messy text result (again, see above pic "Result.png").

    From a direct roll to the table, I get a different text format that's much neater. Still could be better, but not nearly as messy:

    Attachment 16617

    Kinda weird, huh?

  3. #3
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    20,663
    You aren't going to get a satisfactory result from rolling on a multicolumn table. You can extract a single column from a multicolum table using [tablename|1] which will roll on the first column but [tablename|1] [tablename|2] will give you different results, since each roll will be made separately. In other words the second roll won't be for the same row on column two as was rolled for column one.

    If you want the information on a template then you are going to have to design your tables to give you what you need. So in the case above you'll need a template for each background that might crop up with the idea, bond etc on separate rows calling each of the different ideal, bond etc tables.

    Potentially you could have a master table which called a random template.
    If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here http://fgapp.idea.informer.com/

  4. #4
    The whole [tablename|1] thing is pretty interesting. I didn't know about that. Shame it can't do a single call to the table for the array. But, it seems to me that it wouldn't take that much coding on the devs' part to make that happen.

    Also, given that in template mode, the results spit out one way, and in direct roll mode, they spit out another, that tells me that there is not a lot of code between what is there and what I am looking for. But again, that would seem to require some dev tinkering. In any event, I think the fact that the results are displayed so differently in the first place should be of interest to the devs. Since this whole "template" thing is pretty new, I'm sure they will be looking for ways to polish it up. It's a powerful tool that has a lot of potential.

  5. #5
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    20,663
    I'm sure there will be more tinkering. What, I think, would be the most useful feature is after a roll is made the result can then be applied to a number of different things. In your case you want to capture a roll and then use that to output a result across the same row in a multicolum table. Others have commented on similar problems where tables are nested and they want to use a result from a master table to then use that result on child and grandchild tables.
    If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here http://fgapp.idea.informer.com/

  6. #6
    LOL.... I think we have to careful not to be too greedy. At some point, I'd image the devs saying "Use Exel."

  7. #7
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,638
    Blog Entries
    1
    Quote Originally Posted by RCathcart View Post
    LOL.... I think we have to careful not to be too greedy. At some point, I'd image the devs saying "Use Exel."
    Microsoft Office has around 50million lines of code in it....

  8. #8
    I would love it even if THIS worked:

    <Tablename|2>

    Where it would reference the last result Tablename came up with, but only display the data from the second column.

  9. #9
    By the way, I totally got it to work how the OP wanted in this post. If anyone is still interested in how, I can take screenshots.

    The gist of it is: if your END RESULT is a link itself (so the actual flaw text is a link that’s titled as the flaw text), then the results will be links in your template, and links are automatically put on separate lines. Couple this with labeling the links in the PARENT table as the heading you want above each link result (but offsetting those parent table column titles to the left by one), and you get EXACTLY what the OP in this thread wanted. A list that looks like:

    Folk Hero;

    {link} i’m confident in my own abilities and do what I can to instill confidence in others;

    Second trait;

    {link} I miss use long words in an attempt to sound smarter ;

    Ideal;

    {link} Might. If I become strong, I can take what I want - what I deserve

    Bond;

    {link} I worked the land, I love the land, and I will protect the land

    Etc, etc

  10. #10
    Quote Originally Posted by JimSocks View Post
    By the way, I totally got it to work how the OP wanted in this post. If anyone is still interested in how, I can take screenshots.

    The gist of it is: if your END RESULT is a link itself (so the actual flaw text is a link that’s titled as the flaw text), then the results will be links in your template, and links are automatically put on separate lines. Couple this with labeling the links in the PARENT table as the heading you want above each link result (but offsetting those parent table column titles to the left by one), and you get EXACTLY what the OP in this thread wanted. A list that looks like:

    Folk Hero;

    {link} i’m confident in my own abilities and do what I can to instill confidence in others;

    Second trait;

    {link} I miss use long words in an attempt to sound smarter ;

    Ideal;

    {link} Might. If I become strong, I can take what I want - what I deserve

    Bond;

    {link} I worked the land, I love the land, and I will protect the land

    Etc, etc

    I know this is an old thread but I'm actually struggling with this. Although I've used nested tables to throw output into Chat without issue, for the life of me I can't get this to work with Story Templates. Could you post an example of how you've achieved it please?

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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
  •  
FG Spreadshirt Swag

Log in

Log in