[tw5] Re: How to make "complex" macro calculations?

2021-03-19 Thread Ste
Evans formula plug in makes it a little less painful.

On Thursday, 11 March 2021 at 22:53:06 UTC dop...@gmail.com wrote:

> Believe me, I've been looking at them for days, and only now it struck me 
> how to use them. I'm still trying to understand if there's a formula to 
> have only 2 action-setfield performing the whole operation (one for the 
> first field and one for the second, that needs the first to compute). Thanks
> On Thursday, 11 March 2021 at 23:39:42 UTC+1 saq.i...@gmail.com wrote:
>
>> I just transposed your calculations exactly as they were, as I wasn't 
>> sure of the logic or which of the interim values you might need.
>>
>> See https://tiddlywiki.com/#Filter%20Expression for an explanation on = 
>> and + prefixes for filter runs.
>>
>> On Thursday, March 11, 2021 at 7:50:58 PM UTC+1 dop...@gmail.com wrote:
>>
>>> While looking for solutions to my other problem (where you replied!), I 
>>> found another solution to this by using =[field] =[field] +[sum[]] and 
>>> +[product[]]. I didn't know how = and + worked, and I don't know if this is 
>>> simpler - it has way less stratification of vars - but it works nonetheless.
>>>
>>> <$action-setfield $tiddler=<> $field="level" $value={{{ 
>>> =[get[level1]] =[get[level2]] +[sum[]] }}}/>
>>>
>>> <$vars
>>> hps={{{ [{!!class}get[hd]multiply[2]subtract[2]] }}}
>>> hp1={{{ =[get[level1]] =[{!!class}get[hd]] +[product[]] 
>>> }}}
>>> hp2={{{ =[get[level2]] =[{!!class2}get[hd]] +[product[]] 
>>> }}}
>>> hocon={{{ =[get[modcon]] =[get[level]] 
>>> +[product[]] }}}>
>>>
>>> <$action-setfield $tiddler=<> $field="hitpoints" 
>>> $value={{{ =[] =[] =[] =[] +[sum[]] }}}/>
>>>
>>> 
>>> On Thursday, 11 March 2021 at 17:30:53 UTC+1 saq.i...@gmail.com wrote:
>>>
 The key is that you cannot access the value of a variable, within the 
 same vars widget that sets it.

 So this:
  <$vars a=2 b=3 c=a+b>

 Should be:

 <$vars a=2 b=3>
 <$vars c=a+b>

>>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/844bac96-b1d3-4974-8270-77883d82f16cn%40googlegroups.com.


[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Alessandro Gianni
Believe me, I've been looking at them for days, and only now it struck me 
how to use them. I'm still trying to understand if there's a formula to 
have only 2 action-setfield performing the whole operation (one for the 
first field and one for the second, that needs the first to compute). Thanks
On Thursday, 11 March 2021 at 23:39:42 UTC+1 saq.i...@gmail.com wrote:

> I just transposed your calculations exactly as they were, as I wasn't sure 
> of the logic or which of the interim values you might need.
>
> See https://tiddlywiki.com/#Filter%20Expression for an explanation on = 
> and + prefixes for filter runs.
>
> On Thursday, March 11, 2021 at 7:50:58 PM UTC+1 dop...@gmail.com wrote:
>
>> While looking for solutions to my other problem (where you replied!), I 
>> found another solution to this by using =[field] =[field] +[sum[]] and 
>> +[product[]]. I didn't know how = and + worked, and I don't know if this is 
>> simpler - it has way less stratification of vars - but it works nonetheless.
>>
>> <$action-setfield $tiddler=<> $field="level" $value={{{ 
>> =[get[level1]] =[get[level2]] +[sum[]] }}}/>
>>
>> <$vars
>> hps={{{ [{!!class}get[hd]multiply[2]subtract[2]] }}}
>> hp1={{{ =[get[level1]] =[{!!class}get[hd]] +[product[]] 
>> }}}
>> hp2={{{ =[get[level2]] =[{!!class2}get[hd]] +[product[]] 
>> }}}
>> hocon={{{ =[get[modcon]] =[get[level]] 
>> +[product[]] }}}>
>>
>> <$action-setfield $tiddler=<> $field="hitpoints" 
>> $value={{{ =[] =[] =[] =[] +[sum[]] }}}/>
>>
>> 
>> On Thursday, 11 March 2021 at 17:30:53 UTC+1 saq.i...@gmail.com wrote:
>>
>>> The key is that you cannot access the value of a variable, within the 
>>> same vars widget that sets it.
>>>
>>> So this:
>>>  <$vars a=2 b=3 c=a+b>
>>>
>>> Should be:
>>>
>>> <$vars a=2 b=3>
>>> <$vars c=a+b>
>>>
>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e42cf4d3-142d-46f0-b3b9-df70160dc657n%40googlegroups.com.


[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Saq Imtiaz
I just transposed your calculations exactly as they were, as I wasn't sure 
of the logic or which of the interim values you might need.

See https://tiddlywiki.com/#Filter%20Expression for an explanation on = and 
+ prefixes for filter runs.

On Thursday, March 11, 2021 at 7:50:58 PM UTC+1 dop...@gmail.com wrote:

> While looking for solutions to my other problem (where you replied!), I 
> found another solution to this by using =[field] =[field] +[sum[]] and 
> +[product[]]. I didn't know how = and + worked, and I don't know if this is 
> simpler - it has way less stratification of vars - but it works nonetheless.
>
> <$action-setfield $tiddler=<> $field="level" $value={{{ 
> =[get[level1]] =[get[level2]] +[sum[]] }}}/>
>
> <$vars
> hps={{{ [{!!class}get[hd]multiply[2]subtract[2]] }}}
> hp1={{{ =[get[level1]] =[{!!class}get[hd]] +[product[]] }}}
> hp2={{{ =[get[level2]] =[{!!class2}get[hd]] +[product[]] 
> }}}
> hocon={{{ =[get[modcon]] =[get[level]] 
> +[product[]] }}}>
>
> <$action-setfield $tiddler=<> $field="hitpoints" 
> $value={{{ =[] =[] =[] =[] +[sum[]] }}}/>
>
> 
> On Thursday, 11 March 2021 at 17:30:53 UTC+1 saq.i...@gmail.com wrote:
>
>> The key is that you cannot access the value of a variable, within the 
>> same vars widget that sets it.
>>
>> So this:
>>  <$vars a=2 b=3 c=a+b>
>>
>> Should be:
>>
>> <$vars a=2 b=3>
>> <$vars c=a+b>
>>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6d6918bc-cfb6-4b29-93f8-b345de587a6cn%40googlegroups.com.


[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Alessandro Gianni
While looking for solutions to my other problem (where you replied!), I 
found another solution to this by using =[field] =[field] +[sum[]] and 
+[product[]]. I didn't know how = and + worked, and I don't know if this is 
simpler - it has way less stratification of vars - but it works nonetheless.

<$action-setfield $tiddler=<> $field="level" $value={{{ 
=[get[level1]] =[get[level2]] +[sum[]] }}}/>

<$vars
hps={{{ [{!!class}get[hd]multiply[2]subtract[2]] }}}
hp1={{{ =[get[level1]] =[{!!class}get[hd]] +[product[]] }}}
hp2={{{ =[get[level2]] =[{!!class2}get[hd]] +[product[]] }}}
hocon={{{ =[get[modcon]] =[get[level]] 
+[product[]] }}}>

<$action-setfield $tiddler=<> $field="hitpoints" $value={{{ 
=[] =[] =[] =[] +[sum[]] }}}/>


On Thursday, 11 March 2021 at 17:30:53 UTC+1 saq.i...@gmail.com wrote:

> The key is that you cannot access the value of a variable, within the same 
> vars widget that sets it.
>
> So this:
>  <$vars a=2 b=3 c=a+b>
>
> Should be:
>
> <$vars a=2 b=3>
> <$vars c=a+b>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/217dd740-aef2-4a61-9a90-2497384874c5n%40googlegroups.com.


[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Saq Imtiaz
The key is that you cannot access the value of a variable, within the same 
vars widget that sets it.

So this:
 <$vars a=2 b=3 c=a+b>

Should be:

<$vars a=2 b=3>
<$vars c=a+b>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bbf8e218-f009-487a-b330-13cc678ed9a1n%40googlegroups.com.


[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Alessandro Gianni
This is an excellent plugin and I will use it a lot, thank you!

However, I don't understand how can I store a result calculated with this 
plugin inside a field.

On Thursday, 11 March 2021 at 13:39:00 UTC+1 PMario wrote:

> Hi,
> Have a closer look at: https://chronicles.wiki/TiddlyWikiFormula/
> -m
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2cf4899b-001c-4203-a220-bd34614f6fd0n%40googlegroups.com.


[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Alessandro Gianni
THIS. I don't know how to thank you. I actually tried something similar, 
but I probably try to calculate vars all in one line (like: <$vars a=2 b=3 
c=a+b>) it obviously didn't work and I thought it just couldn't work with 
vars. Thanks again!

On Thursday, 11 March 2021 at 14:09:58 UTC+1 saq.i...@gmail.com wrote:

> Something like this:
>
> <$vars lev1={{!!levello1}} lev2={{!!levello2}} hd1={{{ 
> [title{!!class}get[hd]] }}} hd2={{{ [title{!!class}get[hd]] }}}
> conmod={{{ [get[modcon]] }}}>
>
> <$vars hps={{{ [multiply[2]subtract[2]] }}} hp1={{{ 
> [multiply] }}} hp2={{{ [multiply] }}} lev={{{ 
> [add] }}}>
>
> <$vars hpcon={{{ [multiply] }}}>
>
> <$vars hitpoints={{{ [addaddadd] }}}>
>
> 
>
> 
> 
> 
> 
>
> Only use action-setfield with the final values you wish to save.
>
> On Thursday, March 11, 2021 at 1:24:57 PM UTC+1 Saq Imtiaz wrote:
>
>> In the same block of action strings, you cannot set tiddler/field values 
>> and retrieve the updated values. Try saving the interim values as variables 
>> instead of in temp tiddlers.
>>
>> On Thursday, March 11, 2021 at 1:03:35 PM UTC+1 dop...@gmail.com wrote:
>>
>>> Hi all. I'm in need of a macro (or something else?) that calculates a 
>>> bunch of fields together in an expression. I'm trying to do with plugins 
>>> like calc and playing around with variables and action widgets but nothing 
>>> seems to work. In my last attempt I made a huge button full of actions that 
>>> stored fields in a temp tiddler, with vars that recovered those fields to 
>>> use in other action setfields... It was monstrous and still it didn't work.
>>>
>>> I believe I need a macro - actually, probably a javascript one. But I 
>>> don't know where to start; I don't know much about java and making macros 
>>> in general. Can anyone point me to the best path I should follow, or help 
>>> in any way?
>>>
>>> The macro should:
>>>
>>> from tiddler-1:
>>> get field-a-1, field-a-2, field-b-1, field-b-2, field-n
>>>
>>> from both tiddler-a and tiddler-b (which are stored as values in 
>>> field-a-1 and field-b-1):
>>> get field-x, so to get field-x-a and field-x-b to keep around for calcs.
>>>
>>> these are all fields I manually set up.
>>>
>>> then:
>>>
>>> multiply field-x-a and field-a-2, and keep the result around (let's say 
>>> var-a)
>>> multiply field-x-b and field-b-2, the same (var-b)
>>>
>>> add field-a-2 and field-b-2, to store as field-y in tiddler-1
>>>
>>> multiply field-n and field-z, and get var-n
>>>
>>> add together var-a, var-b and var-n, and store the result as field-z in 
>>> tiddler-z
>>>
>>>
>>> this is my last attempt (embed in a button). There's one more small 
>>> calc, but it is just a sum that involves one field, so it's non relevant at 
>>> the moment.
>>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="lev1" 
>>> $value={{!!levello1}}/>
>>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="lev2" 
>>> $value={{!!levello2}}/>
>>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hd1" $value={{{ 
>>> [title{!!class}get[hd]] }}}/>
>>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hd2" $value={{{ 
>>> [title{!!class}get[hd]] }}}/>
>>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="conmod" $value={{{ 
>>> [get[modcon]] }}}/>
>>>
>>> <$vars lev1={{{ [[$:/temp/HPCalc]get[lev1]] }}} lev2={{{ 
>>> [[$:/temp/HPCalc]get[lev2]] }}} hd1={{{ [[$:/temp/HPCalc]get[hd1]] }}} 
>>> hd2={{{ [[$:/temp/HPCalc]get[hd2]] }}}
>>> conmod={{{ [[$:/temp/HPCalc]get[conmod]] }}}>
>>>
>>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hps" $value={{{ 
>>> [multiply[2]subtract[2]] }}}/>
>>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hp1" $value={{{ 
>>> [multiply] }}}/>
>>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hp2" $value={{{ 
>>> [multiply] }}}/>
>>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="lev" $value={{{ 
>>> [add] }}}/>
>>>
>>> <$vars hps={{{ [[$:/temp/HPCalc]get[hps]] }}} hp1={{{ 
>>> [[$:/temp/HPCalc]get[hp1]] }}} hp2={{{ [[$:/temp/HPCalc]get[hp2]] }}} 
>>> lev={{{ [[$:/temp/HPCalc]get[lev]] }}}>
>>>
>>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hpcon" $value={{{ 
>>> [multiply] }}}/>
>>>
>>> <$vars hpcon={{{ [title[$:/temp/HPCalc]get[hpcon]] }}}>
>>>
>>> <$action-setfield $tiddler=<> $field="hitpoints" 
>>> $value={{{ [addaddadd] }}}/>
>>> <$action-setfield $tiddler=<> $field="level" $value={{{ 
>>> [] }}}/>
>>>
>>> 
>>> 
>>> 
>>>
>>> if you played you know what, you know what this is about :P
>>>
>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/16599cda-dd5d-4f4e-a795-e41a9c6a406an%40googlegroups.com.


[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Saq Imtiaz
Something like this:

<$vars lev1={{!!levello1}} lev2={{!!levello2}} hd1={{{ 
[title{!!class}get[hd]] }}} hd2={{{ [title{!!class}get[hd]] }}}
conmod={{{ [get[modcon]] }}}>

<$vars hps={{{ [multiply[2]subtract[2]] }}} hp1={{{ 
[multiply] }}} hp2={{{ [multiply] }}} lev={{{ 
[add] }}}>

<$vars hpcon={{{ [multiply] }}}>

<$vars hitpoints={{{ [addaddadd] }}}>








Only use action-setfield with the final values you wish to save.

On Thursday, March 11, 2021 at 1:24:57 PM UTC+1 Saq Imtiaz wrote:

> In the same block of action strings, you cannot set tiddler/field values 
> and retrieve the updated values. Try saving the interim values as variables 
> instead of in temp tiddlers.
>
> On Thursday, March 11, 2021 at 1:03:35 PM UTC+1 dop...@gmail.com wrote:
>
>> Hi all. I'm in need of a macro (or something else?) that calculates a 
>> bunch of fields together in an expression. I'm trying to do with plugins 
>> like calc and playing around with variables and action widgets but nothing 
>> seems to work. In my last attempt I made a huge button full of actions that 
>> stored fields in a temp tiddler, with vars that recovered those fields to 
>> use in other action setfields... It was monstrous and still it didn't work.
>>
>> I believe I need a macro - actually, probably a javascript one. But I 
>> don't know where to start; I don't know much about java and making macros 
>> in general. Can anyone point me to the best path I should follow, or help 
>> in any way?
>>
>> The macro should:
>>
>> from tiddler-1:
>> get field-a-1, field-a-2, field-b-1, field-b-2, field-n
>>
>> from both tiddler-a and tiddler-b (which are stored as values in 
>> field-a-1 and field-b-1):
>> get field-x, so to get field-x-a and field-x-b to keep around for calcs.
>>
>> these are all fields I manually set up.
>>
>> then:
>>
>> multiply field-x-a and field-a-2, and keep the result around (let's say 
>> var-a)
>> multiply field-x-b and field-b-2, the same (var-b)
>>
>> add field-a-2 and field-b-2, to store as field-y in tiddler-1
>>
>> multiply field-n and field-z, and get var-n
>>
>> add together var-a, var-b and var-n, and store the result as field-z in 
>> tiddler-z
>>
>>
>> this is my last attempt (embed in a button). There's one more small calc, 
>> but it is just a sum that involves one field, so it's non relevant at the 
>> moment.
>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="lev1" 
>> $value={{!!levello1}}/>
>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="lev2" 
>> $value={{!!levello2}}/>
>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hd1" $value={{{ 
>> [title{!!class}get[hd]] }}}/>
>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hd2" $value={{{ 
>> [title{!!class}get[hd]] }}}/>
>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="conmod" $value={{{ 
>> [get[modcon]] }}}/>
>>
>> <$vars lev1={{{ [[$:/temp/HPCalc]get[lev1]] }}} lev2={{{ 
>> [[$:/temp/HPCalc]get[lev2]] }}} hd1={{{ [[$:/temp/HPCalc]get[hd1]] }}} 
>> hd2={{{ [[$:/temp/HPCalc]get[hd2]] }}}
>> conmod={{{ [[$:/temp/HPCalc]get[conmod]] }}}>
>>
>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hps" $value={{{ 
>> [multiply[2]subtract[2]] }}}/>
>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hp1" $value={{{ 
>> [multiply] }}}/>
>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hp2" $value={{{ 
>> [multiply] }}}/>
>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="lev" $value={{{ 
>> [add] }}}/>
>>
>> <$vars hps={{{ [[$:/temp/HPCalc]get[hps]] }}} hp1={{{ 
>> [[$:/temp/HPCalc]get[hp1]] }}} hp2={{{ [[$:/temp/HPCalc]get[hp2]] }}} 
>> lev={{{ [[$:/temp/HPCalc]get[lev]] }}}>
>>
>> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hpcon" $value={{{ 
>> [multiply] }}}/>
>>
>> <$vars hpcon={{{ [title[$:/temp/HPCalc]get[hpcon]] }}}>
>>
>> <$action-setfield $tiddler=<> $field="hitpoints" 
>> $value={{{ [addaddadd] }}}/>
>> <$action-setfield $tiddler=<> $field="level" $value={{{ 
>> [] }}}/>
>>
>> 
>> 
>> 
>>
>> if you played you know what, you know what this is about :P
>>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5021cb59-f68d-4c0a-8d75-1a2e4a9068b0n%40googlegroups.com.


[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread PMario
Hi,
Have a closer look at: https://chronicles.wiki/TiddlyWikiFormula/
-m

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/163b0dd9-622c-49be-bec8-c5f3d04d4323n%40googlegroups.com.


[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Saq Imtiaz
In the same block of action strings, you cannot set tiddler/field values 
and retrieve the updated values. Try saving the interim values as variables 
instead of in temp tiddlers.

On Thursday, March 11, 2021 at 1:03:35 PM UTC+1 dop...@gmail.com wrote:

> Hi all. I'm in need of a macro (or something else?) that calculates a 
> bunch of fields together in an expression. I'm trying to do with plugins 
> like calc and playing around with variables and action widgets but nothing 
> seems to work. In my last attempt I made a huge button full of actions that 
> stored fields in a temp tiddler, with vars that recovered those fields to 
> use in other action setfields... It was monstrous and still it didn't work.
>
> I believe I need a macro - actually, probably a javascript one. But I 
> don't know where to start; I don't know much about java and making macros 
> in general. Can anyone point me to the best path I should follow, or help 
> in any way?
>
> The macro should:
>
> from tiddler-1:
> get field-a-1, field-a-2, field-b-1, field-b-2, field-n
>
> from both tiddler-a and tiddler-b (which are stored as values in field-a-1 
> and field-b-1):
> get field-x, so to get field-x-a and field-x-b to keep around for calcs.
>
> these are all fields I manually set up.
>
> then:
>
> multiply field-x-a and field-a-2, and keep the result around (let's say 
> var-a)
> multiply field-x-b and field-b-2, the same (var-b)
>
> add field-a-2 and field-b-2, to store as field-y in tiddler-1
>
> multiply field-n and field-z, and get var-n
>
> add together var-a, var-b and var-n, and store the result as field-z in 
> tiddler-z
>
>
> this is my last attempt (embed in a button). There's one more small calc, 
> but it is just a sum that involves one field, so it's non relevant at the 
> moment.
> <$action-setfield $tiddler=":$/temp/HPCalc" $field="lev1" 
> $value={{!!levello1}}/>
> <$action-setfield $tiddler=":$/temp/HPCalc" $field="lev2" 
> $value={{!!levello2}}/>
> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hd1" $value={{{ 
> [title{!!class}get[hd]] }}}/>
> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hd2" $value={{{ 
> [title{!!class}get[hd]] }}}/>
> <$action-setfield $tiddler=":$/temp/HPCalc" $field="conmod" $value={{{ 
> [get[modcon]] }}}/>
>
> <$vars lev1={{{ [[$:/temp/HPCalc]get[lev1]] }}} lev2={{{ 
> [[$:/temp/HPCalc]get[lev2]] }}} hd1={{{ [[$:/temp/HPCalc]get[hd1]] }}} 
> hd2={{{ [[$:/temp/HPCalc]get[hd2]] }}}
> conmod={{{ [[$:/temp/HPCalc]get[conmod]] }}}>
>
> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hps" $value={{{ 
> [multiply[2]subtract[2]] }}}/>
> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hp1" $value={{{ 
> [multiply] }}}/>
> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hp2" $value={{{ 
> [multiply] }}}/>
> <$action-setfield $tiddler=":$/temp/HPCalc" $field="lev" $value={{{ 
> [add] }}}/>
>
> <$vars hps={{{ [[$:/temp/HPCalc]get[hps]] }}} hp1={{{ 
> [[$:/temp/HPCalc]get[hp1]] }}} hp2={{{ [[$:/temp/HPCalc]get[hp2]] }}} 
> lev={{{ [[$:/temp/HPCalc]get[lev]] }}}>
>
> <$action-setfield $tiddler=":$/temp/HPCalc" $field="hpcon" $value={{{ 
> [multiply] }}}/>
>
> <$vars hpcon={{{ [title[$:/temp/HPCalc]get[hpcon]] }}}>
>
> <$action-setfield $tiddler=<> $field="hitpoints" 
> $value={{{ [addaddadd] }}}/>
> <$action-setfield $tiddler=<> $field="level" $value={{{ 
> [] }}}/>
>
> 
> 
> 
>
> if you played you know what, you know what this is about :P
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3371f109-4072-4280-9a2b-700057888999n%40googlegroups.com.