Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Events

Unit - unit starts effect of an ability
Conditions

(Ability being cast) equal to Combine
Actions

If


(Unit has item of type (this item))


(Unit has item of type (that item))

then


Hero - remove this item


Hero - remove that item


Hero - add new item

else
(Hero has (Item carried by Hero of type Stone)) Equal to True
CombineRocks

Events


Unit starts the effect of an ability

Conditions


(Ability being cast) equal to Combine

Actions


set TempInt = CountItemsByType(GetTriggerUnit(), 'rock')


if then else multiple functions



if




(TempInt is greater than or equal to 2)



then




Hero - Remove item of type Rock




Hero - Remove item of type Rock




Hero - Give item of type New item



else
Log

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Combine

Actions


Custom script: set udg_TempInt = CountItemsByType(GetTriggerUnit(), 'rat3')


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




TempInt Greater than or equal to 2



Then - Actions




Special Effect - Create a special effect attached to the origin of (Casting unit) using Abilities\Spells\Items\AIem\AIemTarget.mdl




Set SpecialFX = (Last created special effect)




Item - Remove (Item carried by Tribesman[(Player number of (Owner of (Casting unit)))] of type |cfffed312Stick|r)




Item - Remove (Item carried by Tribesman[(Player number of (Owner of (Casting unit)))] of type |cfffed312Stick|r)




Hero - Create |cfffed312Log|r and give it to Tribesman[(Player number of (Owner of (Casting unit)))]




Wait 1.00 seconds




Special Effect - Destroy SpecialFX



Else - Actions
set udg_TempInt = CountItemsByType(GetTriggerUnit(), '|000:rat3')
Yeah I have and it does not work.
