Page 1 of 1

Vampire Dice Rolls

Posted: Wed Jul 17, 2019 8:14 pm
by Vampyricus
Can't figure out how to roll Vampire Dark Ages v20 dice.

Varying difficulty, 1's are botches and subtract one success, 10's explode.

Re: Vampire Dice Rolls

Posted: Wed Jul 17, 2019 9:54 pm
by Phergus
Have you checked the wiki? If you don't find exactly what you need you may be able to use one of the exploding dice rolls combined with Wiki: getRolled() and/or Wiki: getNewRolls() to write a macro that will do it.

Dice_Expressions

Category:Dice_Function

Re: Vampire Dice Rolls

Posted: Wed Jul 17, 2019 10:01 pm
by aliasmask
I would use the exploding success. You then use getRolled() and json.count to get the number of 1's rolled to subtract from success.

Code: Select all

[H: abort(input("dice","target"))]
[H: output = strformat("Target: %{target} ") + explodingSuccess(dice, 10, target)]
[H: successes = listGet(output,3,":")]
[H: botches = json.count(getRolled(),1)]
[H, if(botches), code: {
   [H: total = max(0,successes - botches)]
   [H: output = strformat(output + " -%{botches} = %{total}")]
};{}]
[R: output]
I don't really like that the only way to get the number of successes is to parse through the output string of explodingSuccess. Should be just the result, imo, but I get why it was done. In this case, to get the number I treated the string as a list where the last item in the list is the value you want using ":" as the separator.

Re: Vampire Dice Rolls

Posted: Wed Jul 17, 2019 10:37 pm
by Vampyricus
Thanks for the macro.

Don't understand all of coding yet (very little in fact).

Tried using your macro, seems to work, but keeps generating rolls of over 10.

Target: 6 Dice: 6, 1, 16, 5, 19, 9, 5, 6, 2, 3, 4, 2, 1, 8, 4, 2, 2, 2, 8, 5, Successes: 7 -2 = 5

This doesn't seem to affect the accuracy though.

Confused.

Re: Vampire Dice Rolls

Posted: Wed Jul 17, 2019 10:46 pm
by aliasmask
That's what exploding dice is. If rolling a 10 then roll again to get new value. So, 16 and 19 are 10+6 and 10+9. That way, you can still get successes if your target is over 10.

Re: Vampire Dice Rolls

Posted: Wed Jul 17, 2019 11:37 pm
by Vampyricus
I thought it might be something like that.

Thanks, very much, for the help.