One of the problems I have run into is with adding extra fields to tiddlers with a certain tag.
For the weapons I have solved it with the method of creating a tiddlers with all the new fields, then cloning that one and transporting the data of the old tiddler to the new one.
This was because I already had a number of tiddlers with the text, but not the 20 or so fields, as I made several example weapons with only the text describing them.
I tried using a button to add fields and that did work, but unfortunately the field names contained spaces, and the add fields function saw that as separate field names.
Now my question is, is it possible to add fields to all tiddlers with a certain tag that contain spaces?
\procedure newWeapon()
<$action-sendmessage
$message="tm-new-tiddler"
title="I-"
tags="I-Weapon"
Legal=""
Defense=""
To Hit=""
Damage Type 1=""
Damage 1=""
Damage Type 2=""
Damage 2=""
Damage Type 3=""
Damage 3=""
Min Might=""
Min Talent=""
Weapon Reach=""
Melee Range=""
Weapon Speed=""
Short Range=""
Long Range=""
Ammo=""
Weight=""
Cost=""
Breaks Into=""
Description=""
/>
\end
<$button actions=<<newWeapon>>>
New Weapon
</$button>
This gives field names such as 1, Weapon, Range, etc, while i wanted Damage Type 1, Weapon Reach, Melee Range, etc.
Off course I saw the excellent advice on Grok tiddly wiki on using only lower case field names after already using them…
I may switch to renaming them, but it would be nice if there was a way to avoid it as damagetype1 or weaponspeed just aren’t as clear.
On
the code above should work.
no need to copy it, the tiddler Make Weapon that contains it exists.
Thanks in advance for any help.