Just like the topic says. I have a trigger shown here:
It removes the item from the inventory just like I want it to. But, if you have the same item in your inventory, it removes the behavior as well.
setting a behavior to the item was the only way I could figure out how to get the editor to find an item, thanks to an idea someone posted in a thread here. I need that behavior to stay, because if you have the same item in your inventory, you need that behavior to use it.
I feel blizzard left some stuff out of the galaxy editor, but i'm really a novice when it comes to this, maybe i'm missing something.
First of, your "Triggering inventory item" is a reference to a unique item (or unit in fact) and is a response to the Event in your trigger, which you most likely know.
You have the "Unit - Remove (Triggering inventory item) from the game" in a loop? Do you want to remove it from just one unit or from several units? In case the Firebat unit you spawn is born with this item, you have to make a new reference to this specific item (unit) and remove that.
No, I don't want a firebat to spawn with the item. I just want a firebat unit to spawn and move attack, which it does.
I also want the triggering item to be removed, which it does as well.
The major problem is, If I have like 3 "spawn firebat items" and I use one, the script removes the item I used, but the remaining two items cant be used by this trigger because they don't have the "has firebat item behavior" any more. It removes the behavior from the unit with the inventory, even though he unit has more items that should give him that behavior.
I hope this makes sense.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Just like the topic says. I have a trigger shown here:
It removes the item from the inventory just like I want it to. But, if you have the same item in your inventory, it removes the behavior as well.
setting a behavior to the item was the only way I could figure out how to get the editor to find an item, thanks to an idea someone posted in a thread here. I need that behavior to stay, because if you have the same item in your inventory, you need that behavior to use it.
I feel blizzard left some stuff out of the galaxy editor, but i'm really a novice when it comes to this, maybe i'm missing something.
@HatTruck: Go
First of, your "Triggering inventory item" is a reference to a unique item (or unit in fact) and is a response to the Event in your trigger, which you most likely know.
You have the "Unit - Remove (Triggering inventory item) from the game" in a loop? Do you want to remove it from just one unit or from several units? In case the Firebat unit you spawn is born with this item, you have to make a new reference to this specific item (unit) and remove that.
No, I don't want a firebat to spawn with the item. I just want a firebat unit to spawn and move attack, which it does.
I also want the triggering item to be removed, which it does as well.
The major problem is, If I have like 3 "spawn firebat items" and I use one, the script removes the item I used, but the remaining two items cant be used by this trigger because they don't have the "has firebat item behavior" any more. It removes the behavior from the unit with the inventory, even though he unit has more items that should give him that behavior.
I hope this makes sense.