this will make it lay exactly 25 times when you say greenrupee
NPC Code:
if (playersays(greenrupee)||timeout&&!this.count>24) {
setplayerprop #c,;
playerdir = 2;
freezeplayer .2;
playersprite = 24;
lay2 greenrupee,playerx +0.5,playery +3;
this.count ++;
timeout=0.05;
}
if (playersays(greenrupee)&&this.count>24) {
this.count = 0;
}
is this what you wanted?