Tianos
February 10th, 2026, 12:10
Hello staff, first of all, and I apologize for the high-sounding title, I have done several experiments:
Feature request – conditional dice result handling in CoreRPG / XCORE
Hello,
while developing a small extension for CoreRPG/XCORE, I ran into a structural limitation of the dice and chat system that I believe could be worth addressing in future implementations.
At the moment, extensions have no reliable way to react to the resolved result of a die roll (for example a standard d6). The die color and presentation are determined before the roll is resolved, and there are no exposed hooks or callbacks that allow extensions to inspect the final value and apply conditional logic or visual effects afterward.
Intended use case
The goal I was trying to achieve is fairly simple and purely visual/narrative:
Roll a standard d6
If the result is 6, display the die (the result in chat) in red
If the result is 3, display it in green
Otherwise, keep the default appearance
This kind of conditional feedback could be useful for:
narrative mechanics
lightweight success/failure indicators
custom rule systems built on top of CoreRPG/XCORE
visual clarity without altering core dice probabilities
Current limitation
Through testing, it appears that:
Dice results cannot be intercepted or modified after resolution
Slash commands and /roll behavior cannot be extended or overridden by extensions
There is no post-roll hook (e.g. onDiceResolved, onDiceResult, or similar) exposed to extension developers
Suggested improvement
Exposing one of the following would make this (and similar use cases) possible without breaking existing behavior:
A post-roll callback/hook that provides access to the final dice results
A supported way for extensions to register custom slash commands
Or a controlled way to influence die presentation (such as color or metadata) after the roll has been resolved
I believe this would significantly improve extensibility while remaining optional and backward-compatible.
Thank you for your time and for your continued work on the system.
Best regards, Tianos
Feature request – conditional dice result handling in CoreRPG / XCORE
Hello,
while developing a small extension for CoreRPG/XCORE, I ran into a structural limitation of the dice and chat system that I believe could be worth addressing in future implementations.
At the moment, extensions have no reliable way to react to the resolved result of a die roll (for example a standard d6). The die color and presentation are determined before the roll is resolved, and there are no exposed hooks or callbacks that allow extensions to inspect the final value and apply conditional logic or visual effects afterward.
Intended use case
The goal I was trying to achieve is fairly simple and purely visual/narrative:
Roll a standard d6
If the result is 6, display the die (the result in chat) in red
If the result is 3, display it in green
Otherwise, keep the default appearance
This kind of conditional feedback could be useful for:
narrative mechanics
lightweight success/failure indicators
custom rule systems built on top of CoreRPG/XCORE
visual clarity without altering core dice probabilities
Current limitation
Through testing, it appears that:
Dice results cannot be intercepted or modified after resolution
Slash commands and /roll behavior cannot be extended or overridden by extensions
There is no post-roll hook (e.g. onDiceResolved, onDiceResult, or similar) exposed to extension developers
Suggested improvement
Exposing one of the following would make this (and similar use cases) possible without breaking existing behavior:
A post-roll callback/hook that provides access to the final dice results
A supported way for extensions to register custom slash commands
Or a controlled way to influence die presentation (such as color or metadata) after the roll has been resolved
I believe this would significantly improve extensibility while remaining optional and backward-compatible.
Thank you for your time and for your continued work on the system.
Best regards, Tianos