yeah , i want to make recipe and combine them.So, let me make this straight: You want to make recipes and combine them when acquired?
I want to combine more than 2 items.unit aquires item, check if the item is the custom value of that unit and if the player has the other items required for the recipe, then join them together. To make this even simpler, you could simply have 2 of each item, one normal and one muted, then do the normal recipe system.
Thz, +repexactly, this would work for that. Say you wanted to combine a sword a spear and a dagger. You have two dagger items: 'Dagger' and 'Dagger (Muted)'
You have two Sword items: 'Sword' an '(Sword Muted)'
and, you have two sheild items: 'Sheild' and 'Sheild (Muted)'
Now, you do your custom value, checking if the custom value of a certain item is the same as that of the aquiring unit and, if not, replace the item with a 'muted' item with the same custom value and, when the 'muted' item is dropped, replace it with the normal item with the same custom value as the dropped item. Then, just do the normal recipe system:
Event: Unit aquires an item
Conditions: Unit has (Sword)
Unit has (Sheild)
Unit has (Dagger)
Actions:
Remove (Dagger) from Unit
Remove (Sword) from Unit
Remove (Sheild) from unit
Create (Recipe result) for unit
Set custom value of (Last Created item) to (Custom value of (Unit))