Vampire Dice Rolls

Thoughts, Help, Feature Requests

Moderators: Azhrei, dorpond, giliath

Post Reply
Vampyricus
Kobold
Posts: 3
Joined: Wed Jul 17, 2019 8:04 pm

Vampire Dice Rolls

Post 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.

Phergus
Deity
Posts: 7112
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Re: Vampire Dice Rolls

Post 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

User avatar
aliasmask
Deity
Posts: 8580
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Vampire Dice Rolls

Post 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.

Vampyricus
Kobold
Posts: 3
Joined: Wed Jul 17, 2019 8:04 pm

Re: Vampire Dice Rolls

Post 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.

User avatar
aliasmask
Deity
Posts: 8580
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Vampire Dice Rolls

Post 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.

Vampyricus
Kobold
Posts: 3
Joined: Wed Jul 17, 2019 8:04 pm

Re: Vampire Dice Rolls

Post by Vampyricus »

I thought it might be something like that.

Thanks, very much, for the help.

Post Reply

Return to “DiceTool”