Summary :
2 Hero share the same inventory but in fact that 2 different inventory. If you move a item both move it at the same slot, if you drop both drop, you use a consumable, both use it. I have no problem by those command. My only problem is I wasn't able to sync the cooldown. I know there the function "Activate Ability Cooldown", but with those event (As bellow) I don't know how to use it.
Note :
I know how to get the item activated, and the item that sync in the other hero. I just don't know with those event how to use Activate Ability Cooldown. Using the same ability as the sync item.
Event used :
Unit - Any Unit Sell Any item
Unit - Any Unit Loosel Any item
Unit - Any Unit Drops Any item
Unit - Any Unit Exhausts Any item
Unit - Any Unit Move Any item
Unit - Any Unit Use Any item
You can try to just set the location of the cooldown to Player, which should sync the same cooldown for all units of the player using it, if applicable for your map.
If that doesn't work for your map, you can get the Triggering Inventory Item, which is a unit. You can use catalogs from here to read out the item of the unit and the cost of this item, like this:
Oh well sync with player as a directory for cooldown have a little bug, if you shift click for cast your spell it active the cooldown right away on the second hero. So you can just be far enough, cast it with Shift with one hero. THen use your other hero and cast the spell after the cooldown is over. So both can cast it. Regardless I call it solved. I would rarely see people abuse that and its ligitimate I think. Thank for your time.
Summary : 2 Hero share the same inventory but in fact that 2 different inventory. If you move a item both move it at the same slot, if you drop both drop, you use a consumable, both use it. I have no problem by those command. My only problem is I wasn't able to sync the cooldown. I know there the function "Activate Ability Cooldown", but with those event (As bellow) I don't know how to use it.
Note : I know how to get the item activated, and the item that sync in the other hero. I just don't know with those event how to use Activate Ability Cooldown. Using the same ability as the sync item.
Event used : Unit - Any Unit Sell Any item Unit - Any Unit Loosel Any item Unit - Any Unit Drops Any item Unit - Any Unit Exhausts Any item Unit - Any Unit Move Any item Unit - Any Unit Use Any item
Event: manipulate inventory (set the type)(set item) Action: activate cool down for ability for triggering unit
OKay I will try to reexplain it correctly.
2 unit 2 inventory Those inventory are sync, if you move/use/whatever it does it at the other unit inventory.
I want that when you use a spell item with cooldown the other inventory activate is cooldown also.
I know that I must use the trigger : Activate Ability cooldown.
The sentence is.. Activate All Cooldowns on ability () on unit Picked unit.
I just don't know how to get the last ability from the used item when I need to choose the ability.
Thank you.
You can try to just set the location of the cooldown to Player, which should sync the same cooldown for all units of the player using it, if applicable for your map.
If that doesn't work for your map, you can get the Triggering Inventory Item, which is a unit. You can use catalogs from here to read out the item of the unit and the cost of this item, like this:
This would be for a cooldown located at the unit, which most standard items use.
Oh well sync with player as a directory for cooldown have a little bug, if you shift click for cast your spell it active the cooldown right away on the second hero. So you can just be far enough, cast it with Shift with one hero. THen use your other hero and cast the spell after the cooldown is over. So both can cast it. Regardless I call it solved. I would rarely see people abuse that and its ligitimate I think. Thank for your time.
u can detect shift and modify cooldowns n such not sure if that helps