Thanks for the answer.
From this site i had the SalesCalculated event, which I already tried.
Problem is, which I probably didn’t write good: I don’t get the notification, which means that the event doesn’t trigger, right?
//edit:
Also, would this be correct?
var gzZuVk = function(e) {
GameManager.company.notifications.push(new Notification("News".localize(), "You sold " + game.UnitsSold + "units of your game" + game.title));
}
GDT.on(GDT.eventKeys.gameplay.SalesCalculated, gzZuVk);
I would suggest using “showModalDialog”. I dont remember how it is used, so @PatrickKlug should be able to show you. If you add a debug thing, like “console.log(game.UnitsSold)” and then check in the ingame console, that would be more useful. Also, I dont know if there is a variable called UnitsSold on a game object.