
Hi!
I'm trying to make a macro that follows the Witcher TTRPG rules.
The purpose of the maco is to have it calculate the dmg you've dealt.
First you choose if you're hitting a human or a monster, then choose what body-part you have hit and then I would like for the user to enter the damage their weapon deals and then have the macro calculate it depending on the modifier for the specified body part.
Ex. You hit a monster, you roll a 1d10(10) and therefore hit a tail, which give a x1/2 mod to the dmg. You input that your weapon deals 3d6(15) damage. The program should then run the following math: 15/2 = 7,5 which then is rounded down to 7.
But how do I make it so a player can input a value and have that value multiplied?
So far this is all I've got:
?{Who do you hit? |Human, ?{Roll 1d10 |1 (Head), &{template:default} {{name= You hit the head }} |2-4 (Torso), &{template:default} {{name= You hit the torso }} |5 (R. Arm), &{template:default} {{name= You hit a right arm }} |6 (L. Arm), &{template:default} {{name= You hit a left arm }} |7-8 (R. Leg), &{template:default} {{name= You hit a right leg }} |9-10 (L. Leg), &{template:default} {{name= You hit a left leg }} } |Monster, ?{Roll 1d10 |1 (Head), &{template:default} {{name= Hit Head }} |2-5 (Torso), &{template:default} {{name= You hit the torso }}; |6-7 (R. Limb), &{template:default} {{name= You hit a right limb }} |8-9 (L. Limb), &{template:default} {{name= You hit a left limb }} |10 (Tail or Wing), &{template:default} {{name= You hit a tail or wing }} } }
I hope someone can help, cuz I'm all lost ^^'