• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need Help in creating AI for hero arena!!

Status
Not open for further replies.
Level 9
Joined
Dec 15, 2009
Messages
523
dont bold your words read the rules bfore posting
________
184257-albums4036-picture38139.jpg
 
Level 10
Joined
Apr 22, 2010
Messages
421
There are 3 ways of puting a Ai, the most easy one is to ask someone else to do it(lol) but there are 2 manual ways.
First is using Jass, i have no experience with jass, and it is the hardest to learn.
Second would be using gui triggers, it is longer and complicated but easier to implant.You simply make tons of triggers that use events like if you unit's hp is below x order it to use heal.
 
When it comes to casting, units will often do this automatically.
The only things you will need to trigger will be learning abilities when gaining a level, and creating chances to buy items at certain amounts of gold (in order to allow AI to not always buy the same items)
Next you would simply trigger the AI to randomly move and target heroes or units in areas whenever the unit is not performing an action in certain areas.
 
Level 29
Joined
Mar 10, 2009
Messages
5,016
The easiest way to do this is to make it on AI editor, so that you dont need any trigger
for it to move...the only thing you can do in triggers are the skills, buying/selling and the casts...well,
the cast can be done by the AI without triggering also but it depends on their base ability
coz some base ability like death and decay, they wont cast it coz maybe coz
of their stupidity...
 
Level 10
Joined
Apr 22, 2010
Messages
421
Dude, the ai editor is useful for only custom melee races, otherwise, its pretty useless compared to the simple "Order unit to attack move to -BLANK-"
You could then use triggers to order the unit to buy items, then thats all u need, like if your hero has 500 gold, you could do a dice roll to determine which weapon to buy, and use a variable to check wether what type of hero it is to determine what to buy(like a "hammer of might" for a paladin)
 
Status
Not open for further replies.
Top