News:

Rings of Reznor!

Main Menu

Illusions AI

Started by oktokels, November 17, 2019, 11:11:13 PM

Previous topic - Next topic

oktokels

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:

oktokels

It worked the way i was thinking  :thumbup: :thumbup: