What exactly are you having trouble with? It's not much different than any other clickable interactable object.
If dialogue is waiting for response
On 1 clicked, do something
On 2 clicked, do something
On 3 clicked, do something
On 4 clicked, do something
Although for most classic rpgs, they all actually do the same thing, which is to advance the dialogue anyway.