Results 1 to 7 of 7

Thread: Enemy AI

  
  1. #1

    Default Enemy AI

    I have a few questions about AI.

    Is it possible to stop the AI from using the call to arms spell? It never removes the flag and breaks itself.

    And is it possible to remove the AIs slap ability? It just slaps its imps to death constantly lol.

  2. #2
    Demon Spawn Endrix's Avatar
    Join Date
    Nov 2009
    Posts
    180

    Default Re: Enemy AI

    MAGIC_AVAILABLE(PLAYER1,POWER_SLAP,0,0)

    MAGIC_AVAILABLE(PLAYER1,POWER_CALL_TO_ARMS,0,0)

  3. #3

    Default Re: Enemy AI

    It is indeed a stupid bug with CTA, but the slapping is actually correct behavior. Imps - like all units - work 25% faster while slapped, and yes occasionally the imps have to go heal themselves, but it should be worth it.

    What Endrix proposes are lines for the level script, how in each level you can disable the abilities to cast CTA or Slap, which works, but with the downside that you have to edit each map and each computer player.
    What also works, is modifying the fxdata\keepcompp.cfg file with a text editor (like notepad) and scrolling down to line 744 where the computer players are configured. Removing the 'Quick attacks' and 'Imp Slaps' from the checks there should also work.

    What would be even better, is seeing if you could modify the values and/or parameters of the checks themselves to see if you can make the CTA useful(same file from line 407 onward). If you figure out some values, be sure to let us know.

  4. #4

    Default Re: Enemy AI

    Cool thanks. I tried giving imps the heal spell to counter the slapping but they wont use it on their own. It only works in possession mode. Any fixes for this?

  5. #5

    Default Re: Enemy AI

    Like said, the imps will already heal themselves when they are really really low on health. But sure, you can change the HealRequirement in the imp.cfg.

  6. #6

    Default Re: Enemy AI

    I can't get them to heal at all

  7. #7

    Default Re: Enemy AI

    I just tried it, and for me they don't use the heal spell either when I increase the HealRequirement and HealThreshold.

Similar Threads

  1. Bug: enemy imp blocked doing nothing
    By jomalin in forum KeeperFX
    Replies: 3
    Last Post: July 9th, 2014, 22:16
  2. Picking up enemy trap crate for my workshop
    By jomalin in forum KeeperFX
    Replies: 8
    Last Post: July 7th, 2014, 04:41
  3. How to win a game by converting an objective enemy
    By bloodprince82 in forum DK2 Troubleshooting
    Replies: 1
    Last Post: September 2nd, 2013, 12:27
  4. Replies: 6
    Last Post: February 9th, 2011, 14:18

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •