# Are there anydice function(s) or code for Savage Worlds rolls?

I am trying to use the exploding function and the highest of functions, but I am having issues with the skill die or wild die side of the roll.

If I do output [highest 1 of 1d4 + 1d6] I get a minimum result of 2...which tells me I am doing this wrong. Is there a way to do highest of d4 OR d6?

The syntax for non-exploding and taking highest is:

output [highest of 1@1d4 and 1@1d6]


You could also split your command, like this:

output [highest of [highest 1 of 1d4] and [highest 1 of 1d6]]


For exploding, simply add the [explode <roll>] tag, so the result will be something like:

output [highest of [highest 1 of [explode 1d4]] and [highest 1 of [explode 1d6]]]


Or even simpler:

output [highest of [explode 1d4] and [explode 1d6]]

• I see so I should be ok with this. output [highest of 1@[explode d4] and 1@[explode d6]] – Jtest May 12 '17 at 13:51
• There are some edge cases in Savage Worlds where dice do not explode, most notably damage to inanimate objects like busting down a door. So thanks for including both! – Thunderforge May 12 '17 at 18:05
• Also note a roll of 1 on a sorcery-based spell-casting roll results in backlash regardless of the roll on the Wild die. – FluxIX Jul 26 '17 at 16:16
• I think that last one has too many highest of and could just be output [highest of [explode 1d4] and [explode 1d6]]. Not confident enough with anydice to just edit the answer though... – Chris Nov 29 '17 at 14:41
• @Chris you are correct that they wield the same result. Back when I wrote this answer, I had some kind of issue with highest of that forced me to input a number (highest 1 of) and led me to this code. But explode already wields the highest result. – ShadowKras Nov 29 '17 at 17:23