Little Fighter Empire - Forums
Very basic ai and wait value - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: AI Scripting (https://lf-empire.de/forum/forumdisplay.php?fid=56)
+--- Thread: Very basic ai and wait value (/showthread.php?tid=11029)



Very basic ai and wait value - The_Hari - 03-21-2020

Finally I have a use for ai script within my coding abilites aand it doesn't work.

Code:
int ego(){ if (mode == 1 && self.hp < 50 && self.hp > 0 && self.frame == 230 || self.frame == 231){ DJA(); } return 0; }

Basically hunter suppose to use DJA while lying and his hp is lower than 50, and make it happen only in stage mode. There is no any errors in console, yet he's transforming pretty much anytime you send him lying, also in vs mode.

And for second part of this thread, is there a way to make ai wait a bit before performing move? I can't split lying frame into two parts, because using next: in state 14 makes character start blinking, even if another frame also use state 14. So no simple dc solution.


RE: Very basic ai and wait value - Nyamaiku - 03-22-2020

Code:
int ego(){ if (mode == 1 && self.hp < 50 && self.hp > 0 && (self.frame == 230 || self.frame == 231) ){ DJA(); } return 0; }
try adding another set of brackets like this