#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?
Combo Items, my trigger isnt working
Moderator: Cheaters
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
-
- Tyrannical Drama Queen
- Posts: 4430
- Joined: November 19th, 2007, 5:05 am
- Been thanked: 2 times
Re: Combo Items, my trigger isnt working
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 >.<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?
Also, it should be hero manipulating item has item of type = item1-4 for the conditions
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Combo Items, my trigger isnt working
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?
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?
-
- Tyrannical Drama Queen
- Posts: 4430
- Joined: November 19th, 2007, 5:05 am
- Been thanked: 2 times
Re: Combo Items, my trigger isnt working
How do i do this?Arabidnun wrote:hero manipulating item has item of type = item1-4 for the conditions
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.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Combo Items, my trigger isnt working
Its a hero from a tavern, is there any other way to combine items that you know of in a "units" inventory?
-
- Tyrannical Drama Queen
- Posts: 4430
- Joined: November 19th, 2007, 5:05 am
- Been thanked: 2 times
Re: Combo Items, my trigger isnt working
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 wrote:Its a hero from a tavern, is there any other way to combine items that you know of in a "units" inventory?
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Combo Items, my trigger isnt working
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
Like
Event:
*player 1 enters chat -gold
Condition
*player's name = *arabidnun*
Action
*give gold 1000 to player 1
-
- Tyrannical Drama Queen
- Posts: 4430
- Joined: November 19th, 2007, 5:05 am
- Been thanked: 2 times
Re: Combo Items, my trigger isnt working
Yeah.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
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
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Combo Items, my trigger isnt working
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
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
-
- Tyrannical Drama Queen
- Posts: 4430
- Joined: November 19th, 2007, 5:05 am
- Been thanked: 2 times
Re: Combo Items, my trigger isnt working
Not quite. Since we changed to ability, hero manipulating item won't work now.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
((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.