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.
|
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]](http://s3.postimg.org/wedqxlk3n/signature.png)
A-Engine: A new beat em up game engine inspired by LF2. Coming soon
A-Engine Dev Blog - Update #8: Timeout

Chat
