A variable will help the script to work once. E.g:
NPC Code:
if(created){
this.mode = 0;
}
if(playerchats && strequals(#c,bah) && this.mode == 0){
playerrupees+=10;
this.mode = 1;
}
Done,you did it once and next time you won't be able to get more 10 gralats. Why did i put 'playerrupees' with underline? Because seems (is) better to use than players[index].rupees since it's for you.
Quote:
And whats the command for if all enemies are dead....?
|
read commands.rtf ^-^