I'm trying to put the code you mentioned into the game. I'm currently struggling by adding a charscript to my playable characters (the origins).
Referencing on the documentation by larian, charscripts have to be added via the root template of the character (https://docs.larian.game/Activating_Scripts : "Character and item scripts can be assigned to resp. characters and items via the Scripts property in the sidebar. You can do this both for root template and for instances/objects of root templates that you placed in a level.")

Do I have to load something to access the origins root_templates? is there a better way then trying to add a charscript to the origins?

I've tried to add a gamescript as well, since they don't have to be linked to specific characters, but I don't know how to add the caster or hitter as a character.

Code
EVENT CharacterSetMotA_WEAPON_COAT_DEBUFF
VARS
    CHARACTER:_EnemyHit
    LIST<STATUS>:_RemoveList
    STATUS:_Result
	INT:_Turns
ON
    FetchCharacterApplyStatusData(_EnemyHit,HIT)
ACTIONS
	Set(_Result,null)
	Set(_Turns,null)
	ListClear(_RemoveList)
	StatusText(_EnemyHit,"GotHit")

	RETURN(_RemoveList,_Result,_Turns)


The code worked great, and every hit displayed a GotHit text, but I didn't managed to get a "Hitter" display text above the caster.