Ok I have this NPC that asks you a riddle. Before you talk to him if you say the correct answer nothing happens (i got this down) after you speak with him if you answer anything else BUT the right answer he dissapears and a baddy appears. if you kill the baddy he will re-appear like nothing happened and you have to ask him again, if you answer correctly he drops a gold rupee, my problem is while you are still saying the answer if you touch him he drops more rupees, and everytime after that if you say the answer he drops rupees BUT says You already answered (which i made him say if you got the right answer) It involvs alot of flags and im gonna post what i have of the script here (its kinda unorganized and messy and unfinished but its what i have so far)
I need help to where if you answer right, you cannot do the riddle ever again.
if (playerenters) {set riddle1;}
if (riddle1&&playersays(an address)) {say2 ;}
if (playertouchsme) {say 4;set riddle2;}
if (riddle2&&playersays(an address)){lay goldrupee;say2 Haha! Right!;set hasrupee;}
if (playertouchsme&&hasrupee) {say2 You've already answered!;}
if (riddle2&&playerchats&&!hasrupee) {say2 Wrong!;shootball;hide;putnewcomp lizardon,20.5,49,baddylizardon.png,10;}
if (compusdied) {say2 Let's try again;show;set riddle1;}

cant figure it all out...