well now I got it to ALL WORKING but the only prob i still have is once you answered he wont give you anymore rupees BUT if you say anything (even a blank space) he will say WRONG and put the explosion on you...but only once, after that you can say anything and it wont happen and walk up to him and he will say you already answered. heres the script:
NPC Code:
if (playerenters) {this.riddle=1;}
if (this.riddle==1&&playerchats&&strequals(#c,an address)) {say2 ;}
if (playertouchsme) {say 4;this.riddle=2;}
if (this.riddle==2&&playerchats&&strequals(#c,an address)&&!hasrupee;){lay bluerupee;say2 Haha! Right!;set hasrupee;}
if (playertouchsme&&hasrupee) {say2 You've already answered!;}
if (this.riddle==2&&playerchats&&!strequals(#c,an address)) {say2 Wrong!;putexplosion 2.5,playerx+0.25,playery+1;this.riddle=1;}