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. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. 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.

Melee AI; increased food limit

Discussion in 'World Editor Help Zone' started by Travel Gabel, Sep 7, 2017.

  1. Travel Gabel

    Travel Gabel

    Joined:
    Sep 11, 2016
    Messages:
    7
    Resources:
    0
    Resources:
    0
    Hi! I'm trying to set up a basic melee map but have the food limit increased to 300. I've noticed that the AI will not create armies larger than their original limit, and I'm wondering it there's a way to make them build more?

    I tried looking over the AI Editor but it doesn't seem like it has a quick solution to the problem. If anyone has a simple solution I'd love any help you can give. :)

    Thanks!
     
  2. Jampion

    Jampion

    JASS Reviewer

    Joined:
    Mar 25, 2016
    Messages:
    1,287
    Resources:
    0
    Resources:
    0
    No simple solution to this problem. The AI was made to only build units up to 100 food. You will have to create a custom AI, that has a build order for up to 300 food.
     
  3. Travel Gabel

    Travel Gabel

    Joined:
    Sep 11, 2016
    Messages:
    7
    Resources:
    0
    Resources:
    0
    Damn, alright. Thanks for the reply.
     
  4. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,716
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    You can try modifying the melee AI scripts. These JASS scripts can be extracted from the game data MPQs using MPQ edit and then modified in a text editor.

    The idea would be to change the army composition logic so that it either uses a new set of constant numbers appropriate for a 300 food cap (easy to do even with limited to no JASS knowledge), or that it dynamically scales the numbers based on the maximum food cap (more complex, might not even be possible).