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.
Vampire Dice Rolls
Moderators: dorpond, Azhrei, giliath
Re: Vampire Dice Rolls
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
Dice_Expressions
Category:Dice_Function
Re: Vampire Dice Rolls
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.
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.
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]
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
-
- Kobold
- Posts: 3
- Joined: Wed Jul 17, 2019 8:04 pm
Re: Vampire Dice Rolls
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.
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
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.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
-
- Kobold
- Posts: 3
- Joined: Wed Jul 17, 2019 8:04 pm
Re: Vampire Dice Rolls
I thought it might be something like that.
Thanks, very much, for the help.
Thanks, very much, for the help.