Staredit Network > Forums > SC2 Assistance > Topic: [Solved] Destroying an Item
[Solved] Destroying an Item
This topic is locked. You can no longer write replies here.
Sep 1 2010, 10:29 pm
By: Riney  

Sep 1 2010, 10:29 pm Riney Post #1

Thigh high affectionado

So I have this trigger that removes a charge every time you reload. Problem is it sets your charges to nobody knows, and turns the item grey. Well the problem is the triggers can still run. How do you destroy an item?

Also. The check box for destroy when depleted, doesnt work because of the trigger I use.



Riney#6948 on Discord.
Riney on Steam (Steam)
@RineyCat on Twitter

-- Updated as of December 2021 --

Sep 2 2010, 12:31 am Temp Post #2



Have a variable keep track of it. Since you are probably doing all additions/subtractions through triggers have a variable that stores how many charges they have. If you are removing charges through an ability then have a trigger which runs when a unit receives an order to use the ability and subtract from your variable.

There might be a better way, I don't have the editor right now to check it out.



None.

Sep 2 2010, 1:42 am Riney Post #3

Thigh high affectionado

I ment an action that removes the item from the unit inventory.



Riney#6948 on Discord.
Riney on Steam (Steam)
@RineyCat on Twitter

-- Updated as of December 2021 --

Sep 2 2010, 4:49 am Temp Post #4



You can use the kill/remove unit action



None.

Sep 2 2010, 4:06 pm Riney Post #5

Thigh high affectionado

Had a feeling that might work. Good thing theres only one instance of this item type in the player inventory at all times.



Riney#6948 on Discord.
Riney on Steam (Steam)
@RineyCat on Twitter

-- Updated as of December 2021 --

Sep 4 2010, 1:46 am Riney Post #6

Thigh high affectionado

Got around to finally testing it and it worked perfectly. This topic can be closed.



Riney#6948 on Discord.
Riney on Steam (Steam)
@RineyCat on Twitter

-- Updated as of December 2021 --

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
[06:38 pm]
Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
Please log in to shout.


Members Online: Roy