So I got it working! Kinda...
The script generates a random name, and I can pass it to my Story script via GetVarString.
I'm doing it as follows:
IF
RegionStarted("LevelName")
AND
GetVarString(CHARACTERGUID, "Name", _Name)
THEN
CharacterSetCustomName(CHARACTERGUID, _Name)
Problem is? it only works once. If I try to reload my mod it instantly crashes the editor and I can never load my mod again.
But...why? Can anyone explain why this is?