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.
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are some real members mixed in those latter pages, but the *vast* majority are spam accounts
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are almost 3k pages
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- the real members stop around page 250
[2024-4-14. : 9:20 pm]
O)FaRTy1billion[MM] -- look at the members list
[2024-4-12. : 12:52 pm]
Oh_Man -- da real donwano
da real donwano shouted: This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
it's pretty common
[2024-4-11. : 9:53 pm]
da real donwano -- This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
[2024-4-11. : 4:18 pm]
IlyaSnopchenko -- still better than "Pakistani hookers in Sharjah" that I've seen advertised in another forum
[2024-4-11. : 4:07 pm]
Ultraviolet -- These guys are hella persistent
[2024-4-11. : 3:29 pm]
Vrael -- You know, the outdoors is overrated. Got any indoor gym and fitness equipment?
[2024-4-10. : 8:11 am]
Sylph-Of-Space -- Hello!
Please log in to shout.


Members Online: MetalGear, otorusvgjq, Oh_Man