A game Event is the first step for launching Game Offers. However, Game Events have a much broader meaning. You can use them to plan your in-game activities and events like Halloween, Tournaments, Weekends, and more. Adding Game Events increase your game's retention and engagement.
After installing the LiveOps package, you get a ready-to-use structure for Game Events, and the table looks like this:
|Name||This name is used mostly for your convenience|
|Script||The link to the script, which is executed once the event starts. The script can have any logic, but generally, it's used to Segment players and give them Personalised Offers. You can read more in Visual Scripting section|
|Conditions||Conditions required to meet to start the event. Leave it blank if you want to run this event all the time - this approach works for Starter Pack Offers. But if you have seasonal, weekend, or game anniversary events - you should specify the conditions. In most cases, the conditions are time-based.|
If your game requires additional parameters, you should inherit a new Template from 📅 Game Event and add as many parameters as needed.
When you create a new Event, make sure to select the new Template you just created, and then you'll get something like this:
Section for programmers¶
You can request all active events. Call this method only after OnSmartObjectsInitialized is invoked.
var activeEvents = Balancy.LiveOps.GameEvents.GetActiveEvents();
Visit the Programmers Section and learn how to subscribe for important events.