I've been trying to make a trigger that randomly chooses a group of units and then from that unit group, randomly chooses 1 of those units and creates it inside a region for the player "Neutral Hostile".
E.g The trigger chooses between a tauren, archer, priest, footman etc and comes up with archer. The trigger then creates an archer for Neutral Hostile in region 001. Tauren, region 002, Footman, region 003 and so on.
The problem is I'm stuck.
I tried putting units on the map, adding them to a unit group and then from this unit group tried to get a trigger to randomly choose one then place it in a region but this doesn't work with the "create unit" action fullstop.
I was thinking of assigning each unit a custom value and then having it come up with random values and using them to create the units but its the same deal, doesn't work with the "create unit" action.
I decided to convert each unit to a string and somehow randomize that, but its simply beyond my comprehension. I'd really appreciate any help you guys can offer.
Cheers.
E.g The trigger chooses between a tauren, archer, priest, footman etc and comes up with archer. The trigger then creates an archer for Neutral Hostile in region 001. Tauren, region 002, Footman, region 003 and so on.
The problem is I'm stuck.
I tried putting units on the map, adding them to a unit group and then from this unit group tried to get a trigger to randomly choose one then place it in a region but this doesn't work with the "create unit" action fullstop.
I was thinking of assigning each unit a custom value and then having it come up with random values and using them to create the units but its the same deal, doesn't work with the "create unit" action.
I decided to convert each unit to a string and somehow randomize that, but its simply beyond my comprehension. I'd really appreciate any help you guys can offer.
Cheers.