PDA

View Full Version : [5E] More than a dice ?



Maspalio
October 4th, 2016, 00:43
Hi,

I'd like to know if it is doable to change the way checks functions? When i click on strength (i.e. 10), it rolls one d20. Now how could i have the same rolls cast the strength vlaue amount of dice, so 10 dice in this example?

Can the aAddDice do this ? Thanks for your help.

LordEntrails
October 4th, 2016, 00:58
You would have to write an extension or a new ruleset. If you detail the use case and the way you want it to work, some of the gurus (which I'm not one of) can make some suggestion and maybe even point you to an extension that does something similar.

Maspalio
October 5th, 2016, 17:00
I got this made with a new Ruleset but the way i throw dice is rather ugly. I got a temporary value checked, wich is used to throw more than a dice.

For a field number sets with i.e a "8" in it, i have a script included for that field that checks this number : local ValueToUse = window.NameOfTheField.getValue()

Then i sets the dice locally : local dice = ChatManager.d20Check(ValueToUse);

It throw a number of dice equals to ValueToUse, but i'm sure someone more skilled than i am could do better. Especially with the 5E Ruleset.

Anyone ?

Moon Wizard
October 5th, 2016, 17:48
That seems like that way to do it.

Here's an alternate way, if you're looking for one:

local aDice = {}
for i = 1, window.field.getValue() do
table.insert(aDice, "d20");
end

Regards,
JPG