Zirius
New member
- Messages
- 261
- Points
- 0
Hello! I am trying to code a PVP script and wants to make use of streak counting. Basically, the streak is incremented when you kill a char, and resets to 0 when you got killed. So if I understand correctly, the code should *basically* follows:
OnPCDieEvent: attachrid killedrid; set @char,0; <~~~~ (1) attachrid killerrid; set @char,@char+1; <~~~~ (2)end;
(1) Does "attachrid killedrid;" means, any character variable declaration will go to the character of killed char?
(2) Does "attachrid killerrid;" means, any character variable declaration will go to the killer?
Because I tried to do the above but I am having undesirable result.
OnPCDieEvent: attachrid killedrid; set @char,0; <~~~~ (1) attachrid killerrid; set @char,@char+1; <~~~~ (2)end;
(1) Does "attachrid killedrid;" means, any character variable declaration will go to the character of killed char?
(2) Does "attachrid killerrid;" means, any character variable declaration will go to the killer?
Because I tried to do the above but I am having undesirable result.