1. A method to execute a script for a computer-implemented virtual game at a client device, the method comprising: determining a first event script to execute based on an in-game action performed by a user of the virtual game; sending an update notification to a server computer, the update notification indicating the in-game action and client-side game state information; receiving an update response from the server computer, the update response including a game resource based on a secure game state that is to be updated at the server computer using a second event script, the second event script being associated with the first event script, and the game resource being associated with an in-game effect of the virtual game; and using at least one processor, executing the first event script to present the in-game effect to the user.