[QUES] Another question about events

Is there a event or such that can see when game development has started? I can’t seem to find one in the api :frowning:

Do you want to create one?

You can use company.isGameProgressBetween(low, high). Low and high are values from 0.0 to 1, being 0.0 the start of the development and 1 the end.

so in an event you could do something like:
trigger: function (company) { return company.currentLevel == 3 && company.isGameProgressBetween(0.2, 0.9); },

Hope this helps a bit ^^

2 Likes

@DzjengisKhan I think he meant events that get fired in the code, not in-game events :stuck_out_tongue:

If that’s what you meant @tmch, then no, you’ll have to hack the UI.closeGameDefinition method like you hacked the week-related one earlier.

1 Like

What event triggers UI.closeGameDefinition in that case?

The “Start Development” button triggers it.

1 Like