help with recipe trigger

bboykonjo

New Member
Reaction score
1
i want to make an item called boots of buddha:

needs :
2x mantle of int
boots
recipe

and ive gott this trigger : but still doesnt work can sum1 plz tell me wat is wrong with this trigger???

Trigger:
  • recipe
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Boots of Speed
      • (Item-type of (Item being manipulated)) Equal to Mantle of the Mage
    • Actions
      • Set TempInt = 0
      • 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 (Item carried by (Triggering unit) in slot (Integer A))) Equal to Mantle of the Mage
            • Then - Actions
              • Set TempInt = (TempInt + 1)
            • Else - Actions
              • Set TempInt2 = 0
              • 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 (Item carried by (Triggering unit) in slot (Integer A))) Equal to Boots of Speed
                    • Then - Actions
                      • Set TempInt2 = (TempInt2 + 1)
                    • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TempInt Greater than or equal to 2
                  • TempInt2 Greater than or equal to 1
                • Then - Actions
                  • Item - Remove (Item carried by (Triggering unit) of type Mantle of the Mage)
                  • Item - Remove (Item carried by (Triggering unit) of type Mantle of the Mage)
                  • Item - Remove (Item carried by (Triggering unit) of type Boots of Speed)
                • Else - Actions
                  • Hero - Create Boots of Buddha and give it to (Triggering unit)
 

Bankde

Member
Reaction score
20
All the condition must be true inorder to process the actions...

So Add "OR" to the condition will solve this problem. The item can't be both boot and mantle at same time.

Code:
OR (Trigger Condition)
    (Item-type of (Item being manipulated)) Equal to Boots of Speed 
    (Item-type of (Item being manipulated)) Equal to Mantle of the Mage
 

TomTTT

New Member
Reaction score
44
Yup, no other reason should be. You can't have an item that is both Boots of Speed and Mantle of Mage. Boots of Buddha xD! nice name. :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top