When player purchases item trigger

Could be useful for some stuff that I need.

2 Likes

There’s a Trigger called: When a unit picks up item.

For example, when a unit purchases an item. They automatically pick that item up.

2 Likes

Problem is: I specifically need to activate a script when a player buys an item. When a unit picks up item won’t work for my conditions.

3 Likes

Is this it? Or I’m misunderstanding some here?

An exmaple of mine:

3 Likes

Hold on, I’m pretty sure I got the glimpse of it.

1.) First make a variable whatever you name it, for now let’s call it isPickedUp. I made it false cause it’s essential to the script.


2.) Don’t select any of these, just select Save.
image

3.) Try to recreate this script.

3 Likes

But yeah… They should add a Trigger called: When player purchases an item trigger. So that I don’t want to do like complicated scripting.

2 Likes

trigger specific to the item they purchase or for any item they purchase
you can use attributes
when unit purchase item make attribute full
it will trigger attribute full
then u make attribute 0

2 Likes