I am missing some functions from warcraft 3, like
Event:
-Any unit uses an item
Conditions:
-String=Name of Item (you cant compare strings with names anyway in sc2... so i dont know how to do this)
-Itemtype=... (this can be done by comparing unittype of item if the event works)
-Count items in inventory (not sure but i guess this one is in)
-Count items in inventory of type (this one isnt)
Actions:
-move item to column/row in inventory
-drop item
-remove item from inventory out of game
So i would liek to know how i can do them if it is possible anyway...maybe they are unfinished, but i also thought inventories/items/shops etc etc are not possible yet, but they are.
It's not a very good solution, but to get a event based off a item being used I gave all possible units that could use the item a hidden dummy ability. Then made the item's effect itself issue a order to use said ability, which let me use the "Unit uses a ability" event. Its crappy, but it works for now.
It's not a very good solution, but to get a event based off a item being used I gave all possible units that could use the item a hidden dummy ability. Then made the item's effect itself issue a order to use said ability, which let me use the "Unit uses a ability" event. Its crappy, but it works for now.
Did you have to give the unit your dummy ability as well, or do items grant the unit that ability?
The dummy ability was only on the unit. The item itself simply orders the unit to use it. So there is no way to use the dummy ability without the item.
I am missing some functions from warcraft 3, like Event: -Any unit uses an item
Conditions: -String=Name of Item (you cant compare strings with names anyway in sc2... so i dont know how to do this) -Itemtype=... (this can be done by comparing unittype of item if the event works) -Count items in inventory (not sure but i guess this one is in) -Count items in inventory of type (this one isnt)
Actions: -move item to column/row in inventory -drop item -remove item from inventory out of game
So i would liek to know how i can do them if it is possible anyway...maybe they are unfinished, but i also thought inventories/items/shops etc etc are not possible yet, but they are.
Anyone has an idea?
@BeLugh: Go
It's not a very good solution, but to get a event based off a item being used I gave all possible units that could use the item a hidden dummy ability. Then made the item's effect itself issue a order to use said ability, which let me use the "Unit uses a ability" event. Its crappy, but it works for now.
Did you have to give the unit your dummy ability as well, or do items grant the unit that ability?
@Nevir27: Go
The dummy ability was only on the unit. The item itself simply orders the unit to use it. So there is no way to use the dummy ability without the item.
has anyone tried to see if picking up an item triggers a use of the inventory ability?