![]() |
|
|
AI Template - 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: AI Template (/showthread.php?tid=7989) |
|
AI Template - YinYin - 06-22-2012 here is an AI for template that can kill most original characters (due to deadly jump attack abuse i have to admit) my aim is however to turn this into a real modular template script, where you only have to enter the ranges of all basic attacks at the top and then only worry about: special moves/combos and most of all testing opponent specific decisions (timing function) that will make your character do the right choices when it comes to breaking or performing a combo sometimes for example when your character really could start off many different combos without much difference on the damage output the current hp/mp of you and your opponent can really help you decide as they can determine whether you are able to turn this into an unbreakable combo or whether the opponent doesnt have the energy to break an even stronger but breakable version; kind of what i wasted most of my time on with davis right now there is still a little too much clutter inside the basic actions which i really need to condense and rather put inside the timing function (i have barely started with them ...) if you want to have a good challenge against a computer without special moves go pop this in as 0.chai
oh and if my fleeing alg becomes better i can also think of having a function that checks whether the difference of your opponents red-darkred hp is smaller than yours and make the character go into flee mode if he can profit from getting some time to regain health - this should be useful for stage mode edit: project is replaced by writing a new basic ai since angel script now allows that - i will scavenge everything useful i had already done here as soon as i get to that point |