Map making: simple script for adding creatures to winner
Hello! I'd like to make a script, that adds creatures to a winning hero when a specific army of neutral creatures is defeated. The type of creatures is random, and I want the added creatures to be of the same type as defeated creatures. I have experiance about programming, but the problem is, that I don't know the correct trigger. Also, I don't know how to reference the defeated army. I'm sure, that someone has done similar script before, and I'd appreciate, if someone with more experience could point me to right direction.
|