Fault trigger for item combination

louis_9300

New Member
Reaction score
3
What is wrong with this item combine trigger?

How come when i combine those 4 items,then 3 new items come out..
I want only 1 new item come out..
 

Attachments

  • Trigger item problem.w3x
    17.1 KB · Views: 87

DrEvil

FCRI Associate!
Reaction score
111
Give us the trigger to look at

Most people wont open a map to look for 1 thing
they would just help you by correcting your trigger.
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
on the editor.. in the trigger. above the event is the name of the trigger
left click, then copy as text then insert it in <code></code> tags


Code:
event
player- push button
condition
machine has bacon
action
player- receive bacon

btw checking...
 

DrEvil

FCRI Associate!
Reaction score
111
Well when people are looking through

They will look at your post then , think

" why not just give us the code here and now to fix it ? "

Il have a look but next time , provide people with the info that you need to fix .

EDIT :

Code:
Recipe 1
    Events
        Unit - A unit Acquires an item
    Conditions
        ((Hero manipulating item) has an item of type Wand of Negation) Equal to True
        ((Hero manipulating item) has an item of type Wand of Neutralization) Equal to True
    Actions
        Set Item = 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 (Hero manipulating item) in slot (Integer A))) Equal to Wand of Negation
                    Then - Actions
                        Set Item = (Item + 1) 
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                Item Greater than or equal to 3 
                            Then - Actions
                                Item - Remove (Item carried by (Hero manipulating item) of type Wand of Negation)
                                Item - Remove (Item carried by (Hero manipulating item) of type Wand of Negation)
                                Item - Remove (Item carried by (Hero manipulating item) of type Wand of Negation)
                                Item - Remove (Item carried by (Hero manipulating item) of type Wand of Neutralization)
                                Hero - Create Vampiric Potion and give it to (Hero manipulating item)
                                //Skip the rest of the actions here because youve already checked and created 1 item .
                            Else - Actions
 

louis_9300

New Member
Reaction score
3
The last "if" should be outside the "integer A" loop.


Code:
Recipe 1
    Events
        Unit - A unit Acquires an item
    Conditions
        ((Hero manipulating item) has an item of type Wand of Negation) Equal to True
        ((Hero manipulating item) has an item of type Wand of Neutralization) Equal to True
    Actions
        Set Item = 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 (Hero manipulating item) in slot (Integer A))) Equal to Wand of Negation
                    Then - Actions
                        Set Item = (Item + 1)
                    Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Item Greater than or equal to 3
            Then - Actions
                Item - Remove (Item carried by (Hero manipulating item) of type Wand of Negation)
                Item - Remove (Item carried by (Hero manipulating item) of type Wand of Negation)
                Item - Remove (Item carried by (Hero manipulating item) of type Wand of Negation)
                Item - Remove (Item carried by (Hero manipulating item) of type Wand of Neutralization)
                Hero - Create Vampiric Potion and give it to (Hero manipulating item)
            Else - Actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top