louis_9300
New Member
- Reaction score
- 3
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.
event
player- push button
condition
machine has bacon
action
player- receive bacon
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
The last "if" should be outside the "integer A" loop.
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