Hi there.
I'm trying to make a map that changes a little bit due some random's..
1st: I want to add 10 random level -1(random level) items to marketplaces. It should look like:
Unit Group - Pick every unit in (Units of type Marketplace) and do (Actions)
Loop - Actions
For each (Integer A) from 1 to 10, do (Actions)
Set TempItemtype = (Random level -1 item-type)
Neutral Building - Add TempItemtype to (Picked unit) with 0 in stock and a max of 10
Wait 0.01 seconds
What happens is, that there is only one item in the Marketplace. I've tried the "Neutral Building - Limit (Picked unit) to 10 item slots)", but it changes nothing.
2nd: I want to add some nearby creeps to the Mercenary Camp, so the creeps sold is of the same types of the creeps guarding the building. Picking them within a region and adding them after same principle as above doesn't even add a unit. Only the 3 standard units are in the Camp.
Is there any way to add random units or items to buildings? Which works?
I'm trying to make a map that changes a little bit due some random's..
1st: I want to add 10 random level -1(random level) items to marketplaces. It should look like:
Unit Group - Pick every unit in (Units of type Marketplace) and do (Actions)
Loop - Actions
For each (Integer A) from 1 to 10, do (Actions)
Set TempItemtype = (Random level -1 item-type)
Neutral Building - Add TempItemtype to (Picked unit) with 0 in stock and a max of 10
Wait 0.01 seconds
What happens is, that there is only one item in the Marketplace. I've tried the "Neutral Building - Limit (Picked unit) to 10 item slots)", but it changes nothing.
2nd: I want to add some nearby creeps to the Mercenary Camp, so the creeps sold is of the same types of the creeps guarding the building. Picking them within a region and adding them after same principle as above doesn't even add a unit. Only the 3 standard units are in the Camp.
Is there any way to add random units or items to buildings? Which works?