• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Question

Level 34
Joined
May 14, 2021
Messages
1,662
If you were referring to "random creeps" instead of "random items", that requires a bit complicated steps. You can only execute this on the Mercenary Camp, a neutral building that allows you to hire creeps.

Basically, there's a rule regarding this system:
1.In Mercenary Camp, all four regular creeps were removed and replaced with the "hire random creep" item (there are 10 options, since creeps are sorted between level 1 and 10).
2.When an item is bought, you'll remove the item and spawn a random creep depending on what item was bought.
3.All creeps can be used on a certain map tilesets (this step is a bit long, but it's very simple: you need to alter the "Editor - Tilesets" field for every creeps in "Object Editor" by ticking the "All" options).
4.Of course, you need a trigger to execute this. The event must be "A unit sells a unit" and the action must be "Replace sold unit with your random creep".

This thread might be helpful:
 
Top