I am trying to document “Powers” for GURPS (the RPG system). A Power has a name (the tiddler title), some descriptive text, an initial cost (which is stored in the “initial_cost” field on the tiddler, and a list of modifiers (also tiddlers).
I was trying to set up the tiddler like this:
Description of Spell (just some text that I can edit later)<br>
<$set name="mods" value="
[[Costs Fatigue 1]]
[[Limited Use: 1/day]]
">
<br>Modifiers:<br>
<$list variable="mod" filter="<<mods>>">
<$link>{{<<mod>>!!title}}</$link> {{<<mod>>!!cost}}<br>
</$list>
<$vars sum=[<<mods>>!!cost]sum[]]>
<<sum>>
</$vars>
</$set>
Where “Costs Fatigue 1” and “Limited Use: 1/day” were the names of other tiddlers (which have a “cost” field).
But of course, it is completely wrong. It seems that the “mods” variable is being treated as a single string. How can I make this a list, but one that is identified inside of this tiddler… and not from an external source.
I am afraid I am so lost, I don’t really know how to ask the question.
Any help would be greatly appreciated.