remove all items

garet10

Active Member
Reaction score
9
Event - unit enters rect aaa
Cond - none
Action - turn on items trigger

(items trigger)

Event - every 2 secs
Cond - none
Action - create random item -1

(leaves / or enters the exit)

Event - unit enters exit rect
Cond - none
Action - turn off items trigger
*(item)* remove matching item? I am stuck here? :confused:
 

dashival

New Member
Reaction score
11
What are you asking? Do you want a trigger that removes all items from a unit if it enters a region? If so, it's something like this:

Code:
Event - Unit enters Region941
Condition -
Action - For Every Integer A 1 to 6, Remove item from (Entering Unit) in slot (Integer A)
I'm not sure if there's actually an action like that, but it's similar to that.
 

garet10

Active Member
Reaction score
9
dashival said:
What are you asking? Do you want a trigger that removes all items from a unit if it enters a region? If so, it's something like this:

Code:
Event - Unit enters Region941
Condition -
Action - For Every Integer A 1 to 6, Remove item from (Entering Unit) in slot (Integer A)
I'm not sure if there's actually an action like that, but it's similar to that.


Action - For Every Integer A 1 to 6, Remove item from (Entering Unit) in slot (Integer A)

Every Integer A 1 to 6, **can this be 1 to 99?
Because I am creating a itme every 1 secs.
 

BlackDiamond

New Member
Reaction score
15
>Every Integer A 1 to 6, **can this be 1 to 99? Because I am creating a itme every 1 secs.
nope, 1 to 6, the item slots
 

garet10

Active Member
Reaction score
9
items keep

>>>What are you asking? Do you want a trigger that removes all items from a unit if it enters a region? If so, it's something like this: NO

NOT remove items from the unit, that are left in the rect that I leave.

Action - For Every Integer A 1 to 6, Remove item from (Entering Unit) in slot (Integer A)

Every Integer A 1 to 6, **can this be 1 to 99?
Because I am creating a itme every 1 secs.
 

Anything.

New Member
Reaction score
69
garet10 said:
>>>What are you asking? Do you want a trigger that removes all items from a unit if it enters a region? If so, it's something like this: NO

NOT remove items from the unit, that are left in the rect that I leave.

Action - For Every Integer A 1 to 6, Remove item from (Entering Unit) in slot (Integer A)

Every Integer A 1 to 6, **can this be 1 to 99?
Because I am creating a itme every 1 secs.
You need a bit more help understanding the Trigger Editor because you probably don't understand what he said. And we have no freaking idea what you're asking.

Thing is, the 1-6 is your Hero's INVENTORY SLOTS - your hero CANNOT hold more than 6 items, therefore, 1-99 would null and void 93 of the numbers. Hell you could do it, but it wouldn't benefit you in any way.

Use IF/THEN/ELSE triggers implemented with an Integer A.

For every (Integer A) 1 - 6, do actions.
If/Then/Else
If - Item carried by Hero in slot (Integer A) equal to (Item).
Then - Remove item in slot (Integer A)
Else - Do Nothing
 

garet10

Active Member
Reaction score
9
in region

I have items spawn in this region/rect, I want the items to be removed after my unit moves into the exit rect/region.

Not remove ANY items from my hero.
I want to keep the items I got in there.
 

dashival

New Member
Reaction score
11
So, you want items in a region to be removed when a certain unit leaves the region? Nothing to do with the unit's inventory?
 

Anything.

New Member
Reaction score
69
Code:
Item - Pick every item in (Playable map area) and do (Actions)
    Loop - Actions
        Item - Remove (Picked item)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top