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

Thigh high affectionado

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#6948 on Discord.
Riney on Steam (Steam)
@RineyCat on Twitter

-- Updated as of December 2021 --

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

Thigh high affectionado

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#6948 on Discord.
Riney on Steam (Steam)
@RineyCat on Twitter

-- Updated as of December 2021 --

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.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Zoan