Hi all and thanks to those who helped me,
Eventually I finished the AI scripts for characters in this mod
OLD-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hi, here is the question:
Suppose there is a character which has a move that does not cost mp and his state is 17 while doing the move, the frames are unknown. Is there a method to stop him from continuing this move when an opponent is near him?
this is a weird problem I know, but I have tried adding the following but it didn't work anyway:
it seems that he can't stop the move even the conditions are met..
Thanks for reading
(and there may be more questions soon)
Eventually I finished the AI scripts for characters in this mod

OLD-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hi, here is the question:
Suppose there is a character which has a move that does not cost mp and his state is 17 while doing the move, the frames are unknown. Is there a method to stop him from continuing this move when an opponent is near him?
this is a weird problem I know, but I have tried adding the following but it didn't work anyway:
Code:
if ( target.x - self.x <= 100 && self.state == 17 ) {
D();
}it seems that he can't stop the move even the conditions are met..
Thanks for reading
(and there may be more questions soon)

Chat



oh ... indeed.. but using frames instead of state seems won't alter the result.. I have tried with "(self.frame >= 235) && (self.frame <= 398)" previously.
![[Image: ZucdcMY.png]](https://i.imgur.com/ZucdcMY.png)