- Joined
- Oct 4, 2005
- Messages
- 2
I've seen some map that can merge certain items. How does the trigger look like? I cant get it. Lets say i wanna merge 2 claws of atk +3 into 1 claws of atk +6.
Item Merge
Events
Unit - A unit Acquires an item
Conditions
((Item-type of (Item being manipulated)) Equal to Claws of Attack +3) or ((Item-type of (Item being manipulated)) Equal to Claws of Attack +6)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Item carried by (Hero manipulating item) of type Claws of Attack +3) is owned) Equal to True
((Item carried by (Hero manipulating item) of type Claws of Attack +6) is owned) Equal to True
Then - Actions
Item - Remove (Item carried by (Hero manipulating item) of type Claws of Attack +3)
Item - Remove (Item carried by (Hero manipulating item) of type Claws of Attack +6)
Item - Create Claws of Attack +9 at (Position of (Hero manipulating item))
Hero - Give (Last created item) to (Hero manipulating item)
Else - Actions
Do nothing
Flayl said:Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Item carried by (Hero manipulating item) of type Claws of Attack +3) is owned) Equal to True
((Item carried by (Hero manipulating item) of type Claws of Attack +6) is owned) Equal to True
Then - Actions
Item - Remove (Item carried by (Hero manipulating item) of type Claws of Attack +3)
Item - Remove (Item carried by (Hero manipulating item) of type Claws of Attack +6)
Item - Create Claws of Attack +9 at (Position of (Hero manipulating item))
Hero - Give (Last created item) to (Hero manipulating item)
Else - Actions
Do nothing
Set TempInt = 0
Set TempInt2 = 0
Set TempItem = (Item being manipulated)
Set TempItemType = (Item-type of TempItem)
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of TempItem) Equal to (Item-type of (Item carried by TempUnit in slot (Integer A)))
Then - Actions
Set TempInt = (TempInt + 1)
Set TempInt2 = (TempInt2 + (Charges remaining in (Item carried by TempUnit in slot (Integer A))))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TempInt Equal to 2
Then - Actions
Item - Remove TempItem
Item - Set charges remaining in (Item carried by TempUnit of type TempItemType) to TempInt2
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TempInt Equal to 2
Then - Actions
Item - Remove TempItem
Item - Set charges remaining in (Item carried by TempUnit of type TempItemType) to TempInt2
Else - Actions