deer_buster
February 7th, 2019, 21:46
So, I'm wanting to create an extension to the CoreRPG that modifies the TOTL option to add the "friendly" value.
The desired results of this extension would be:
if "friendly" is selected, totals would only be shown if a PC rolled the dice
always show the total to the GM, even if TOTL is set to "off" - already shows the dice and the modifier, just not the roll total
always show the total to the player if their PC rolled the dice (if not rolling in the dice tower) - already shows the dice and the modifier, just not the roll total
I've looked into ActionsManager.createActionMessage function, and I can it to work for "friendly" by checking if the rSource.sType == "pc" when the option is set to "friend". So that option works fine.
Of course "on" works fine as it normally does.
But what I can't figure out is if you set the option to "off", the player's rolls are not totaled for the GM or the Player that rolled
Is this even possible, or am I spinning my wheels?
The desired results of this extension would be:
if "friendly" is selected, totals would only be shown if a PC rolled the dice
always show the total to the GM, even if TOTL is set to "off" - already shows the dice and the modifier, just not the roll total
always show the total to the player if their PC rolled the dice (if not rolling in the dice tower) - already shows the dice and the modifier, just not the roll total
I've looked into ActionsManager.createActionMessage function, and I can it to work for "friendly" by checking if the rSource.sType == "pc" when the option is set to "friend". So that option works fine.
Of course "on" works fine as it normally does.
But what I can't figure out is if you set the option to "off", the player's rolls are not totaled for the GM or the Player that rolled
Is this even possible, or am I spinning my wheels?