Neutral Building, Trigger to add items and units doesn't work?

Tzepesch

New Member
Reaction score
1
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?
 

sidove

Member
Reaction score
22
Im to lazy to open World Editor but i think there's something like

Code:
Unit - Create random unit something... in region blah facing blah angle
 

Wratox1

Member
Reaction score
22
Im to lazy to open World Editor but i think there's something like

Code:
Unit - Create random unit something... in region blah facing blah angle

how does that help?:nuts: he want to add nearby creeps so they can be bought in a mercenary camp...

anyway im not sure if you can add nearby creeps to be sold, and i cant see why your item trigger dont work
 

vypur85

Hibernate
Reaction score
803
attachment.php


You can't use wait within a Unit group loop (read the greyed words). Not sure why would you want the wait anyways...
 

Tzepesch

New Member
Reaction score
1
zOMG haven't seen that menu

attachment.php


You can't use wait within a Unit group loop (read the greyed words). Not sure why would you want the wait anyways...

That was crazy.. Haven't seen that at all.. The reason I used the waits was to prevent lag.
Anyway, it helped. :D Thx!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top