- Joined
- May 8, 2010
- Messages
- 150
Basically, trying to create a trigger which when a hero picks up an item, such as "Sword" it will move it instantly to slot 1, but if theres already an item in slot one such as "Axe" it will move it to the trigger players bank.
But im struggeling to make the item move from one slot in the heroes inventory to another.
Can anyone help me?
Plus it must fit in with the below trigger.
[trigger=Item Sword]
Slot 1Sword
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Wooden Melee Weapon
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item being manipulated)) Equal to Wooden Melee Weapon
(Item carried by (Triggering unit) in slot 1) Equal to No item
((Unit-type of (Triggering unit)) Equal to Berserker) or ((Unit-type of (Triggering unit)) Equal to Hero)
Then - Actions
Else - Actions
Item - Move (Item being manipulated) to (Center of Banks[(Player number of (Owner of (Triggering unit)))])
[/trigger]
+ rep for helpers also!
Thanks.
But im struggeling to make the item move from one slot in the heroes inventory to another.
Can anyone help me?
Plus it must fit in with the below trigger.
[trigger=Item Sword]
Slot 1Sword
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Wooden Melee Weapon
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item being manipulated)) Equal to Wooden Melee Weapon
(Item carried by (Triggering unit) in slot 1) Equal to No item
((Unit-type of (Triggering unit)) Equal to Berserker) or ((Unit-type of (Triggering unit)) Equal to Hero)
Then - Actions
Else - Actions
Item - Move (Item being manipulated) to (Center of Banks[(Player number of (Owner of (Triggering unit)))])
[/trigger]
+ rep for helpers also!
Thanks.