Combo Items, my trigger isnt working

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Combo Items, my trigger isnt working

Post by Arabidnun »

#Event:
Player 1 types in chat message -slayer
#Conditions:
Or - Any (Conditions) are true
*Conditions:
(Item-type of(Item being manipulated)) equal Item1
(Item-type of(Item being manipulated)) equal Item2
(Item-type of(Item being manipulated)) equal Item3
(Item-type of(Item being manipulated)) equal Item4
#Actions:
If (all conditions are true) then do (then Actions) else do (else Actions)
*If - Conditions
(Hero Manipulating Item) has an Item of type Item1) equal true
(Hero Manipulating Item) Has an Item of type Item2) equal true
(Hero Manipulating Item) Has an Item of type Item3) equal true
(Hero Manipulating Item) Has an Item of type Item4) equal true
*Then do - Actions
Item - Remove (Item carried by(Hero Manipulating Item) of type Item1)
Item - Remove (Item carried by(Hero Manipulating Item) of type Item2)
Item - Remove (Item carried by(Hero Manipulating Item) of type Item3)
Item - Remove (Item carried by(Hero Manipulating Item) of type Item4)
Item - Create Item5 at (Center of (Playable map Area))
Hero - Give (Last created item) to (Hero Manipulating Item)
*Else - Actions
Do Nothing


And when i type in the slayer, it doesn't create my items or even delete the items that the hero is holding, anyone help?
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4430
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Combo Items, my trigger isnt working

Post by Bartimaeus »

Arabidnun wrote: (Hero Manipulating Item) has an Item of type Item1) equal true
(Hero Manipulating Item) Has an Item of type Item2) equal true
(Hero Manipulating Item) Has an Item of type Item3) equal true
(Hero Manipulating Item) Has an Item of type Item4) equal true
Item - Remove (Item carried by(Hero Manipulating Item) of type Item1)
Item - Remove (Item carried by(Hero Manipulating Item) of type Item2)
Item - Remove (Item carried by(Hero Manipulating Item) of type Item3)
Item - Remove (Item carried by(Hero Manipulating Item) of type Item4)
Hero - Give (Last created item) to (Hero Manipulating Item)


And when i type in the slayer, it doesn't create my items or even delete the items that the hero is holding, anyone help?
See what I left? That's your problem. It hasn't picked the hero who is manipulating an item(s). You should do a unit acquires an item, instead of doing the text >.<
Also, it should be hero manipulating item has item of type = item1-4 for the conditions
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Combo Items, my trigger isnt working

Post by Arabidnun »

hero manipulating item has item of type = item1-4 for the conditions[/quote]

Edit: nvm lmao, do a and boolean command...so i can do


hero manipulating item has item of type = item1 and hero manipulating item has item of type = item2 and ect...right?
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4430
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Combo Items, my trigger isnt working

Post by Bartimaeus »

Arabidnun wrote:hero manipulating item has item of type = item1-4 for the conditions
How do i do this?

do i have to set the items = variables first or something?[/quote]

((Hero manipulating item) has an item of type item1) Equal to True
((Hero manipulating item) has an item of type item2) Equal to True
((Hero manipulating item) has an item of type item3) Equal to True
((Hero manipulating item) has an item of type item4) Equal to True

Boolean Comparison - Hero - Hero has item of type
You might also want to put a check making sure it's a hero...lol

(Edit) Yes.
(Edit2) Get rid of or any conditions are true, that'll wreck the trigger.
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Combo Items, my trigger isnt working

Post by Arabidnun »

Its a hero from a tavern, is there any other way to combine items that you know of in a "units" inventory?
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4430
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Combo Items, my trigger isnt working

Post by Bartimaeus »

Arabidnun wrote:Its a hero from a tavern, is there any other way to combine items that you know of in a "units" inventory?
Well, considering that it doesn't make a different if it's a tavern or not, you could try using an effect of an ability. By the way, get rid of the or any conditions are true.
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Combo Items, my trigger isnt working

Post by Arabidnun »

Ok, then do you know a condition that the player has to have a certain name?

Like

Event:
*player 1 enters chat -gold

Condition
*player's name = *arabidnun*

Action
*give gold 1000 to player 1
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4430
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Combo Items, my trigger isnt working

Post by Bartimaeus »

Arabidnun wrote:Ok, then do you know a condition that the player has to have a certain name?

Like

Event:
*player 1 enters chat -gold

Condition
*player's name = *arabidnun*

Action
*give gold 1000 to player 1
Yeah.
Untitled Trigger 001
Events
Player - Player 1 (Red) types a chat message containing -gold as A substring
Conditions
(Name of (Triggering player)) Equal to Arabidnun
Actions
Player - Set Player 1 (Red) Current gold to (Integer((Substring((Entered chat string), 6, 20))))

String Comparison - Name of Triggering Player
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Combo Items, my trigger isnt working

Post by Arabidnun »

So if i put the item4 has the ability to use beserk(random ability)

Then can this happen..

#Event:
--Player Uses (beserk)--
#Condition:
(Name of (Triggering player)) Equal to Arabidnun

#Actions:
If (all conditions are true) then do (then Actions) else do (else Actions)
*If - Conditions
(Hero Manipulating Item) has an Item of type Item1) equal true
(Hero Manipulating Item) Has an Item of type Item2) equal true
(Hero Manipulating Item) Has an Item of type Item3) equal true
(Hero Manipulating Item) Has an Item of type Item4) equal true
*Then do - Actions
Item - Remove (Item carried by(Hero Manipulating Item) of type Item1)
Item - Remove (Item carried by(Hero Manipulating Item) of type Item2)
Item - Remove (Item carried by(Hero Manipulating Item) of type Item3)
Item - Remove (Item carried by(Hero Manipulating Item) of type Item4)
Item - Create Item5 at (Center of (Playable map Area))
Hero - Give (Last created item) to (Hero Manipulating Item)
*Else - Actions
Do Nothing


Where i want it to check to see if that players name is true, and if the player has the 4 required items in its inventory after using the beserk, then to create the item for that player and give it to em
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4430
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Combo Items, my trigger isnt working

Post by Bartimaeus »

Arabidnun wrote:So if i put the item4 has the ability to use beserk(random ability)

Then can this happen..

#Event:
--Player Uses (beserk)--
#Condition:
(Name of (Triggering player)) Equal to Arabidnun

#Actions:
If (all conditions are true) then do (then Actions) else do (else Actions)
*If - Conditions
(Hero Manipulating Item) has an Item of type Item1) equal true
(Hero Manipulating Item) Has an Item of type Item2) equal true
(Hero Manipulating Item) Has an Item of type Item3) equal true
(Hero Manipulating Item) Has an Item of type Item4) equal true
*Then do - Actions
Item - Remove (Item carried by(Hero Manipulating Item) of type Item1)
Item - Remove (Item carried by(Hero Manipulating Item) of type Item2)
Item - Remove (Item carried by(Hero Manipulating Item) of type Item3)
Item - Remove (Item carried by(Hero Manipulating Item) of type Item4)
Item - Create Item5 at (Center of (Playable map Area))
Hero - Give (Last created item) to (Hero Manipulating Item)
*Else - Actions
Do Nothing


Where i want it to check to see if that players name is true, and if the player has the 4 required items in its inventory after using the beserk, then to create the item for that player and give it to em
Not quite. Since we changed to ability, hero manipulating item won't work now.
((Casting unit) has an item of type item1) Equal to True
Do that. Plus, you'll want to fix the activating trigger.
Unit - A unit Finishes casting an ability
Tell me if you have any more problems and/or more gui triggers needed.