dearestleader
February 16th, 2022, 06:51
Hello all,
I am attempting to automate some math using Story Templates. I'm using the 5e ruleset but attempting to replicate some tables from the 3e Races of Faerūn. I want to take a base number in one column and do math to it using another column. Examples from the RoF: Col1+Col2 = Height (HeightResultCol2xCol4)+Col3=Weight
Table Name: ShieldDwarfMalePhysical
Col1 BaseHt: 50
Col2 Mod: [2d4]
Col3 BaseWt: 145
Col4 Mod: [2d6]
I am testing
[ShieldDwarfMalePhysical]
Calc Height: [#ShieldDwarfMalePhysical|1#+#ShieldDwarfMalePhysic al|2#]
Calc Weight: [#ShieldDwarfMalePhysical|3#+#ShieldDwarfMalePhysic al|2#*#ShieldDwarfMalePhysical|4#]
Sanity Test: [2+2]=4
Output is
50 5 145 5
Calc Height: 50+5
Calc Weight: 145+5*5
Sanity Test: 4=4
That doesn't perform the calculations, but it's close! Is there a way to do that with the column layout I have or is there a better approach?
I can as a workaround just add another column that does the math like [50+2d4] and call that using #|x# in the Story Template as an extra step.
I am attempting to automate some math using Story Templates. I'm using the 5e ruleset but attempting to replicate some tables from the 3e Races of Faerūn. I want to take a base number in one column and do math to it using another column. Examples from the RoF: Col1+Col2 = Height (HeightResultCol2xCol4)+Col3=Weight
Table Name: ShieldDwarfMalePhysical
Col1 BaseHt: 50
Col2 Mod: [2d4]
Col3 BaseWt: 145
Col4 Mod: [2d6]
I am testing
[ShieldDwarfMalePhysical]
Calc Height: [#ShieldDwarfMalePhysical|1#+#ShieldDwarfMalePhysic al|2#]
Calc Weight: [#ShieldDwarfMalePhysical|3#+#ShieldDwarfMalePhysic al|2#*#ShieldDwarfMalePhysical|4#]
Sanity Test: [2+2]=4
Output is
50 5 145 5
Calc Height: 50+5
Calc Weight: 145+5*5
Sanity Test: 4=4
That doesn't perform the calculations, but it's close! Is there a way to do that with the column layout I have or is there a better approach?
I can as a workaround just add another column that does the math like [50+2d4] and call that using #|x# in the Story Template as an extra step.