Quote from: FortressCaulfield on Mon 15/07/2024 17:45:01This might have something to do with it:
cEgo.ChangeRoom(5);
Greed += 2;
Anything after ego changeroom will be ignored in a room script because you're not in that room any more.
When called for player ChangeRoom is not executed right away, but scheduled to be executed after the script finishes.
See a note in: https://adventuregamestudio.github.io/ags-manual/Character.html#characterchangeroom
But for the purpose of clarity of the code, it's definitely best to have all actions done before ChangeRoom.