DICE PACKS BUNDLE
  1. #1

    [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
    Now, how would you tell it to roll two d6 and not just one?
    I've tried different syntaxes but nothing works. (2d6, d6+d6, ...)
    Any help would be greatly appreciated.

  2. #2
    Quote Originally Posted by Maspalio View Post
    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
    Now, how would you tell it to roll two d6 and not just one?
    I've tried different syntaxes but nothing works. (2d6, d6+d6, ...)
    Any help would be greatly appreciated.
    Did you try "d6", "d6" instead? Though I wonder why "2d6" didn't work for you, but I didn't test yet

    Sorry for the late answer, it may be better to ask such questions in the workshop Not sure how many just follow the armory (not speaking about its subthreads)

  3. #3
    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

  4. #4
    Quote Originally Posted by Moon Wizard View Post
    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
    Aah, thanks for the clarification

  5. #5
    Quote Originally Posted by Kelrugem View Post
    Did you try "d6", "d6" instead?
    Thanks a lot, it works!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
FG Spreadshirt Swag

Log in

Log in