Staredit Network > Forums > SC2 Assistance > Topic: [Solved] Detecting the location of an item
[Solved] Detecting the location of an item
This topic is locked. You can no longer write replies here.
Aug 28 2010, 5:46 am
By: Riney  

Aug 28 2010, 5:46 am Riney Post #1



Need help pulling this trigger off. I cant find a way to detect where a specific item is in the players inventory.

Edit: I figure I could use an equip behavior when you equip the item, that could probably help.

Post has been edited 1 time(s), last time on Aug 28 2010, 6:00 am by Riney.



Riney#1693 on Discord. (Discord Community)
Riney on Steam (Steam)
Youtube Channel

-- Updated as of October 2019 --

Aug 28 2010, 6:21 am Riney Post #2



Just like all of my trigger problems, I seam to find a way to make it work after a half hour. This can be closed <_<'

Though if anyone is curious to how I got the system to work. I detected Player Weapon and Player Property to find out if the ammo for the player is correct, then change the max energy and set energy to 0 (So that you cant use ammo from another gun of course).

Of course using a system as simple as this, every gun will have to have a different max clip size. Good thing the UMP is 25, the M4 is 30, a variant of the MP5 is 32, AK74 can have 40 ammo size, Thompson's can have a nice 50, w/e Im rambling now.



Riney#1693 on Discord. (Discord Community)
Riney on Steam (Steam)
Youtube Channel

-- Updated as of October 2019 --

Aug 28 2010, 6:52 am payne Post #3

:payne:

Detecting item's position in an inventory. Click if you feel like:
1) Writing a Wiki to share your knowledge (you already have the solution noted down, shouldn't be long!)
2) The title describes accurately the problem

ktxhbai



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:16 pm]
Zycorax -- :wob:
[01:10 pm]
MTiger156 -- :wob:
[10:45 am]
O)FaRTy1billion[MM] -- :wob:
[04:30 am]
Ultraviolet -- :wob:
[2020-8-11. : 7:12 pm]
NudeRaider -- but we already had this discussion a few months ago when it was cheap, but not as cheap as it is now. You didn't believe me all this time :sadwalk:
[2020-8-11. : 7:09 pm]
NudeRaider -- Vrael
Vrael shouted: I paid like $500 for 64GB back in 2015
wow. It's like 200 now
[2020-8-11. : 4:17 pm]
Vrael -- and here I've been grouching about RAM prices all this time
[2020-8-11. : 4:16 pm]
Vrael -- I paid like $500 for 64GB back in 2015
[2020-8-11. : 4:16 pm]
Vrael -- yep I'm an idiot
[2020-8-11. : 4:14 pm]
Vrael -- I think I've accidentally been referencing current prices as what I paid back in 2015
Please log in to shout.


Members Online: Roy, jun3hong