Quote:
Originally posted by GregoryYoshi
triggeraction can send more than one parameter 
#p(index) gets the parameters from the specified index in triggeraction.
The reason I had it #p(2) was because I was testing other indexes...even #p(1) returned a value of 0.
|
I know that u can use more then only one param but I thought in that case #p(2) would be wrong....
and u missed a bracket here:
NPC Code:
this.type = int(random(1,5);
and this part:
NPC Code:
setcharprop #c,#v(this.mined) | #v(this.hitter);
} else
needs another bracket too
NPC Code:
setcharprop #c,#v(this.mined) | #v(this.hitter);
} else {