I searched but i didn’t find it. There is a way to create a event that show at the start of developing a new game?
Well it’s easy to create one. I hope. Let me create one easily.
There we go. Look at the trigger, did you mean that?
var genericsfate = {
id: “id”,
date: ‘30/10/1’,
isRandomEvent: false,
trigger: function (company) {
company.isGameProgressBetween(0.1, 0.2);
getNotification: function (company) {
return new Notification({
header: “header”.localize(),
text: “text”.localize()
});
},
complete: function (decision) {
var company = GameManager.company;
}
}
GDT.addEvent(genericsfate);
Maybe you can do
company.isGameProgressBetween(0, 0.1);
but not really sure.
You make a function with a notification and bind it to an event trigger.
Thanks both, I will try this code. Would be nice if they add a eventkey with game start developing.
I can’t make it work, the notification don’t show up
Weird. Did you just pasted my code?
Look at the date.
UI.showGameDefinition or something.
There is, but its named something else I think.