PDA

View Full Version : CoreRPG / FG Question



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?

Moon Wizard
February 11th, 2019, 04:38
You would need to override the function with the TOTL option in the ChatManager script. However, I'm not sure what the benefit of the turning off the option is; since all it does is not add the dice together, which someone can do in their head or with a calculator.

Regards,
JPG

deer_buster
February 11th, 2019, 07:08
You would need to override the function with the TOTL option in the ChatManager script. However, I'm not sure what the benefit of the turning off the option is; since all it does is not add the dice together, which someone can do in their head or with a calculator.

Regards,
JPG

Thanks for the reply!

Are you saying it is a pointless option in the grand scheme of things? Why even have it then?

Moon Wizard
February 11th, 2019, 07:11
There’s no hidden information with either the total on or off. It’s just whether you want the total to be displayed or not. The total can stilll be calculated by adding the dice and modifier together.

That’s why I was asking why you would want to do that.

Regards,
JPG

deer_buster
February 11th, 2019, 13:18
More for a learning exercise than anything...I thought covering all of those "requirements" would give me a better understaning of some of what is possible.