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. 3ICE

    3ICE

    Joined:
    Jul 4, 2007
    Messages:
    78
    Resources:
    0
    Resources:
    0
    I read this entire thread...
    ...excitedly rubbing my hands together the whole time...
    ...planning how to use all of this greatness in my current project; 3ICE's Spell Defense...
    ...only to find out AI is broken currently!?

    No...

    Edit:

    The AI_Test_Map.w3x seems to work fine
    . (editor and wc3 both tested)
    No crashes on launch, AI stable for over an hour. All spells did autocast.
    Memory leaks galore so had to terminate wc3 upon exit. But that's not important.

    Can not reproduce your original issue. AI not broken.
    Or did you mean learning hero abilities?

    +rep to OP for maintaining this guide. Still works today.

    p.s.: Some of the units do 0 damage in the map, even though they seem to have a valid attack with non-zero damage. Apparent if attacking my own stuff.
     
  2. Aaron Jordis

    Aaron Jordis

    Joined:
    Feb 4, 2019
    Messages:
    2
    Resources:
    0
    Resources:
    0
    What I was referring to was that the melee AI's heroes don't learn hero abilities. For example the Archamge at lvl 1 does not learn any skill (same is true for all levels and heroes).
    I gave myself full unit-control and had an AI ally and i was able to verify that the AI had spare skill points but didn't use them to learn an ability.
    This happens in ordinary melee games VS the AI and also in melee games VS AMAI (alternate melee AI)

    The units do use all their abilities :)
     
  3. 3ICE

    3ICE

    Joined:
    Jul 4, 2007
    Messages:
    78
    Resources:
    0
    Resources:
    0
    Thank you for bringing this to my attention! What a serious regression from old versions' AI. +rep
    Level 5 Computer hero, normal melee AI controller. Zero abilities picked in half an hour:
    upload_2019-11-2_20-58-12.png
    Will compare the source code to see how Blizzard broke it.

    Edit: 1.26 AI was learning spells no problem:
    upload_2019-11-2_21-20-4.png = upload_2019-11-2_21-18-46.png (click for full ver)

    Now to compare Blizzard.j, common.ai, and common.j across
    Warcraft III 1.31\war3.w3mod\scripts vs. Warcraft III 1.26\War3x.mpq\Scripts\
     
    Last edited: Nov 2, 2019