IF you do not have have any .charScripts already, I'd advice to use Story scripting instead.
Most important: .char Scripts will make your mod conflict with other mods, while story scripts will not.
So if you want ppl not to trouble about compability and use your mod with others without addition patches / fixes - use story scripting.
It has enough tools for most of the cases.
Making a new story script is easy, just
1) open story editor;
2) file - "Generate diffinitions, build and reload" (ctr+F7);
3) chosee to parent script (the top one), right mouse button - "Add new subitem"
4) name it the way you want. Beter to have unique name, smth like: YorModeName_ScriptName
After that you can just write your script in "KB" section (the middle one).
To apply changes: File - "Build and reload"
The script I showed as an example in previous post, is a story script, and should work fine, just change status names.
Here are some links you may need to learn story scripting (also called Osiris)
https://docs.larian.game/Osiris_Overview - overvew
https://docs.larian.game/User:Sunjammer/api - API list