View Full Version : Question about story templates
Weepdrag
July 29th, 2024, 23:59
Hello All,
Is the following scenario possible with story templates?
I wish to generate a list of NPC's (maybe 15) using a story template. I've already created the tables to roll for the data.
Does the stored data stay accessible, or does it get replaced by the next roll on the table and leave only the data from the last roll.
Example:
The story template
[name] lives at [address]. He has [color] shoes.
generates a result:
John Smith lives at 123 mockingbird lane. He has red shoes.
If I re-[generate] the template and get new values will the old values still be available to recall in a different template? or are they just replaced and lost?
Thanks for any input
claedawg
July 30th, 2024, 01:51
If I remember correctly, Story Templates create a new story entry for what is generated each time.
LordEntrails
July 30th, 2024, 01:52
They are replaced and lost once you start generating a new template, but within the same template you can recall the value. I forget the syntax for doing so, but it should be in the wiki article on story templates. I think it's tagged text; Using Story Templates to Create Random Stories - Fantasy Grounds Customer Portal - Fantasy Grounds (atlassian.net) (https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996640973/Using+Story+Templates+to+Create+Random+Stories#Bra cketed-Text-[])
Weepdrag
July 30th, 2024, 02:13
Thanks LordEntrails,
I'll need to find a different method of doing what I'm trying to do.
LordEntrails
July 30th, 2024, 02:38
For examples of some of the cool stuff that can be done, see JimSocks' 2020 Content Generator module.
https://www.fantasygrounds.com/forums/showthread.php?54306-Content-generator-2020!
Zacchaeus
July 30th, 2024, 08:17
I may be misunderstanding what you want but every time you generate a story from a template it creates a new unique story entry.
LordEntrails
July 30th, 2024, 16:47
I believe he's looking to use the results from a single roll in multiple places in the same story template.
I thought that was using the tags would do for you. But not sure. Haven't tried in a long time. Don't have time to test right now.
Zacchaeus
July 30th, 2024, 18:23
To the OP then; I think we need more information on what it is you want to do exactly. As I noted above every time you generate something from a template it creates a new story with the values produced by the rolls for the template; so if you want 15 characters you just generate 15 story entries from the same template. If you want to reuse values generated by a certain template then that is more complex and will require you to learn the more advanced features which are hinted at in the wiki and in video Twenty-Two here https://www.fantasygrounds.com/forums/showthread.php?55797-How-do-I-in-Unity
Weepdrag
July 30th, 2024, 18:54
Thanks LordEntrails/Zacchaeus,
I found a solution that works, albeit pretty inelegantly. My goal was to create 15 NPC's from a single template all at one time and be able to recall the data from each of those npc's in other templates.
What I did:
Create 15 duplicates of my tables [Random data1],[Random data2], etc., to [Random data15]. Then place all 15 table calls on the same template for generation. Considering that it appears that results of the table rolls are linked to the TABLE rather than the template. In theory the data should be able to be recalled for each individual table. The only possible issue that I'm seeing is; how many variables can be stored at any given time by FGU? If I have tables that generate 20 parameters and there are 15 calls to tables [Random data1]-[Random data15] then 300 values are generated and, at least currently,each value is addressable for future recall.
If anyone has a more elegant solution please let me know.
Thanks again
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.