Hello
I've got problem with item combination. I don't know how to merge 2 same items. For me its Granite Axe+6. I've tried to use this
test
Events
Unit - A unit Acquires an item
Conditions
Or - Any (Conditions) are true
Conditions
(Item-type of (Item being manipulated)) Equal to Granite Axe +6 [T0]
(Item-type of (Item being manipulated)) Equal to Granite Axe +6 [T0]
((Hero manipulating item) has an item of type Granite Axe +6 [T0]) Equal to True
((Hero manipulating item) has an item of type Granite Axe +6 [T0]) Equal to True
Actions
Set Ingredients = 2
Set RecipeFactor[1] = Granite Axe +6 [T0]
Set RecipeFactor[2] = Granite Axe +6 [T0]
For each (Integer A) from 1 to Ingredients, do (Actions)
Loop - Actions
Set FactorCleared[(Integer A)] = False
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
For each (Integer B) from 1 to Ingredients, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to RecipeFactor[(Integer B)]
FactorCleared[(Integer B)] Equal to False
Then - Actions
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
Set FactorCleared[(Integer B)] = True
Else - Actions
Hero - Create Granite Axe +11 [T1] and give it to (Hero manipulating item)
but during game merging gets silly. Game thinks that you need only ONE granite axe +6 to make Granite axe +11
I've got problem with item combination. I don't know how to merge 2 same items. For me its Granite Axe+6. I've tried to use this
test
Events
Unit - A unit Acquires an item
Conditions
Or - Any (Conditions) are true
Conditions
(Item-type of (Item being manipulated)) Equal to Granite Axe +6 [T0]
(Item-type of (Item being manipulated)) Equal to Granite Axe +6 [T0]
((Hero manipulating item) has an item of type Granite Axe +6 [T0]) Equal to True
((Hero manipulating item) has an item of type Granite Axe +6 [T0]) Equal to True
Actions
Set Ingredients = 2
Set RecipeFactor[1] = Granite Axe +6 [T0]
Set RecipeFactor[2] = Granite Axe +6 [T0]
For each (Integer A) from 1 to Ingredients, do (Actions)
Loop - Actions
Set FactorCleared[(Integer A)] = False
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
For each (Integer B) from 1 to Ingredients, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to RecipeFactor[(Integer B)]
FactorCleared[(Integer B)] Equal to False
Then - Actions
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
Set FactorCleared[(Integer B)] = True
Else - Actions
Hero - Create Granite Axe +11 [T1] and give it to (Hero manipulating item)
but during game merging gets silly. Game thinks that you need only ONE granite axe +6 to make Granite axe +11