🏆 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!
Hi I just want to know how to make a computer ai to pick random from my heroes in my tavern so my custom heroes can be tested? how to make trigger like that or can anyone post a sample trigger? Thanks!
You don't have to make the AI pick a hero.
Just choose a random number between 1 and the number of heroes.
Then create the unit refered by the number to the AI and substract gold and lumber.
Basically you need to create a unit named "Random Hero" and add it to the tavern.
Check if that unit is ever purchased then create a random unit from an array of unit types.
You don't have to make the AI pick a hero.
Just choose a random number between 1 and the number of heroes.
Then create the unit refered by the number to the AI and substract gold and lumber.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.