has anyone found an event yet that triggers whenever a stackable item is picked up?
I only talk about the 2nd or later. an event for the first item to pick up is no problem.
i have tried alot already and noticed that the picked up item is removed but does not always trigger the coressponding event (strange and unsteady behavi
our). I tried to add a behavior to the item with a validator to remove it as soon as it is hidden (beared). Works good if you don't like to register the manipulate inventory event but doesn't work with stacks. i tried to add a bearer behavior for the item but it doesn't get refreshed. i am out of ideas, hope you have some
ok i finally got it (already my third approach to fix this). Just for ppl who might google this:
Event - Ability Inventory - PickUp - general 3 - execute
Condition - Type of abiltarget == w/e
Actions - Wait for condition, check every 0.1 second
Condition - OR - (
-Current order of triggering unit != Inventory - pickup
- abilTarget == no unit
- abilTarget is hidden == true)
if ( abilTarget == no unit, abilTarget is hidden == true)
then - Do whatever you like, you just picked up an stackable item
else - order canceled
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
hello there,
has anyone found an event yet that triggers whenever a stackable item is picked up?
I only talk about the 2nd or later. an event for the first item to pick up is no problem.
i have tried alot already and noticed that the picked up item is removed but does not always trigger the coressponding event (strange and unsteady behavi our). I tried to add a behavior to the item with a validator to remove it as soon as it is hidden (beared). Works good if you don't like to register the manipulate inventory event but doesn't work with stacks. i tried to add a bearer behavior for the item but it doesn't get refreshed. i am out of ideas, hope you have some
@FunkyUserName: Go
ok i finally got it (already my third approach to fix this). Just for ppl who might google this:
Event - Ability Inventory - PickUp - general 3 - execute
Condition - Type of abiltarget == w/e
Actions - Wait for condition, check every 0.1 second
Condition - OR - ( -Current order of triggering unit != Inventory - pickup
- abilTarget == no unit
- abilTarget is hidden == true)
if ( abilTarget == no unit, abilTarget is hidden == true)
then - Do whatever you like, you just picked up an stackable item
else - order canceled