As stated, I can't quite wrap my head around how scripts are actually handled ingame. In particular, charScripts. I wrote something extremely simple as a proof of concept:
Code
INIT
	CHARACTER:__Me
EVENTS
	EVENT TestEvent
ON
	OnCharacterStatusApplied(__Me,SCRIPTTEST)
ACTIONS
IF "c1"
	CharacterHasStatus(__Me,SCRIPTTEST)
THEN
	CharacterRemoveStatus(__Me,SCRIPTTEST)
	CharacterApplyStatus(__Me,SCRIPTWORKS,2,1)
ENDIF

That, to my knowledge, should work. But who or what tells the game to actually run this and on what? All I managed to find was that this script needs to be attached to a resource, and the resource needs to be attached to something in the game. But that's where I'm lost. I want the script to work on basically every possible character, not just one.

I apologize for the probably very noob-ish question, but this is new territory for me. In the first place, I do not understand why there isn't just a 'run script on skill use/status apply' kind of field in the stats editor.