PDA

View Full Version : Seeking advice on coding a Morale reminder at the end of each combat round.....



Flynn
September 2nd, 2025, 02:01
How would I go about coding an extension that would remind me to check Morale at the end of each round of combat? I understand the basics of building extensions, but I don't know how to detect the end of the combat round, so I can push my reminder put to the Chat window. Any insight would be appreciated. Thanks in advance!

Trenloe
September 2nd, 2025, 02:06
There a CombatManager.onRoundStart event in CoreRPG, but not an onRoundEnd unfortunately.

You can register to run a custom function onRoundStart using:

CombatManager.setCustomRoundStart(myOnRoundStartFu nction);

Flynn
September 3rd, 2025, 22:54
Thanks!

deer_buster
September 5th, 2025, 05:59
You could also listen to CT_ROUND