So, the below code gives the dialogue whenever a player clicks on it. What I want is to update it to make it give the hint only to the first player to click it. The player must be able to get the hint every time he clicks on the NPC but other players should not be able to get the hint.
var switch_name = npc.Id();
function init(hr, min, sec) {
npc.setName("Seth");
};
function touch(player) {
};
function action(player) {
var dialog = lib.dialog(player);
dialog.talk("The hint is 1234");
player.setSwitch("Seth ID", true);
dialog.send();
};