Thanks for the tip but it unfortunately did not solve my issue.
I really want to point out that the only line of code in here that needs to be removed for the script to not loop is : CharacterAddTrait()
I tried using the event that the MAIN campaign uses in the GLO_StatIncreases but the result is the same, an infinite loop...
Here's the main campaign code, which looks fairly similar to the code I put before.
IF
DialogEnded(_, _Id)
AND
StatCurrentDialogDB(_Event, _Player, _Id)
AND
DB_StatIncreases(_Event,_Trait)
THEN
CharacterAddTrait(_Player,_Trait,1);
CharacterIncreaseSocialStat(_Player,_Event);
DialogClearCharacterEvent(_Event,_Player,1);
Unfortunately I can't dig deeper under the hood of CharacterAddTrait... Unless someone knows how to access the source code of the functions offered by their engine???
