removing an item in heroes inventory

BacTyrael

New Member
Reaction score
1
I am trying to get an item removed from the heroes inventory. But i cant seem to find a trigger that works.

Trigger:
  • Item - Remove (Item carried by (Hero manipulating item) of type Orc Flag)


perhaps i am doing this wrong any assistance would be appreciated.
 

Exide

I am amazingly focused right now!
Reaction score
448
Show us the complete trigger.

The way you're removing it now it is removed from the game.
You can drop item from hero inventory, or move it to a point, too.
 

Dest

New Member
Reaction score
26
Tell us what you want to do with the item. If a hero picks the item up, you want remove it? Or if you want to have a wait time that when the time is finished the trigger removes the item?
 

BacTyrael

New Member
Reaction score
1
Trigger:
  • Horde Flag Time Return
    • Events
    • Conditions
    • Actions
      • Wait 30.00 seconds
      • Item - Remove (Item carried by (Hero manipulating item) of type Orc Flag)
      • Game - Display to (All players) for 4.00 seconds the text: The flag has been r...
      • Sound - Play VictorySound


Its for a ctf map as a means to remove the flag after a time period since its been held to long. A new flag item is made each time so it doesnt matter if its destroyed.

btw this trigger is ran through picking up and or acquiring the flag so no event is needed.
 

Exide

I am amazingly focused right now!
Reaction score
448
I suggest you assign a variable to the item, in case the game forgets it.
 

Dest

New Member
Reaction score
26
Trigger:
  • Horde Flag Time Return
    • Events
    • Conditions
    • Actions
      • Wait 30.00 seconds
      • Item - Remove (Item carried by (Hero manipulating item) of type Orc Flag)
      • Game - Display to (All players) for 4.00 seconds the text: The flag has been r...
      • Sound - Play VictorySound


Its for a ctf map as a means to remove the flag after a time period since its been held to long. A new flag item is made each time so it doesnt matter if its destroyed.

btw this trigger is ran through picking up and or acquiring the flag so no event is needed.

In order to run a trigger, you need to have an event. But you also have to use a condition so that it checks if your hero have the flag or not.

Edit: Gah, beat. Still, he needs a condition :p
 

BacTyrael

New Member
Reaction score
1
Trigger:
  • Alliance flag pickup red
    • Events
      • Unit - A unit comes within 200.00 of The Flag 0023 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • ((Owner of (Triggering unit)) is in Player Group - Player 1 (Red)) Equal to True
    • Actions
      • Unit - Move The Flag 0023 <gen> instantly to (Center of Flag tele Horde <gen>)
      • Item - Create Orc Flag at (Center of (Playable map area))
      • Hero - Give (Last created item) to (Triggering unit)
      • Game - Display to (All players) for 4.00 seconds the text: The alliance has pi...
      • Trigger - Run Horde Flag Time Return <gen> (ignoring conditions)


^it runs without an event ive tested that already.
 

Dest

New Member
Reaction score
26
Trigger:
  • Alliance flag pickup red
    • Events
      • Unit - A unit comes within 200.00 of The Flag 0023 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • ((Owner of (Triggering unit)) is in Player Group - Player 1 (Red)) Equal to True
    • Actions
      • Unit - Move The Flag 0023 <gen> instantly to (Center of Flag tele Horde <gen>)
      • Item - Create Orc Flag at (Center of (Playable map area))
      • Hero - Give (Last created item) to (Triggering unit)
      • Game - Display to (All players) for 4.00 seconds the text: The alliance has pi...
      • Trigger - Run Horde Flag Time Return <gen> (ignoring conditions)


^it runs without an event ive tested that already.

This thing in your "event":
Trigger:
  • Event
    • Unit - A unit comes within 200.00 of The Flag 0023 <gen>


That is an event... Your trigger NEVER runs UNLESS you add an event first.
 

BacTyrael

New Member
Reaction score
1
This thing in your "event":
Trigger:
  • Event
    • Unit - A unit comes within 200.00 of The Flag 0023 <gen>


That is an event... Your trigger NEVER runs UNLESS you add an event first.
Trigger:
  • Trigger - Run Horde Flag Time Return <gen> (ignoring conditions)

to correct myself this would be the event for horde flag time return. Sorry.
 

Dest

New Member
Reaction score
26
Trigger:
  • Trigger - Run Horde Flag Time Return <gen> (ignoring conditions)

to correct myself this would be the event for horde flag time return. Sorry.

Still or not, it would need an event... But let's just focus on your first trigger.

Below: I know.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Cake you can add events via other triggers
 

BacTyrael

New Member
Reaction score
1
my problem is adding an event to the trigger that doesn't reset the time for which the item will be returned. Because it can be picked up by another hero.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
You will need to store the variables in the first trigger because there is no Hero Manupulation item in the second
 

BacTyrael

New Member
Reaction score
1
You will need to store the variables in the first trigger because there is no Hero Manupulation item in the second
i am still learning how to properly use variables. Is there anyway i can remove the item after a set period of time. Like giving the item itself a timed life or something of that nature?
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Well maby give it an aura that affects items.
Unholy aura with -1hp regen
The items hp to 30
That means it will die in 30 seconds
 

Dest

New Member
Reaction score
26
Well maby give it an aura that affects items.
Unholy aura with -1hp regen
The items hp to 30
That means it will die in 30 seconds

o_O have you tested this before? It only works if it's on the floor and not in a unit's inventory...
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Can you add generic expiration timer to a item
 

Exide

I am amazingly focused right now!
Reaction score
448
What are you guys going on about? ..
Just assign a variable to the item and then remove it when you please, like I said some 10 posts above this one. Shouldn't be a problem.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      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