• 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 add AI(Artifact Intelligence)??

Status
Not open for further replies.
Level 7
Joined
Jan 29, 2010
Messages
213
Hi lembidi!
U wan't AI to play in your map to?
It's hard to make that.
Even IceFrog (Dota creator) don't doing that, becouse his map is good without them.
If you'll make your own map good enough the AI players wouldnt be useful at all (my opinion).
 
Level 8
Joined
Mar 23, 2007
Messages
302
There is no ability that is called AI.

You have to programm it by yourself.
The easiest way would be a script based behaviour.
If unit has <15% hp --- go to fountain.
If unit has >1000 gold --- go to shop and when reached buy item.
If unit is attacked and has Windwalk --- use windwalk and run away.
If... If... If...

:)
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Computer players and neutral slots will automatically use most abilities in combat. The AI on these abilities is very limited thus they do not cast all abilities (like Death Pact) and might not use the abilities correctly (abilities with massivly changed targeting behaviour or abilities which are JASS enhanced).

Actual movement and stratergy logic has to be scripted using JASS (combinations of AI scripts and trigger scripts).

Be aware that good AI is impossible in more complex maps due to the inefficiencies of the JASS interpreter. Real advanced game AI generally has atleast the complex opperations implimented in native level code so can not be compared to.
 
Status
Not open for further replies.
Top