Please login or register.

Login with email, password and session length
 

News:

Happy Holidays!


Author Topic: Illusions AI  (Read 142 times)

Offline oktokels

  • Full Member
  • Posts: 237
Illusions AI
« on: November 17, 2019, 11:11:13 PM »
Greetings fellas !  :thumbup:

I'm having a bit of trouble controlling dr. fate's illusions [the ones that are made by the illusionist attribute]

Fate has a teleport power that activates when he is low on health and near an enemy. Like this:

Quote from: Doctor Fate M25AI
"TTeleportAway('dimensional gate',situation=['nearfriend','lowerhealthpct 50'],objectdist='long',time=3.0)",

But, when he cast his illusions, the illusions also make use of this power, since the illusions are 0 hp. I don't want them to use that power when they are near an enemy, i want them to stay. But how?

Is it possible to do it like this?

Quote
Quote from: Doctor Fate M25AI
"TTeleportAway('dimensional gate',situation=['nearfriend','lowerhealthpct 50','not illusion'],objectdist='long',time=3.0)",

Here i added "not illusion" in situation, so the character must check if he is an illusion first before teleporting away. I don't know if its going to work, but i'm trying right now. If anybody has come with a solution for this, you are welcomed in this threat.  :thumbup: :thumbup:

Offline oktokels

  • Full Member
  • Posts: 237
Re: Illusions AI
« Reply #1 on: November 18, 2019, 12:50:30 AM »
It worked the way i was thinking  :thumbup: :thumbup: