I have got a problem with the following roll button macro using ammo <button type='roll' name='roll_heben' value='!ammo @{character_id} heben_frei -[[@{heben_frei}]] !ammo @{character_id} tragen_frei -[[@{tragen_frei}]]
!ammo @{character_id} stemmen_frei -[[@{stemmen_frei}]] !ammo @{character_id} heben_tragen_erfolge -[[@{heben_tragen_erfolge}]] !ammo @{character_id} heben_tragen_erfolge [[[[@{str}+@{kon}]]d6sacs5cs6>5]] !ammo @{character_id} heben_frei [[@{heben}+@{heben_tragen_erfolge}*15]] !ammo @{character_id} tragen_frei [[@{tragen}+@{heben_tragen_erfolge}*10]] !ammo @{character_id} stemmen_frei [[@{stemmen}+@{heben_tragen_erfolge}*5]] /em &{template:tragkraft}{{test=Heben&Tragen}}{{heben=@{heben_frei}}}{{tragen=@{tragen_frei}}}{{stemmen=@{stemmen_frei}}}{{erfolge=@{heben_tragen_erfolge}}}'/> The time when the line of /em is executed varies and this leads to wrong results. The macro would depend on a correct order of all the commands. How could I solve this problem? Is there any way? The first 4 lines should set variables to zero. The next 4 lines would set them to their new values. heben_tragen_erfolge is the temporary variable of my roll result, such that I can reuse the roll result for the template in /em as well as for the calculation of the next 3 lines.