How to mod ai?

Discussion in 'Modding' started by darchon, May 6, 2020.

Tags:
  1. darchon

    darchon New Member

    Does anyone know how to mod the ai to make it build more units or at a faster rate?
     
  2. Loner

    Loner Well-Known Member

    You can change the rate at which units are produced, go to data\scripts\lib\unit.script then look for the unit you want to be produced quicker, for example the Pikeman, look for this line; SetObjBaseSearchBuildVisionScore(objprop, objbase, 1000, 320, 1, 10); the 2nd number (320) depicts how quickly the unit will be produced, make this larger and the unit will take longer to emerge, make this smaller and it will come out sooner.
     
  3. darchon

    darchon New Member

    i only want the ai to be able to build faster to make it more aggressive, wouldn't that change affect everyone?
     
  4. Loner

    Loner Well-Known Member

    Yes that is true, making the A.I more aggressive is I'm afraid way beyond me.
     
  5. darchon

    darchon New Member

    oh thanks for your help anyway, i'm going to take a look at your mod. i'm sure i'll learn tons of stuff from it. :)
     
    Loner likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice