Hi Mario, the results are generated by a plugin called Tiddly-Dice and showed inside the tiddle. When i press the Button Roll (Rolar) the plugin create a temporary tiddle with prefix $:/temp/roll.
The results are stored in temporary tiddles, like this:
$:/temp/roll
$:/temp/roll 1
$:/temp/roll 2
etc.
Inside every $:/temp/roll we have something like this:
<table><tbody><tr class="evenRow"><th align="center">Resultado<br>4d4+4</th></tr><tr class="oddRow"><td align="right">16 ( 2,3,3,4,4 )</td></tr></tbody></table>
The tiddle i want to include the button to save have this code inside:
\define custom_roll_actions()
<$wikify name="text" output="html" text="| !Resultado<br />{{$:/temp/roll}} |
| <$diceroll format=combo>{{$:/temp/roll}}</$diceroll>|">
<$action-createtiddler $basetitle="$:/temp/log/roll" tags="Roll" text=<<text>> />
</$wikify>
\end
<$keyboard key="Enter" actions=<<custom_roll_actions>> >
<$edit-text size="12" tag="input" default="" placeholder="2d6+3" tiddler="$:/temp/roll" />
</$keyboard>
<$button actions=<<custom_roll_actions>>>Rolar</$button>
<$button>
Limpar
<$list filter="[all[tiddlers+shadows]prefix[$:/temp/log]]">
<$action-deletetiddler $tiddler=<<currentTiddler>> />
</$list>
</$button>
<div style="color:black;">
<$list filter="[all[tiddlers+shadows]prefix[$:/temp/log]!sortan[]]">
<$transclude mode="block" />
</$list>
</div>
Thank you so much and sorry to bother you