Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AI question about revive
#4
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:
    AI-Code:
if (self.hp <= 0)
    DuA(); //or whatever input you set for the skill.


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.
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by: feiterry


Messages In This Thread
AI question about revive - by feiterry - 07-26-2014, 04:29 PM
RE: AI question about revive - by AmadisLFE - 07-26-2014, 05:15 PM
RE: AI question about revive - by feiterry - 07-26-2014, 06:41 PM
RE: AI question about revive - by A-Man - 07-26-2014, 06:53 PM
RE: AI question about revive - by bashscrazy - 07-26-2014, 06:58 PM
RE: AI question about revive - by Boop - 07-26-2014, 07:43 PM
RE: AI question about revive - by feiterry - 07-27-2014, 02:16 AM
RE: AI question about revive - by AmadisLFE - 07-27-2014, 12:02 PM
RE: AI question about revive - by feiterry - 07-29-2014, 07:06 AM
RE: AI question about revive - by feiterry - 08-05-2014, 03:30 PM
RE: AI question about revive - by Silverthorn - 08-05-2014, 05:28 PM



Users browsing this thread: 1 Guest(s)