Search function mostly returned stuff related to the item-drop-on-death bug...
I basically need to order a unit to drop an item it carries in its inventory.
But there are only "Move" and "Attack"...'abilities' in the list, so what to do??
I believe in the data editor under the unit there is a spot to enter what items the unit can drop.
Or if your like me you set up a trigger for it.
Event - Any Unit Dies
Condition - (Type of unit(Triggering Unit)) = "My Type of unit that drops items"
Action- Create item at point of (tiggering Unit)..... may need to use point of dying unit.
Using the trigger can allow you to build up a large list of items you want to have the possiblity of dropping can you can write simple logic to determine which item you would like to drop at that point in time.
oh my gosh I know how to do that. (I think)
event- unit dies
condition- your unit is killed unit
event-
pick each unit in group( convert circle to region, center = postion of your unit, width = 2) with filter (item = required)
and do actions
{
create 1 unit of type (unit type of picked unit) at position of killed unit
remove (picked unit)
}
this picks each item in the heroes inventory, places the same thing on the ground, and then removes it from the inventory. Even if its not perfect, its a temporary fix. Dont forget, items are units.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
oh my gosh I know how to do that. (I think)
event- unit dies
condition- your unit is killed unit
event-
pick each unit in group( convert circle to region, center = postion of your unit, width = 2) with filter (item = required)
and do actions
{
create 1 unit of type (unit type of picked unit) at position of killed unit
remove (picked unit)
}
this picks each item in the heroes inventory, places the same thing on the ground, and then removes it from the inventory. Even if its not perfect, its a temporary fix. Dont forget, items are units.
The unit that shall place the item on the ground does not die.
There also must be a way for that specific item to just drop without duplicating it...it's a sort of flag for CTF so duplicating it would result in problems.
I arrived at the same solution as zeldarules28. The basic problem is that it's not possible via triggers to issue a compound order (that is, one in which there are multiple targeting phases.) The "drop item" order has two such phases: selecting the item, and selecting the drop point.
As far as I know nobody has found a solution to issuing compound orders like that so duplicating the item is the only known solution.
Event - Any Unit Dies
Condition - (Type of unit(Triggering Unit)) = "My Type of unit that drops items"
Action- Create item at point of (tiggering Unit)..... may need to use point of dying unit.
I am having a hard time with this. I am new to this map making but am trying really hard so i can give sc2 mapsters a good campaign map but just cant get it. I want to make a brutalisk drop a pallet of minerals or some sort of collectable for research. Would it be ok if i PM you for some advice if your ok with it ?
It seems so hard to keep a unit from dropping items when they die and yet, to get a unit to drop an item while they are alive seems even more impossible.
You can't move a unit instantly while it's in inventory. You can't kill a unit and have it persist, if you kill a unit that has persistence it will not die in inventory until it's countdown ends at which point you cannot revive it. You cannot issue an order or apply an effect that issues an order that both affects the holder and targets the item and then targets a point.
If you disable the inventory ability, it will only keep the unit from being able to manipulate items in it's inventory.
Steal item ability looks like it's not gonna happen. :(
I found out how to drop an item. One of my triggers required the Item's position every second, when I picked it up, it stayed with the unit holding the item.
So, I simply used the Move Unit Instantly trigger and it was kind of like dropping the item.
This definitely helps, no hope to that. :D se
Rollback Post to RevisionRollBack
Member since 2010. Made the -The Thing- [Revival] game. Nostalgic of the WC3 days.
To post a comment, please login or register a new account.
Search function mostly returned stuff related to the item-drop-on-death bug...
I basically need to order a unit to drop an item it carries in its inventory. But there are only "Move" and "Attack"...'abilities' in the list, so what to do??
Thanks.
I believe in the data editor under the unit there is a spot to enter what items the unit can drop.
Or if your like me you set up a trigger for it.
Event - Any Unit Dies
Condition - (Type of unit(Triggering Unit)) = "My Type of unit that drops items"
Action- Create item at point of (tiggering Unit)..... may need to use point of dying unit.
Using the trigger can allow you to build up a large list of items you want to have the possiblity of dropping can you can write simple logic to determine which item you would like to drop at that point in time.
Uhm, I don't want loot drops when a Unit dies, I want an alive unit to take an item out of its inventory and put it on the ground somewhere.
thanks anyways
Bump
Anyone!?
bump *sigh*
I hope you get a response to this cause I'll be needing this feature in my map as well ;)
Still waiting for an answer on this simple, yet essential thing. I can't finish my map without it.
oh my gosh I know how to do that. (I think)
event- unit dies
condition- your unit is killed unit
event-
pick each unit in group( convert circle to region, center = postion of your unit, width = 2) with filter (item = required)
and do actions
{
create 1 unit of type (unit type of picked unit) at position of killed unit
remove (picked unit)
}
this picks each item in the heroes inventory, places the same thing on the ground, and then removes it from the inventory. Even if its not perfect, its a temporary fix. Dont forget, items are units.
The unit that shall place the item on the ground does not die. There also must be a way for that specific item to just drop without duplicating it...it's a sort of flag for CTF so duplicating it would result in problems.
I arrived at the same solution as zeldarules28. The basic problem is that it's not possible via triggers to issue a compound order (that is, one in which there are multiple targeting phases.) The "drop item" order has two such phases: selecting the item, and selecting the drop point.
As far as I know nobody has found a solution to issuing compound orders like that so duplicating the item is the only known solution.
@RileyStarcraft: Go Wow, that's so sad to hear :(
Blizz really screwed up the item and ability learning systems, they're the base for 80% of good maps, such a shame...
@SouLCarveRR: Go
Event - Any Unit Dies Condition - (Type of unit(Triggering Unit)) = "My Type of unit that drops items" Action- Create item at point of (tiggering Unit)..... may need to use point of dying unit.
I am having a hard time with this. I am new to this map making but am trying really hard so i can give sc2 mapsters a good campaign map but just cant get it. I want to make a brutalisk drop a pallet of minerals or some sort of collectable for research. Would it be ok if i PM you for some advice if your ok with it ?
It seems so hard to keep a unit from dropping items when they die and yet, to get a unit to drop an item while they are alive seems even more impossible.
You can't move a unit instantly while it's in inventory. You can't kill a unit and have it persist, if you kill a unit that has persistence it will not die in inventory until it's countdown ends at which point you cannot revive it. You cannot issue an order or apply an effect that issues an order that both affects the holder and targets the item and then targets a point.
If you disable the inventory ability, it will only keep the unit from being able to manipulate items in it's inventory.
Steal item ability looks like it's not gonna happen. :(
I found out how to drop an item. One of my triggers required the Item's position every second, when I picked it up, it stayed with the unit holding the item.
So, I simply used the Move Unit Instantly trigger and it was kind of like dropping the item.
This definitely helps, no hope to that. :D se
Member since 2010. Made the -The Thing- [Revival] game. Nostalgic of the WC3 days.