When the player chooses an option, the game engine will trigger the function (if it has one). Advanced: The first function parameter will always be the player key. Second will be the quest variable for that player. Other parameters will be the ones you have put in the param array.