How to customize my events

In My Software

When certain conditions are met, trigger the event content。

Can you give me some references?