• 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.

NEED help making a computer player

Status
Not open for further replies.
Level 4
Joined
Feb 23, 2008
Messages
102
yeah i made a map and i want to make a simple computer player. me vs a comp. and i just am wondering how i make one so he can do what a computer usually does like harvest stuff and go and attack me ect. so umm if you could tell me how i make one or send me a link to how to make one that would be great =)
 
Level 10
Joined
Nov 28, 2008
Messages
655
If you didn't use the premade units, and just replace the models, then you have to do a custom AI, which is not a simple "whip it together" thing. If you just change the models of the existing units, I am pretty sure it will still work.
 
Level 10
Joined
Nov 28, 2008
Messages
655
If that is all that you did, then just run the game like you normally would, and it should work fine.

Set the players to user/computer, make sure you run the AI script, and spawn the right units, and you should be fine.

The trigger that comes with all new maps:
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Melee Game - Use melee time of day (for all players)
      • Melee Game - Limit Heroes to 1 per Hero-type (for all players)
      • Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
      • Melee Game - Set starting resources (for all players)
      • Melee Game - Remove creeps and critters from used start locations (for all players)
      • Melee Game - Create starting units (for all players)
      • Melee Game - Run melee AI scripts (for computer players)
      • Melee Game - Enforce victory/defeat conditions (for all players)

Have that one.

It should work just like a normal map then.
 
Status
Not open for further replies.
Top