Fate/Fudge dice - custom script for separate color die results

ELDERScript issues? Custom roll macros?
Post Reply
Epimetreus
Posts: 18
Joined: Sat Dec 05, 2009 10:48 pm
IQ Test: Orange

Fate/Fudge dice - custom script for separate color die results

Post by Epimetreus » Tue Jan 05, 2016 1:11 pm

Hi. I'm using a rule option from the Fate System Toolkit (p. 72) called Red & Blue Dice.
The way it works is that instead of using extra shifts to represent Weapon ratings 1-4 or Armor ratings 1-3, you use red dice for weapons on attack rolls and blue dice for armor on defense rolls.

If you tie or succeed on an attack roll, you get one extra shift for every red die that has a + sign.
If you tie or fail on a defense roll, you get one extra shift for every blue die that has a + sign.

I've got favorite rolls programmed to use 1, 2, 3, or 4 red dice and a corresponding number of regular yellow dice (1R + 3Y, 2R + 2Y, 3R + 1Y, or 4R) and the same sort of thing for defense rolls.

What I'd like to do is customize the reported results, so that instead of just giving the standard Fate/Fudge dice total, it also shows the # of + signs on the red or the blue dice.

Thus, if I rolled 3 red + 1 yellow die for an attack, got a result of +2, with one of the red dice having a +, it would show:

+2 / +1 Red

If I rolled 2 blue + 2 yellow die for a defense, got a result of 0, with two of the blue dice having a +, it would show:

0 / +2 Blue

I feel this should be possible, but I don't know how to script it. Any suggestions?

Epimetreus
Posts: 18
Joined: Sat Dec 05, 2009 10:48 pm
IQ Test: Orange

Re: Fate/Fudge dice - custom script for separate color die results

Post by Epimetreus » Wed Jan 06, 2016 12:06 am

OK, I've got something that's partially working.

For "Weapon 2" (2 red dF and 2 yellow dF)

@1 <- 2RdF>0. @2 <- 2YdF. @3 <- @1. "Total: " + (@1 + @2) + "Shifts: " + @3

This is not right, but it's closer than nothing, which is what I had before.

What I want to get is:
* Total (of the pluses and minuses on all 4 dice)
* Shifts (# of pluses on the 2 red dice only)

What I'm getting is:
* Total (of the red dice with pluses and the yellow dice)
* Shifts (the # of pluses on the 2 red dice only; this is coming out correctly because that's what @1 gives me)

Do I need to use @ somewhere to get values as a list? Ordo Dicenomicon says lists will be handled in a future volume...

I know this is convoluted. Let me know if I haven't explained things clearly.
Help, please! Thanks.

Epimetreus
Posts: 18
Joined: Sat Dec 05, 2009 10:48 pm
IQ Test: Orange

Re: Fate/Fudge dice - custom script for separate color die results

Post by Epimetreus » Wed Jan 06, 2016 1:37 pm

OK, I figured out a way to do it. This works in all my tests so far.

For Weapon Rating 2 (rolling 2 red dF, 2 yellow dF), where I want to know the total result and also how many red dice had pluses:

@1 <- 1RdF.
@2 <- 1RdF.
@3 <- 2YdF.
"Total " + (@1 + @2 + @3) +
"Shifts " + (count1(@1) + count1(@2))

In other words, I track each red die separately. A bit of a hassle, but the maximum is 4 red dice.

It's kind of clunky, and I'm sure there's a more elegant solution, so if you know one, please chime in. Thanks!

Tektat04
Honored
Posts: 109
Joined: Mon Sep 15, 2008 12:55 pm

Re: Fate/Fudge dice - custom script for separate color die results

Post by Tektat04 » Thu Jan 14, 2016 1:05 pm

Your on the right path. But here the more elegant code.

Code: Select all

@1 ← #1 RdF @ . 
#2 ← 4 - #1 . 
@2 ← sum( @1 ) + #2 YdF . 
“Total:” + @2 + “Shift” + count1( @1 )
To define parameter #1 double tap on it and rename it Weapon Rating and tap done.

This code will allow for a weapon rating of 1 to 4 in one go.

For the armor rating its the same code just change the color to blue.

Epimetreus
Posts: 18
Joined: Sat Dec 05, 2009 10:48 pm
IQ Test: Orange

Re: Fate/Fudge dice - custom script for separate color die results

Post by Epimetreus » Thu Jan 14, 2016 1:30 pm

Beautiful! Just what I was looking for. Thank you!

Tektat04
Honored
Posts: 109
Joined: Mon Sep 15, 2008 12:55 pm

Re: Fate/Fudge dice - custom script for separate color die results

Post by Tektat04 » Thu Jan 14, 2016 2:07 pm

I forgot to mention. Do not define parameter #2. It's a parameter that is used only internally in the formula.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests