Could be useful for some stuff that I need.
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.
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.
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
.3.) Try to recreate this script.
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.
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