-
December 6th, 2020, 13:07 #1
- Join Date
- May 2012
- Location
- France
- Posts
- 103
[Classic] Rolling more than one dice
Hello,
I'm trying to modify very simply the 3.5E Ruleset to change the dice rolled for AbilityAction, having read Trenloe's explanations. At first sight, it works fine and rolls a d6 instead of a d20 :
Code:function getRoll(rActor, sAbilityStat) local rRoll = {}; rRoll.sType = "ability"; rRoll.aDice = { "d6" }; rRoll.nMod = ActorManager2.getAbilityBonus(rActor, sAbilityStat); rRoll.sDesc = "[ABILITY]"; rRoll.sDesc = rRoll.sDesc .. " " .. StringManager.capitalize(sAbilityStat); rRoll.sDesc = rRoll.sDesc .. " check"; return rRoll; end
I've tried different syntaxes but nothing works. (2d6, d6+d6, ...)
Any help would be greatly appreciated.
-
December 15th, 2020, 03:58 #2My extensions for 3.5e and Pathfinder
Bug reports please here
-
December 15th, 2020, 05:56 #3
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,607
That's because FGC only accepts dice as individual die entries (i.e. { "d6", "d6" }). FGU will accept "expr = 'XdX'" within the die table; but accepts individual entries as well for backward compatibility.
Regards,
JPG
-
December 15th, 2020, 05:59 #4My extensions for 3.5e and Pathfinder
Bug reports please here
-
December 15th, 2020, 19:28 #5
- Join Date
- May 2012
- Location
- France
- Posts
- 103
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks