![]() |
|
|
AI question about revive - 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 question about revive (/showthread.php?tid=9325) Pages:
1
2
|
|
AI question about revive - feiterry - 07-26-2014 How to write AI for revive the char? RE: AI question about revive - AmadisLFE - 07-26-2014 First of all, welcome to LFE, also, I don't think you can revive a char using ai, ai stands for artificial intelligence , if you want to revive a char, use DC, add some body aka bdy to the specific chars you want to revive, and make an or at the same place as the bdy, it must be negative though. RE: AI question about revive - feiterry - 07-26-2014 Thank yo for your reply, I have already used DC to make some skills for revive, unfortunately I don't know how to set AI for the com. player to revive me. Is is possible to make it? When I die, and the com. player know that and revive me? RE: AI question about revive - A-Man - 07-26-2014 Well it depends on whether the AI still works when a character is dead. Try doing a "print("something");" call and see if it still shows when your character is dead. If it does, then the way to do it is as follows:
However, if it doesn't print when you're dead, then it is most likely that you can't do it. Edit: @bashs: Ah you're right. I thought the the OP managed to write a skill that revives himself, and he wants the computer to be able to use it and revive himself. RE: AI question about revive - bashscrazy - 07-26-2014 Shouldn't it be something like "self.team.hp < 0" if such a thing even exists? can you do that? (dammit, not being in school for 3 months made me forget about the names of programming). RE: AI question about revive - Boop - 07-26-2014 I think, if I understood correctly, feiterry wants the COM AI to find dead allies and revive them? Code: for (int i = 0; i < 400; i++){ //targetDepending on the range of the revive you might have to make the AI walk to the person etc. RE: AI question about revive - feiterry - 07-27-2014 Thank you!! you guess correctly, and sorry for my poor english, Let me try if it is work or not~ RE: AI question about revive - AmadisLFE - 07-27-2014 (07-27-2014, 02:16 AM)feiterry Wrote: Thank you!! I am an ai noob, so I didn't understand, anyway, if that works, click the solved button, also instead of thanking directly in post, you can also use the thank button , I hope you have fun in LFE
RE: AI question about revive - feiterry - 07-29-2014 A stupid question... how can the AI walk near the char(HP=0)..? RE: AI question about revive - feiterry - 08-05-2014 Please help~ |