Quote:
Originally Posted by billybob256
for example
NPC Code:
if (created||timeout){
if (x in |x-1,x+1| && y in |y-1,y+|){ //Checks to see if mouse in position
message Rar!; //Commands Here
}
timeout=0.05
}
|
If you are going to use the code tag, at least use it properly - that is, format the code which you put within the tags.
That said, you are not using the proper variables - you want to check if
mousex and
mousey are within those ranges, not if the NPC's x and y are. You also lack an operand within your second range...