-
December 6th, 2020, 14:07 #1
- Join Date
- May 2012
- Location
- France
- Posts
- 93
[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, 04:58 #2
-
December 15th, 2020, 06:56 #3
Greater Deity
- Join Date
- Mar 2007
- Posts
- 14,989
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,
JPGFG Wish List - http://fgapp.idea.informer.com/
-
December 15th, 2020, 06:59 #4
-
December 15th, 2020, 20:28 #5
- Join Date
- May 2012
- Location
- France
- Posts
- 93
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks