• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to upgrade computers forces?

Status
Not open for further replies.
Level 7
Joined
Jan 2, 2008
Messages
77
I want to create a system to make computer forces better by clicking a button from the barracks, like in a normal game from War Mill, Blacksmith, Gaveyard, Huntress Hall, But I have no idea how to do it.

In my map Node Fighters, i want to make computers forces better by upgrading armor and damage from barracks. (controlled by computer)

But i just don't know how to do that thing. I just want to make the forces better by clicking a button from the barracks.
After that i want that upgrade will dissappear after use.
 
Level 6
Joined
Apr 8, 2009
Messages
219
Just set every so and so many seconds if a random number between 1 and 4 for example equal to 2 then Unit issue research order and then the upgrade you would like to :)
 
Level 22
Joined
Feb 4, 2005
Messages
3,971
How about:

  • Ikx_1
    • Events
      • Time - Every 30.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Order (Random unit from (Units of type Blacksmith)) to research Iron Forged Swords
This means every 30 sec or whatever you want it will research. i.e if it finishes 1st upgrade this will order it to upgrade it again which this time will be level2. You can do so for the buildings you want.

You can manipulate what unit and whose owner as you like it. You can select a unit on the map, specify that only a certain player will do it, etc. Make sure the upgrade exists, like not order the Blacksmith to research sorceress adept training ;)

Pick every unit in units onwed by player (2) (or whatever is computer player) of type (Blacksmith) and order it to research.. etc

Also if you use Run Melee AI Scripts for computer players, won't they upgrade automatically, by their default AI ? Better have this action in a melee initialization event too.
 
Status
Not open for further replies.
Top