array:1 [
  0 => """
    Power Treads\r\n
        Events\r\n
            Unit - A unit Sells an item (from shop)\r\n
        Conditions\r\n
            (Item-type of (Sold Item)) Equal to Recipe: Power Treads\r\n
        Actions\r\n
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)\r\n
                If - Conditions\r\n
                    ((Buying unit) has an item of type Boots of Speed) Equal to True\r\n
                    ((Buying unit) has an item of type Gloves of Haste) Equal to True\r\n
                Then - Actions\r\n
                    Item - Remove (Item carried by (Buying unit) of type Boots of Speed)\r\n
                    Item - Remove (Item carried by (Buying unit) of type Gloves of Haste)\r\n
                    Hero - Create Power Treads and give it to (Buying unit)\r\n
                Else - Actions\r\n
                    Hero - Create Recipe: Power Treads and give it to (Buying unit)\r\n
    """
]
array:1 [
  0 => """
    Boots of Speed\r\n
        Events\r\n
            Unit - A unit Sells an item (from shop)\r\n
        Conditions\r\n
            (Item-type of (Sold Item)) Equal to Boots of Speed\r\n
        Actions\r\n
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)\r\n
                If - Conditions\r\n
                    ((Buying unit) has an item of type Recipe: Power Treads) Equal to True\r\n
                    ((Buying unit) has an item of type Gloves of Haste) Equal to True\r\n
                Then - Actions\r\n
                    Item - Remove (Item carried by (Buying unit) of type Recipe: Power Treads)\r\n
                    Item - Remove (Item carried by (Buying unit) of type Gloves of Haste)\r\n
                    Hero - Create Power Treads and give it to (Buying unit)\r\n
                Else - Actions\r\n
    """
]
array:1 [
  0 => """
    Gloves of Haste\r\n
        Events\r\n
            Unit - A unit Sells an item (from shop)\r\n
        Conditions\r\n
            (Item-type of (Sold Item)) Equal to Gloves of Haste\r\n
        Actions\r\n
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)\r\n
                If - Conditions\r\n
                    ((Buying unit) has an item of type Recipe: Power Treads) Equal to True\r\n
                    ((Buying unit) has an item of type Boots of Speed) Equal to True\r\n
                Then - Actions\r\n
                    Item - Remove (Item carried by (Buying unit) of type Recipe: Power Treads)\r\n
                    Item - Remove (Item carried by (Buying unit) of type Boots of Speed)\r\n
                    Hero - Create Power Treads and give it to (Buying unit)\r\n
                Else - Actions\r\n
    """
]
array:1 [
  0 => """
    Item\n
        Events\n
            Unit - A unit Acquires an item\n
        Conditions\n
        Actions\n
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)\n
                If - Conditions\n
                    (Item-type of (Item being manipulated)) Equal to Claws of Attack +15\n
                    ((Triggering unit) has an item of type Crown of Kings +5) Equal to True\n
                    ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True\n
                Then - Actions\n
                    Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)\n
                    Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)\n
                    Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)\n
                    Hero - Create Mask of Death and give it to (Triggering unit)\n
                Else - Actions\n
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)\n
                        If - Conditions\n
                            (Item-type of (Item being manipulated)) Equal to Crown of Kings +5\n
                            ((Triggering unit) has an item of type Claws of Attack +15) Equal to True\n
                            ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True\n
                        Then - Actions\n
                            Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)\n
                            Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)\n
                            Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)\n
                            Hero - Create Mask of Death and give it to (Triggering unit)\n
                        Else - Actions\n
                            If (All Conditions are True) then do (Then Actions) else do (Else Actions)\n
                                If - Conditions\n
                                    (Item-type of (Item being manipulated)) Equal to Kelen's Dagger of Escape\n
                                    ((Triggering unit) has an item of type Claws of Attack +15) Equal to True\n
                                    ((Triggering unit) has an item of type Crown of Kings +5) Equal to True\n
                                Then - Actions\n
                                    Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)\n
                                    Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)\n
                                    Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)\n
                                    Hero - Create Mask of Death and give it to (Triggering unit)\n
                                Else - Actions\n
    \n
    """
]
array:1 [
  0 => """
    Item\r\n
        Events\r\n
            Unit - A unit Acquires an item\r\n
        Conditions\r\n
        Actions\r\n
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)\r\n
                If - Conditions\r\n
                    (Item-type of (Item being manipulated)) Equal to Claws of Attack +15\r\n
                    ((Triggering unit) has an item of type Crown of Kings +5) Equal to True\r\n
                    ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True\r\n
                Then - Actions\r\n
                    Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)\r\n
                    Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)\r\n
                    Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)\r\n
                    Hero - Create Mask of Death and give it to (Triggering unit)\r\n
                Else - Actions\r\n
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)\r\n
                        If - Conditions\r\n
                            (Item-type of (Item being manipulated)) Equal to Crown of Kings +5\r\n
                            ((Triggering unit) has an item of type Claws of Attack +15) Equal to True\r\n
                            ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True\r\n
                        Then - Actions\r\n
                            Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)\r\n
                            Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)\r\n
                            Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)\r\n
                            Hero - Create Mask of Death and give it to (Triggering unit)\r\n
                        Else - Actions\r\n
                            If (All Conditions are True) then do (Then Actions) else do (Else Actions)\r\n
                                If - Conditions\r\n
                                    (Item-type of (Item being manipulated)) Equal to Kelen's Dagger of Escape\r\n
                                    ((Triggering unit) has an item of type Claws of Attack +15) Equal to True\r\n
                                    ((Triggering unit) has an item of type Crown of Kings +5) Equal to True\r\n
                                Then - Actions\r\n
                                    Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)\r\n
                                    Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)\r\n
                                    Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)\r\n
                                    Hero - Create Mask of Death and give it to (Triggering unit)\r\n
                                Else - Actions\r\n
    \r\n
    """
]
array:1 [
  0 => """
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)\r\n
        If - Conditions\r\n
            Or - Any (Conditions) are true\r\n
                Conditions\r\n
                    And - All (Conditions) are true\r\n
                        Conditions\r\n
                            (Item-type of (Item being manipulated)) Equal to Claws of Attack +15\r\n
                            ((Triggering unit) has an item of type Crown of Kings +5) Equal to True\r\n
                            ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True\r\n
                    And - All (Conditions) are true\r\n
                        Conditions\r\n
                            (Item-type of (Item being manipulated)) Equal to Crown of Kings +5\r\n
                            ((Triggering unit) has an item of type Claws of Attack +15) Equal to True\r\n
                            ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True\r\n
                    And - All (Conditions) are true\r\n
                        Conditions\r\n
                            (Item-type of (Item being manipulated)) Equal to Kelen's Dagger of Escape\r\n
                            ((Triggering unit) has an item of type Claws of Attack +15) Equal to True\r\n
                            ((Triggering unit) has an item of type Crown of Kings +5) Equal to True\r\n
        Then - Actions\r\n
            Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)\r\n
            Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)\r\n
            Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)\r\n
            Hero - Create Mask of Death and give it to (Triggering unit)\r\n
        Else - Actions
    """
]

Craft item help

Level 10
Joined
Mar 17, 2012
Messages
582
Hi there!
I want to make some craft operations... For exampla I have Power Treads that makes of Boots of Speed? Gloves of Haste and Recipe...

I have some triggers:

  • Power Treads
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to Recipe: Power Treads
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Buying unit) has an item of type Boots of Speed) Equal to True
          • ((Buying unit) has an item of type Gloves of Haste) Equal to True
        • Then - Actions
          • Item - Remove (Item carried by (Buying unit) of type Boots of Speed)
          • Item - Remove (Item carried by (Buying unit) of type Gloves of Haste)
          • Hero - Create Power Treads and give it to (Buying unit)
        • Else - Actions
          • Hero - Create Recipe: Power Treads and give it to (Buying unit)
  • Boots of Speed
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to Boots of Speed
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Buying unit) has an item of type Recipe: Power Treads) Equal to True
          • ((Buying unit) has an item of type Gloves of Haste) Equal to True
        • Then - Actions
          • Item - Remove (Item carried by (Buying unit) of type Recipe: Power Treads)
          • Item - Remove (Item carried by (Buying unit) of type Gloves of Haste)
          • Hero - Create Power Treads and give it to (Buying unit)
        • Else - Actions
  • Gloves of Haste
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to Gloves of Haste
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Buying unit) has an item of type Recipe: Power Treads) Equal to True
          • ((Buying unit) has an item of type Boots of Speed) Equal to True
        • Then - Actions
          • Item - Remove (Item carried by (Buying unit) of type Recipe: Power Treads)
          • Item - Remove (Item carried by (Buying unit) of type Boots of Speed)
          • Hero - Create Power Treads and give it to (Buying unit)
        • Else - Actions
But this operations can't work if I rick the last element from the ground... Coul enyone help me to make it work right?))) I need it to craft even if I pick item :grin:
 
Level 23
Joined
Oct 20, 2012
Messages
3,088
Try this.. it's only one trigger so it's more convenient.. :3

  • Item
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
          • ((Triggering unit) has an item of type Crown of Kings +5) Equal to True
          • ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True
        • Then - Actions
          • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
          • Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
          • Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)
          • Hero - Create Mask of Death and give it to (Triggering unit)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item being manipulated)) Equal to Crown of Kings +5
              • ((Triggering unit) has an item of type Claws of Attack +15) Equal to True
              • ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True
            • Then - Actions
              • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
              • Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
              • Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)
              • Hero - Create Mask of Death and give it to (Triggering unit)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Item-type of (Item being manipulated)) Equal to Kelen's Dagger of Escape
                  • ((Triggering unit) has an item of type Claws of Attack +15) Equal to True
                  • ((Triggering unit) has an item of type Crown of Kings +5) Equal to True
                • Then - Actions
                  • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
                  • Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
                  • Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)
                  • Hero - Create Mask of Death and give it to (Triggering unit)
                • Else - Actions
 
Level 10
Joined
Mar 17, 2012
Messages
582
Try this.. it's only one trigger so it's more convenient.. :3

  • Item
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
          • ((Triggering unit) has an item of type Crown of Kings +5) Equal to True
          • ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True
        • Then - Actions
          • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
          • Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
          • Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)
          • Hero - Create Mask of Death and give it to (Triggering unit)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item being manipulated)) Equal to Crown of Kings +5
              • ((Triggering unit) has an item of type Claws of Attack +15) Equal to True
              • ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True
            • Then - Actions
              • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
              • Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
              • Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)
              • Hero - Create Mask of Death and give it to (Triggering unit)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Item-type of (Item being manipulated)) Equal to Kelen's Dagger of Escape
                  • ((Triggering unit) has an item of type Claws of Attack +15) Equal to True
                  • ((Triggering unit) has an item of type Crown of Kings +5) Equal to True
                • Then - Actions
                  • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
                  • Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
                  • Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)
                  • Hero - Create Mask of Death and give it to (Triggering unit)
                • Else - Actions

I tried it before I wrote here... It makes no effect :ogre_frown:
 
Level 17
Joined
Sep 26, 2009
Messages
2,028
Just tried it in game, using a modified version of Juno's trigger
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
              • ((Triggering unit) has an item of type Crown of Kings +5) Equal to True
              • ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True
          • And - All (Conditions) are true
            • Conditions
              • (Item-type of (Item being manipulated)) Equal to Crown of Kings +5
              • ((Triggering unit) has an item of type Claws of Attack +15) Equal to True
              • ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True
          • And - All (Conditions) are true
            • Conditions
              • (Item-type of (Item being manipulated)) Equal to Kelen's Dagger of Escape
              • ((Triggering unit) has an item of type Claws of Attack +15) Equal to True
              • ((Triggering unit) has an item of type Crown of Kings +5) Equal to True
    • Then - Actions
      • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
      • Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
      • Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)
      • Hero - Create Mask of Death and give it to (Triggering unit)
    • Else - Actions
and it worked. I tried by picking up all items from ground and buying them from neutral passive Goblin Merchant. Both worked
 
Top