• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

AI computer player

Status
Not open for further replies.
Do you have that player set to Computer, or just a blank player slot? For computer player, you need to allow that player and set it's controller to Computer. (Use Lock player settings in Player Group page)
If it doesn't work, or you have already done that, you will have to to run AI scripts for that player. If you want the player to act like Neutral Hostile, just create an empty AI script, import it in your map and use "AI - Run Custom AI script".
 
The controller is computer.I guess I must do the AI thing but can you explain me step by step.I go to AI editor, then I make blank AI then what?
AI - Run Custom AI script is this in the triggers becouse I don't have it.
Anyway isnt there a way to use the AI from the neutral hostle?
 
You could try using standart-game AI scripts "Melee game - Run AI".
If that doesn't work (the AI moves units or anything else), you need to create your custom AI.
Just go to the AI editor. It creates new AI on start, just rename it, delete everything in "Attacking" tab, and use File -> Add to map.
Then use "AI - Start Campain AI Script" and put in the name (including import path)
 
Enemies will always cast spells automatically if their current order wont prevent it. Ill explain what I mean.

A unit stands still, doing nothing should cast spells automatically, if not check the abilities, the techtree and such.
A unit issued to move will never cast spells and never attack.
A unit issued to patrol might cast autocast spells but never the other ones.
A unit issued to attack-move will cast all its spells. If it doesn't it is probably because the ability is changed (example using an ability based on channel).
 
You could try using standart-game AI scripts "Melee game - Run AI".
If that doesn't work (the AI moves units or anything else), you need to create your custom AI.
Just go to the AI editor. It creates new AI on start, just rename it, delete everything in "Attacking" tab, and use File -> Add to map.
Then use "AI - Start Campain AI Script" and put in the name (including import path)

Well I tested this way on blank map and it does work.But when I try it on my map which is not melee again no casting.Anyway I will stick with the neutral hostle till I get it done.
PS. Eccho I am not that dumb ;) and only enemies marked as neutral hostle cast spells automaticaly when in battle. That's my problem I want a computer player to cast spells automaticaly when in a battle, so far no succes.They cast with AI on a blank map but for some reason not on mine...
 
Status
Not open for further replies.
Back
Top