Does using ethereum fork will help me here?
Or there is any guide to do this?
It mostly depends on what is X or Y. What these events are in the real life? Today's temperature? The result of elections? Something else?

You need to understand that the events of the smart contracts are connected to the blockchain of Ethereum. Every event should be mathematically implemented.
X and y,z,w events are something the community decides
X - can be trump re-election
Y - can be decaprio winning oscar award.
Z - can be the number of iPhone purchases.
So the x,y,z event need the community confirmation.