PDA

View Full Version : The dice tower does not handle complex dice expressions



psicodelix
December 12th, 2022, 11:46
Ruleset(s): CoreRPG
Extensions/Themes: none
Modules Loaded: none
Operating System / Language Setting: Win10/11
Steps to Reproduce:

When you define some complex roll (d6!) and try to drag the roll in the tower it does nothing.

The problem seems to be in this function:



function decodeRollFromOOB(msgOOB)
msgOOB.type = nil;
msgOOB.sender = nil;

msgOOB.aDice, msgOOB.nMod = DiceManager.convertStringToDice(msgOOB.sDice);
msgOOB.sDice = nil;

msgOOB.bTower = true;
msgOOB.bSecret = true;

return msgOOB;
end


when calling convertStringToDice the special dice are lost.

damned
December 12th, 2022, 12:07
Ditch the tower! No hidden rolls!

Moon Wizard
December 12th, 2022, 18:41
That's correct. The advanced dice expressions will not work across all of the features in CoreRPG. I've been slowly adding the capability to pass that information around as I've touched each system.

Regards,
JPG

Moon Wizard
December 16th, 2022, 03:27
Since this came up, I'll be adding some extra code in the next version to preserve dice information in the dice tower handling of rolls. This should allow all dice information to propagate.

I'm in the middle of a larger set of changes; so this will be targeted for early next year.

Regards,
JPG