removing an item in heroes inventory

BacTyrael

New Member
Reaction score
1
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.

sorry i avoided this answer because i suck at variables. But i will learn and do so thx.
 

BacTyrael

New Member
Reaction score
1
uh exide could you point me toward a tutorial or something. Im not sure if the item type variable should have a trigger or how to remove it once ive established its value.
 

Exide

I am amazingly focused right now!
Reaction score
448
Try this trigger:

Trigger:
  • Events
    • Unit - A unit aquires an item
    • Conditions
    • Item type of (Item being manipulated) Equal to *Your_Flag_Item*
    • Actions
    • set *Item_Variable* = (Item being manipulated)
    • Wait 30 seconds
    • If (Triggering Unit) has *Item_Variable*
    • then
    • Item - Remove *Item_Variable*
    • Game - Display to (All players) for 4.00 seconds the text: The flag has been r...
    • Sound - Play VictorySound
    • else
 

BacTyrael

New Member
Reaction score
1
Try this trigger:

Trigger:
  • Events
    • Unit - A unit aquires an item
    • Conditions
    • Item type of (Item being manipulated) Equal to *Your_Flag_Item*
    • Actions
    • set *Item_Variable* = (Item being manipulated)
    • Wait 30 seconds
    • If (Triggering Unit) has *Item_Variable*
    • then
    • Item - Remove *Item_Variable*
    • Game - Display to (All players) for 4.00 seconds the text: The flag has been r...
    • Sound - Play VictorySound
    • else

i cannot find the
Trigger:
  • If (Triggering Unit) has *Item_Variable*
condition for the life of me.
 

Exide

I am amazingly focused right now!
Reaction score
448
It should be under Boolean comparison, or Item Comparison.
I wrote the trigger on top of my mind, since I don't have WE with me atm.
It should be something like: 'Unit/Hero has Item'.
 

BacTyrael

New Member
Reaction score
1
It should be under Boolean comparison, or Item Comparison.
I wrote the trigger on top of my mind, since I don't have WE with me atm.
It should be something like: 'Unit/Hero has Item'.

so has is really equal to?
 

BacTyrael

New Member
Reaction score
1
Trigger:
  • ((Triggering unit) has an item of type Flag_Horde_Remove) Equal to True
i will update this post when im down with the trigger.
 

Exide

I am amazingly focused right now!
Reaction score
448
so has is really equal to?

I don't know what you just said, but I found out what the condition really looks like:

Trigger:
  • Conditions
    • ((Triggering unit) has *Item_Variable*) Equal to True


EDIT: Don't use 'Item of Type', it's not the same as 'Item'.
 

BacTyrael

New Member
Reaction score
1
I don't know what you just said, but I found out what the condition really looks like:

Trigger:
  • Conditions
    • ((Triggering unit) has *Item_Variable*) Equal to True


EDIT: Don't use 'Item of Type', it's not the same as 'Item'.
found it!
 

Exide

I am amazingly focused right now!
Reaction score
448
It is just next to 'Item of Type'. :p

If you still can't find it, you can use 'Item of Type', but then you might as well remove the Item Variable completely.

Do you have Reign of Chaos or The Frozen Throne?
 

BacTyrael

New Member
Reaction score
1
Trigger:
  • Horde Flag Time Return
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Orc Flag
    • Actions
      • Set Flag_Horde_Remove = (Item being manipulated)
      • Wait 30.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) has Flag_Horde_Remove) Equal to True
        • Then - Actions
          • Item - Remove Flag_Horde_Remove
          • Game - Display to (All players) for 4.00 seconds the text: The flag has been r...
          • Sound - Play VictorySound
        • Else - Actions


that look correct?
 

Dest

New Member
Reaction score
26
Trigger:
  • Horde Flag Time Return
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Orc Flag
    • Actions
      • Set Flag_Horde_Remove = (Item being manipulated)
      • Wait 30.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) has Flag_Horde_Remove) Equal to True
        • Then - Actions
          • Item - Remove Flag_Horde_Remove
          • Game - Display to (All players) for 4.00 seconds the text: The flag has been r...
          • Sound - Play VictorySound
        • Else - Actions


that look correct?

I think it looks correct... but in a original CTP game, you bring a flag and you take it to a circle before you die... why is your trigger different? o_O
 

Exide

I am amazingly focused right now!
Reaction score
448
that look correct?

Yes it does. Try it and see if it does what you want.

Now, may I ask what the meaning of this trigger is? :p
If a unit picks up the Orc Flag, it waits 30 seconds then the flag is removed + a message is displayed.
No score counter or anything?
 

BacTyrael

New Member
Reaction score
1
I think it looks correct... but in a original CTP game, you bring a flag and you take it to a circle before you die... why is your trigger different? o_O

its made so you cant turn the flag in if your flag is missing and this whole troublesome trigger was to return the flag if its been gone for to long. but if it resets the timer after its acquired again i will have to figure a way around this all over again.
 

BacTyrael

New Member
Reaction score
1
well it works and this should prevent it from being reset because its a variable right?
 

Exide

I am amazingly focused right now!
Reaction score
448
well it works and this should prevent it from being reset because its a variable right?

Well, I'm not quite sure what you want to do here.
Is there more than one flag in the game?
If a unit picks up the flag, waits 20 seconds, drops the flag and picks it up again it might be removed within 10 seconds. (Bug.)

To fix that you should use a timer, and variable. Then you'll need another trigger.
 

Dest

New Member
Reaction score
26
its made so you cant turn the flag in if your flag is missing and this whole troublesome trigger was to return the flag if its been gone for to long. but if it resets the timer after its acquired again i will have to figure a way around this all over again.

Every CTP games have two circles and two flags and 8 people. The person who has the flag brings to the circle for points. It works vica versa. :p

But, why don't your trigger has to give points?
 

BacTyrael

New Member
Reaction score
1
you get points i would have to post all of them they are probably more work then i should've done. and could have been done with variables. and yeah it resets itself when i have the strength i will learn how to incorporate a timer with it.
 
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