Writing an event to power an event-based achievement
Sample XblEventsWriteInGameEvent code that fires a game event so XBOX Live stat rules update stats and unlock event-based achievements.
This topic shows example code of how to write an in-game event.
When the event is fired, the event-based stats on the service are updated according to the stat rules that you’ve defined in Partner Center.
Those stats, in turn, power event-based achievements.
For more information, see XblEventsWriteInGameEvent.
Last modified on August 20, 2026
Related topics
Event-based achievements example codeOverview of the XBOX Achievements Manager APIWriting an event to power an event-based statOverview of event-based AchievementsPortal configuration of event-based Achievements