This brings us to the problems of using a dictionary for each Avatar versus having fields.
There are few good tools for using data dictionaries in TW5. So a search list that searches all dictionaries for intelligence=Average and armor_class=4 would like something like: <$list filter="[tag[Dictionary]]" variable=dict> <$list filter="[<dict>getindex[intelligence]prefix[Average]]" > <$list filter="[<dict>getindex[armor_class]prefix[4]]" > <<dict>> </$list> </$list> </$list> I'm actually cheating here, just looking for "prefix". If your data is more complicated (like you have prefix 34) then more would have to be done. If you use fields, then the search is easier: <$list filter="[tag[Avatar]search:intelligence[Average]search:armor_class[4]]"/> You can use the search operator to search individual fields. However, TW5 doesn't have good comparison operators (they've been hung up in committee for awhile). So you might need regular expression operators to check for armor_class 21. But I digress. Once you have a data dictionary set up, it's easy to write code that will transfer the data dictionary into a tiddler as fields. For instance, if you have a tiddler "Allin-Dict" tagged with "Dictionary" and are inside tiddler "Allin", and then paste this code into Allin and run it (tiddler in view mode): <$button>Apply dictionary <$list filter="[all[current]addsuffix[-dict]]" variable=dict> <$list filter="[title<dict>indexes[]]" variable=field> <$list filter="[title<dict>getindex<field>]" variable=value> <$action-setfield $field=<<field>> $value=<<value>>/> </$list> </$list> </$list> </$button> This will create a button that will transfer your fields over when you click it. (be sure to have a backup before trying any of this -- only tested once!) When you open "Allin" and scroll to the bottom, you'll see all the new fields and values. Looks like you're going to get lots of advice here, especially from people who understand RPG better than I do, which is good. -- Mark On Monday, October 1, 2018 at 4:02:03 PM UTC-7, PWL wrote: > > So how exactly would this work? I build a template then dump all the > stats into a 'data tiddler' and call it? > > Also I found this... > https://groups.google.com/forum/#!msg/tiddlywiki/FC2KOtlyaYo/KqRIUjNbEbcJ > > Kind of looks like it might work for a search function. Thoughts? > > On Monday, 1 October 2018 18:14:36 UTC-3, Mark S. wrote: >> >> Although the best long-term solution is probably fields, you might want >> to start with companion data dictionaries. In this approach, each main >> tiddler has a companion dictionary tiddler. The advantage to this approach >> is that the data format on the website is almost formatted as a data >> dictionary. For instance, if you had an "Allin" tiddler then you might have >> a companion Allin-dict tiddler with contents like: >> >> climate-terrain: Temperate or tropical/wilderness or subterranean >> frequency: Uncommon >> organization: Solitary >> activity_cycle: Any >> diet: Omnivore >> intelligence: Average (8-10) >> treasure: 1 >> alignment: Neutral >> num_appearing: 1d4 >> armor_class: 4 >> movement: 6, Sw 15 >> hit_dice: 3 >> thac0: 17 >> num_of_attacks: 1 >> damage_attack: See below >> special_attacks: Drowning >> special_defenses: See below >> magic_resistance: Nil >> size: L (10’ tall) >> morale: Elite (13-14) >> xp_value: 270 >> >> These are the values from the website, with tabs converted to spaces, >> spaces in the fields (the part before the colons) converted to underscores. >> "no." Converted to "num", and all fields made lower-case because it's so >> easy to make mixed case mistakes. >> >> To reference fields in the dictionary, you use a notation like: >> >> {{Allin-dict##num_of_attacks}} >> >> However, I think this can be adapted for use in the template previously >> described so that "-dict" is automatically applied and a table is >> automatically constructed by the template. It should be easy to convert >> dictionaries like this into fields somewhere down the road. >> >> -- Mark >> >> On Monday, October 1, 2018 at 12:58:46 PM UTC-7, PWL wrote: >>> >>> You are correct. I am attempting to make the Monstrous Compendium from >>> 2nd ed AD&D into a wiki. Here is a link to the site I am using for my >>> source data. http://lomion.de/cmm/_index.php >>> The site is an almost complete list of all entries from that version of >>> the game. However, it is a horrible resource to search, poorly organized, >>> the links are all over the place and it cannot be searched beyond the index >>> entries. I spend far too much time sifting through the entries and my >>> books looking for the stuff I want. What I have been doing is copying the >>> text from the page to a tiddler then formatting it, copying the image to my >>> hdd and importing it to the tiddler. Not exactly the most efficient >>> method. But it keeps it all local on my hdd which is a requirement. >>> >>> I started out building an actual data base with LO. But I found it >>> started becoming cumbersome, slow and unstable; probably due to the sheer >>> amount of text. So I turned to personal wiki's. Tiddly seems to be the >>> best option I have found for this. To this point I have learned how to >>> make tabs, tables of contents, tags, tables, and how to format the text and >>> lay out on my tiddlers. Now I need to figure out how to make the >>> information I use most often searchable; Climate / Terrain, Intelligence, >>> and Hit Dice. I was thinking fields would be the best way to go, but I am >>> finding the information available confusing. Reducing the amount typing, >>> and coding I have to do would be a great bonus but learning how to make my >>> data searchable should probably be the priority. I have not done any >>> serious programming since the 90's. And I hated it then. I would love to >>> find a wysiwyg interface for this. >>> >>> Any help you can give, or point me to a tiddly for dummies type book or >>> site would be greatly appreciated. >>> >>> On Monday, 1 October 2018 04:11:05 UTC-3, [email protected] wrote: >>>> >>>> PWL, >>>> >>>>> >>>>> I have recently started using Tiddly wiki to build a knowledge >>>>> database and I am having difficulty figuring a few things out. I am >>>>> hoping >>>>> somebody can help. >>>>> >>>>> >>>> I see your project looks RPG/MMORPG related. With patience you'll see >>>> that TW is a great tool for such purposes-- a few individuals here have >>>> applied TW to RPG related purposes. There's a learning curve but its >>>> definitely a worthwhile curve cause everything that TW can do. >>>> >>>> >>>>> This wiki is going to be huge when it is done (4500+) entries. Each >>>>> entry has a list of 14 stats that need to be displayed as a table. I >>>>> found >>>>> how to build tables, the work perfectly, and I like the look. >>>>> But I have found that it is rather labour intensive to do this every >>>>> time I make a new entry. Is there a macro, or some code, or anything >>>>> that >>>>> can make this easier for me? >>>>> >>>> >>>> The templates Mark S mention is the best way to cut out the manual >>>> table coding (typing) but templates work best with fields not raw text, >>>> which I'm not sure if you have gotten to learning fields yet. Field value >>>> entry can also be labour intensive but templates again can be used to >>>> create tiddlers with all fields added. >>>> >>>> How far have you gotten with making tiddlers, would be a major time >>>> loss going back to start and starting with templates? Would you already >>>> have this data already on a spreadsheet? there's ways to mass import >>>> spreadsheets into TW, creating tiddlers preformatted. >>>> >>>> Once you get to the search function, I may have something that may help. >>>> >>> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2d666991-2368-4107-b4c8-16836664ff57%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

