• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Trigger] 2 Triggers that made me mad!!!

Status
Not open for further replies.
Level 7
Joined
Apr 13, 2008
Messages
183
I was trying to make 2 triggers. After 1 hour they were not ready and I got really pissed off. Can you help me?:sad:
1. When a Hero attacks an allied hero, Hex(Neutral Hostile version) is casted on him.
2. When a hero has 2 Items that are the same, the second one is dropped. (Give me a example with Scroll of regeneration :cool: )
THANK u!
 
Level 7
Joined
Jul 12, 2008
Messages
295
For the first 1 u could use
E: when a unit is attacked
C: attacked unit is an ally of attacking unit equal to true
A: Order attacked unit to stop(this is better than hex)
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
And? The whole point is to stop your allies from attacking you. If they're so stupid to KEEP attacking, that's too bad for them?

For the second trigger:
Events: A unit gains an item
Actions: loop through each itemslot of triggering unit and if the same item is encountered twice, drop it
 
Status
Not open for further replies.
Top