So, first of all, hello. I (according to my profile) joined this community in May 2007... So here I am almost 3 years later, warming up my worldEdit hands in eager anticipation for Starcraft II and the Galaxy Editor...
Anyways,
First, I want a building (Factory) to cast Select User (called Shop Sharing in the abilities>object editor), on itself as the map initializes. I can't get this to work.
The ability is the one that chooses which unit/hero gets the items you buy from that shop.
The trigger I'm trying to use is
on Map initialization
pick every unit equal to type "Factory"
order Picked Unit to 'order string' Picked Unit.
I've tried every imaginable 'order string', adjusting the ability accordingly and can't get this to work...
Secondly, is there a neat way to 'pick nearest building equal to this type'.
What I'm trying to do is make a unit collect a resource (which is an item), which he acquires upon attacking a certain other unit type...
So,
Unit is attacked,
Attacked unit = wreckage
attacking unit = scavenger
if attacking units inventory = full then
order attacking unit to move to nearest factory (HOW DO I DO THIS?)
else
create 1 'scrap metal' and give it to Attacking Unit.
I've sort of worked around the inventory idea, by just making a destructible called Wreckage, and he just acts like a Peon and cuts it down.. But I really want the inventory way to work.
thanks for your time.
Anyways,
First, I want a building (Factory) to cast Select User (called Shop Sharing in the abilities>object editor), on itself as the map initializes. I can't get this to work.
The ability is the one that chooses which unit/hero gets the items you buy from that shop.
The trigger I'm trying to use is
on Map initialization
pick every unit equal to type "Factory"
order Picked Unit to 'order string' Picked Unit.
I've tried every imaginable 'order string', adjusting the ability accordingly and can't get this to work...
Secondly, is there a neat way to 'pick nearest building equal to this type'.
What I'm trying to do is make a unit collect a resource (which is an item), which he acquires upon attacking a certain other unit type...
So,
Unit is attacked,
Attacked unit = wreckage
attacking unit = scavenger
if attacking units inventory = full then
order attacking unit to move to nearest factory (HOW DO I DO THIS?)
else
create 1 'scrap metal' and give it to Attacking Unit.
I've sort of worked around the inventory idea, by just making a destructible called Wreckage, and he just acts like a Peon and cuts it down.. But I really want the inventory way to work.
thanks for your time.