Couple of AI questions - 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: Couple of AI questions (/showthread.php?tid=8686) |
Couple of AI questions - Memento - 05-07-2013 I am starting to understand the scripting a little but I still don't know a fix for some things. 1. I want to set a dodging move for attacks that cause >= 70 injury (AI will only do it when it has >= 400 MP so it won't be a cheap move). Is there a way to do this? An alternative would be using target.state == 3, perhaps with a target.mp condition.. but it would not have the same effect 2. I want to make my character use DJA+A+A+A.... when the opponent is at a distance. It's a move to charge MP. However, he DOES go to the charging stance (caused by DJA), but he only starts tapping A when I walk. Does anybody know why this might happen? Code: int ego(){ 3. Is there a way to make him avoid picking objects? RE: Couple of AI questions - YinYin - 05-07-2013 (05-07-2013, 02:32 PM)Neocrypt Wrote: 3. Is there a way to make him avoid picking objects?If you want to avoid him using any items at all you can solve this without AI. Make him spawn one of his projectiles on hand like freeze does with his ice sword. (do that in basic attacking actions when he doesn't have an item yet) Hold this projectile in an invisible frame everywhere. Make all his basic attacks also available from the basic item actions. |