Sended Dirrectly to Vualt

Darkonight

New Member
Reaction score
2
If a Unit Picks up an Item when he has full Inventory the Item is sended DIrrectly to His Vualt. How would that trigger look like? :O
 
unit is issue an order targeting item
count items in inventory
if number = 6
give item to vault

something like that
 
A Unit is issues an order targetting an object
[This is where it gets tricky] Issued Order == Order(??????)
the ?????? is where I'm not sure what the order is for when units try picking up items. Try making a trigger that says the order of a unit every second then order that unit to pickup an item. See what it says and pop it in!


Integer - Count Items Carried < 6.
Then got to make a distance check between the Item and the Unit, so units don't right clikc something across the map ^_^
 
I let most of the map making go to the learners!
I don't really have WC3 on this computer right now, anyways.
 
Could this do?

Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of items carried by (Hero manipulating item)) Equal to 6
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of items carried by (Drop Box)) Equal to 6
            • Then - Actions
              • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Else - Actions
              • Hero - Drop (Item being manipulated) from (Hero manipulating item)
              • Hero - Give (Item being manipulated) to (Drop Box)
        • Else - Actions
 
Your trigger will make it so he never has a 6th item.
And will only work if the drop box has 6 items. You don't need the part about the the drop box.
 
Yeah you're right. Noticed now. I hoped it was a simple matter.
 
You need to make a test trigger to see what the order is to pick up an item.
Unit is ordered to target an object
Display Order of Triggering Unit.

See what it comes up with, then keep that first if/then condition, remove that second if/then.
Inside that first if/then simple move the item to the vault then you can make a distancecheck later.
 
I believe the order is smart. So a trigger that checks if the unit does a smart order and if the target of the order is an item, if this is the case send the item to the vault. Problem is, this will happen when the player is too far away from the item as well.
 
you guys are talking in circles here.

>Unit issued order target object

>Order == smart
>Target of issued order == item

>If Hero item count == 6 then
>>If Hero within 300 of target of issued order then
>>>Send item to vault
 
General chit-chat
Help Users

      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