Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[AI] AI freezing up sometimes

Discussion in 'Triggers & Scripts' started by DelmarVladek, Apr 19, 2014.

  1. DelmarVladek

    DelmarVladek

    Joined:
    Jul 28, 2012
    Messages:
    36
    Resources:
    0
    Resources:
    0
    So get this, I am running a melee map style game, where an AI is set to have different units than the players. The AI works, in every mine I've placed, it works. However, sometimes the AI just decides not to build or harvest it's resources. It just creates the units until it no longer wants to build. And from there on, it basically does nothing.

    It happens every 1/10 times. It's really annoying me in the fact that when I try to go up against more than 1, it just doesn't work, and the ai doesn't do anything.

    Does this happen normally to anyone else? Or is it just me? XD
    Anyone got any ideas?
     
  2. Streak

    Streak

    Joined:
    Mar 30, 2014
    Messages:
    199
    Resources:
    0
    Resources:
    0
    Wheres Your Trigger? maybe we can help you with a screenshot
     
  3. DelmarVladek

    DelmarVladek

    Joined:
    Jul 28, 2012
    Messages:
    36
    Resources:
    0
    Resources:
    0
    This is the trigger, and I forgot to mention that it runs on custom units.
    It's not supposed to mine gold either, could that be the problem?
     

    Attached Files:

  4. Streak

    Streak

    Joined:
    Mar 30, 2014
    Messages:
    199
    Resources:
    0
    Resources:
    0
    theres. nothing wrong on your triggers is your AI script maybe theres a bad condition/order which i mean you created the AI script and you set which to build first and as you can see the AI stop harvesting gold and lumber right? theres something wrong on your AI script condition. maybe you can post the AI script (which is place in the AI editor) screenshot here. to take a good look in your scripting code.
     
  5. Wrda

    Wrda

    Joined:
    Nov 18, 2012
    Messages:
    1,308
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Also, remove the Do Nothing action, it just doesn't do anything as it says and may cause other problems.
     
  6. Streak

    Streak

    Joined:
    Mar 30, 2014
    Messages:
    199
    Resources:
    0
    Resources:
    0
    i see that problem
     
  7. deathismyfriend

    deathismyfriend

    Joined:
    Oct 24, 2012
    Messages:
    6,526
    Resources:
    14
    Spells:
    12
    Tutorials:
    2
    Resources:
    14