1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Base abilities for custom spells cast by melee-game AI units

Discussion in 'JASS/AI Scripts Tutorials' started by Boris_Spider, Apr 11, 2011.

  1. pred1980

    pred1980

    Joined:
    Mar 19, 2010
    Messages:
    842
    Resources:
    1
    Maps:
    1
    Resources:
    1
    NOTE: If you use a channel ability with the "order-id: acidbomb", it will fail! Use annother order-id instead.
     
  2. Rainmaker

    Rainmaker

    Joined:
    Jun 3, 2009
    Messages:
    49
    Resources:
    0
    Resources:
    0
    Question: does the AI behave this way only if you use the action:
    • Melee Game - Run melee AI scripts (for computer players)

    or do computer players behave the same way even without it?
     
  3. pred1980

    pred1980

    Joined:
    Mar 19, 2010
    Messages:
    842
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I don't use this line of code... it seems to work without it.
     
  4. Tasyen

    Tasyen

    Joined:
    Jul 18, 2010
    Messages:
    1,365
    Resources:
    17
    Tools:
    2
    Maps:
    2
    Spells:
    8
    Tutorials:
    4
    JASS:
    1
    Resources:
    17
    Want to contribute something about Finger of Death:
    The AI does not use it in Melee Range. Distance to Target has to be atleast 250-300 better more.
     
  5. Daffa the Mage

    Daffa the Mage

    Map Moderator

    Joined:
    Jan 30, 2013
    Messages:
    7,731
    Resources:
    28
    Packs:
    1
    Maps:
    8
    Spells:
    17
    Tutorials:
    2
    Resources:
    28
    I noticed Rejuvenation is not used on unit with health below the threshold of it's effect.
     
  6. Daffa the Mage

    Daffa the Mage

    Map Moderator

    Joined:
    Jan 30, 2013
    Messages:
    7,731
    Resources:
    28
    Packs:
    1
    Maps:
    8
    Spells:
    17
    Tutorials:
    2
    Resources:
    28
    Rejuvenation won't be used even if unit is near death if unit max HP < rejuvenation max recovery. Found it during one of my works.
     
  7. Zordrak

    Zordrak

    Joined:
    Dec 19, 2014
    Messages:
    287
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I have seen an AI unit using 'Cripple' one times. Anti-Magic-Shield is not used by AI units. Rejuvenation is sometimes used by AI. (All tested in custom map with non melee AI.
     
  8. map designer

    map designer

    Joined:
    May 2, 2011
    Messages:
    914
    Resources:
    1
    Maps:
    1
    Resources:
    1
    inner fire is used whenever the ally unit is attacking (becuz it gives bonus dmg)

    im not sure if its used when the unit cannot attack.

    slow i think is used if the enemy is attacking (like curse) butim not sure.

    basically, auto cast spells behave same as auto cast I think.

    (need double check)!!!!
     
  9. map designer

    map designer

    Joined:
    May 2, 2011
    Messages:
    914
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Guys,

    is polymorph never used by sorceress?
     
  10. LordPerenoldeII

    LordPerenoldeII

    Joined:
    Nov 20, 2005
    Messages:
    869
    Resources:
    2
    Maps:
    2
    Resources:
    2
     
  11. The_Silent

    The_Silent

    Joined:
    Feb 4, 2008
    Messages:
    2,893
    Resources:
    159
    Models:
    49
    Icons:
    89
    Packs:
    8
    Skins:
    12
    Maps:
    1
    Resources:
    159
    In my experience "Inner Fire" is cast on a friendly unit, when that unit attacks another unit. Even when attacking your own units.

    Super cool and useful list
     
  12. fahrbian

    fahrbian

    Joined:
    Dec 25, 2016
    Messages:
    39
    Resources:
    1
    Maps:
    1
    Resources:
    1
    If I put one of these abilities on an item, would it also be autocasted?
     
  13. fahrbian

    fahrbian

    Joined:
    Dec 25, 2016
    Messages:
    39
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I will just post this as an update with some spells that are not included but are autocasted:

    Feral Spirit
    Phoenix
    Tranquility
    Entangling Roots
    Force of Nature
    Metamorphosis
     
    Last edited: Apr 7, 2019
  14. map designer

    map designer

    Joined:
    May 2, 2011
    Messages:
    914
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Hello,

    AI behaviour here seems wierd. I gave Beast master has his own abilitities (bear + quil beast) in addition to water elemental and Book of the dead (ability not item).

    why does it seem to me that the AI summons only when the beast master health is low? also He almost never used book of the dead (he only did it once when i removed all other abilities)

    could the reason be perhaps that campaign AI script is run?

    Edit: alright, so when BEAST VS BLADE necro book wont be used. However, when I let beast reach my town and I call to arms, he does use it.

    Perhaps the ai will only use necro book when he is outnumbered? Perhaps something else.
     

    Attached Files:

    Last edited: May 12, 2019
  15. map designer

    map designer

    Joined:
    May 2, 2011
    Messages:
    914
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Hello,

    it seems like Vengence, the warden ability, is only used when there are some corpses nearby. The AI wouldnt summon otherwise.

    e:

    Hello,

    AI uses a lot of the summon abilitites. Even dark portal, item doom guard summon, and summon HeadHunters are used and not ignored.

    When I have time I will check inferno (must be used cuz melee, duh),and rain of chaos inshallah


    hmmm,

    the ensnare ability makes me curious
     
    Last edited: May 15, 2019
  16. map designer

    map designer

    Joined:
    May 2, 2011
    Messages:
    914
    Resources:
    1
    Maps:
    1
    Resources:
    1
    seems like cripple is only cast on powerful units.

    it is always cast on knights. it is never cast on footmen.

    AI cast it on grunts when they have level 2 weapon upgrade

    If I change Foot men attack speed to be much higher, AI will cast cripple on them.
     
    Last edited: May 19, 2019
  17. LordPerenoldeII

    LordPerenoldeII

    Joined:
    Nov 20, 2005
    Messages:
    869
    Resources:
    2
    Maps:
    2
    Resources:
    2
    Forked Lightning doesn't work for me. Units are around but it won't cast.
    What about Death Coil? Do they use it normally during attacks? Or just to heal their undead?
     
  18. map designer

    map designer

    Joined:
    May 2, 2011
    Messages:
    914
    Resources:
    1
    Maps:
    1
    Resources:
    1
    maybe it will cast only if there are enough units. If you have played Curse of the Blood elves original campaign, you would see that it is used by the AI (check last 2 chapters)
     
  19. Aaron Jordis

    Aaron Jordis

    Joined:
    Feb 4, 2019
    Messages:
    2
    Resources:
    0
    Resources:
    0
    At the moment the normal melee AI from Blizzard is broken. I think the spell-reference has been changed. The names of hero-spells have been changed in the WorldEdit as well. Thus the AI does not skill spells anymore :O
    Alternative AIs such as AMAI don't work either because of the changed spell reference
     
  20. LordPerenoldeII

    LordPerenoldeII

    Joined:
    Nov 20, 2005
    Messages:
    869
    Resources:
    2
    Maps:
    2
    Resources:
    2
    It worked in the wc1 remake, and i'm still using that version for the wc2 remake! Not even blizzard string works and it was the same back then. :(