
Hello everyone,
I have been experimenting on this since some time now and I am having troubles figuring IF it's possible to do what I am thinking.
I am trying to create a custom character sheet for a game called Fabula Ultima, in this game you have four attributes that are represented by a dice, the higher the dice, the better you are, I was able to do this with four select.
Now, weapons in the game works like this, the attack roll is for example ATTR1 + ATTR2 + Modifier so, if ATTR1 = 1d8 and ATTR2 = 1d6 the roll is 1d8+1d6+1, I was able to create a repeating where you can add your weapons, add the name, specify the modifier and use a button to roll like this:
<button type="roll" name="roll_weapon" value="/em attacks with @{weaponname}: [[@{attr1}+@{attr2}+@{modatt}]]"></button>
This is actually working but here comes the first problem, I'd love to let the character to choose which are the two attributes to use for a weapon, since not all weapons use attr1 and attr2, but I cannot figure if it's possible to use two select and use them to refer to the character attributes
Now comes the damage part of the problem, in this game once you have hit the target with your attack, the damage is made of the maximum of the two rolls plus damage modifier, I believe here comes the Custom Roll Parsing magic but again, I need to be able to create the roll for the startRoll function considering what I've said before, the two dices need to depend from the choices made from the weapon added in the repeating.
Is this possible?
Any suggestion?
Thank you very much in advance for any answer and best regards
Fra