• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

How to add AI(Artifact Intelligence)??

Status
Not open for further replies.
Level 6
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,202
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