HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Looking for some item / building related help

03-18-2005, 09:57 AM#1
Lil Blue Smurf
Okay, what I would like to do is have a unit only be able to build something if he is carrying a certain item. The only thing I can think to do is make a dummy unit that is created for the player when the unit gets the item and set the dummy unit as the requirement. If I have to I'll do it that way, but I was wondering if anyone else had suggestions. Jass solutions are fine.
03-18-2005, 11:27 AM#2
Guest
You just need to use "Unit - Disable ability for unit" to disable the building ability. When the unit gets the item, enable it again, and disable it any time he drops the item.

So, it's something like:

Code:
Events
A unit acquires an item;
Conditions
Item being manipulated equal to x;
Hero manipulating item equal to (x_unit);
Actions
Enable (Building) for (x_unit);


Salutions®
03-19-2005, 12:36 AM#3
Lil Blue Smurf
Doesn't that only work to stop a unit from building all things? I guess I didn't say, the unit can build some things all the time, but only when it has the item can it build certain things. I will look and see, I might be wrong, maybe it can disable certain buildings.