• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need help with a trigger!(GUI)

Status
Not open for further replies.
Level 15
Joined
Aug 11, 2009
Messages
1,606
This is my trigger :
  • Show
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A ground unit) Equal to True
      • (Owner of (Dying unit)) Equal to Player 1 (Red)
      • (Owner of (Dying unit)) Equal to Player 8 (Pink)
    • Actions
      • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
      • Special Effect - Destroy (Last created special effect)
But it doesn't work.What to i make wrong?Also i need to add a condition which the trigger works only if the player who killed the unit is ally of player red/pink.Any help?
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
It still doesn't work...And i update the trigger a bit.Any one that can help me?
  • Show
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Dying unit)) Equal to Blood Elf Archer
          • (Unit-type of (Dying unit)) Equal to Blood Elf Archer (Arena Strong)
          • (Unit-type of (Dying unit)) Equal to Blood Elf Swordman
          • (Unit-type of (Dying unit)) Equal to Blood Elf Swordman (Arena Strong)
          • (Unit-type of (Dying unit)) Equal to Blood Elf Knight
          • (Unit-type of (Dying unit)) Equal to Blood Elf Knight (Arena Strong)
          • (Unit-type of (Dying unit)) Equal to Blood Elf Priest
          • (Unit-type of (Dying unit)) Equal to Blood Elf Priest (Arena Strong)
          • (Unit-type of (Dying unit)) Equal to Fel Orc Crossbowman
          • (Unit-type of (Dying unit)) Equal to Fel Orc Crossbowman (Arena Strong)
          • (Unit-type of (Dying unit)) Equal to Fel Orc Enforcer
          • (Unit-type of (Dying unit)) Equal to Fel Orc Enforcer (Arena Strong)
          • (Unit-type of (Dying unit)) Equal to Fel Orc Raider
          • (Unit-type of (Dying unit)) Equal to Fel Orc Raider (Arena Strong)
          • (Unit-type of (Dying unit)) Equal to Fel Orc Warlock
          • (Unit-type of (Dying unit)) Equal to Fel Orc Warlock (Arena Strong)
          • (Owner of (Dying unit)) Equal to Player 1 (Red)
          • (Owner of (Dying unit)) Equal to Player 8 (Pink)
    • Actions
      • Special Effect - Create a special effect attached to the overhead of (Dying unit) using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
      • Special Effect - Destroy (Last created special effect)
 
  • Show
  • Events
  • Unit - A unit Dies
  • Conditions
  • Or - Any (Conditions) are true
  • Conditions
  • (Unit-type of (Dying unit)) Equal to Blood Elf Archer
  • (Unit-type of (Dying unit)) Equal to Blood Elf Archer (Arena Strong)
  • (Unit-type of (Dying unit)) Equal to Blood Elf Swordman
  • (Unit-type of (Dying unit)) Equal to Blood Elf Swordman (Arena Strong)
  • (Unit-type of (Dying unit)) Equal to Blood Elf Knight
  • (Unit-type of (Dying unit)) Equal to Blood Elf Knight (Arena Strong)
  • (Unit-type of (Dying unit)) Equal to Blood Elf Priest
  • (Unit-type of (Dying unit)) Equal to Blood Elf Priest (Arena Strong)
  • (Unit-type of (Dying unit)) Equal to Fel Orc Crossbowman
  • (Unit-type of (Dying unit)) Equal to Fel Orc Crossbowman (Arena Strong)
  • (Unit-type of (Dying unit)) Equal to Fel Orc Enforcer
  • (Unit-type of (Dying unit)) Equal to Fel Orc Enforcer (Arena Strong)
  • (Unit-type of (Dying unit)) Equal to Fel Orc Raider
  • (Unit-type of (Dying unit)) Equal to Fel Orc Raider (Arena Strong)
  • (Unit-type of (Dying unit)) Equal to Fel Orc Warlock
  • (Unit-type of (Dying unit)) Equal to Fel Orc Warlock (Arena Strong)
  • Or - Any (Conditions) are true
  • (Owner of (Dying unit)) Equal to Player 1 (Red)
  • (Owner of (Dying unit)) Equal to Player 8 (Pink)
    • Actions
      • Custom script: local effect Effect
      • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
      • Custom script: set Effect = GetLastCreatedEffectBJ()
      • Wait 2.00 seconds
      • Custom script: call DestroyEffectBJ( Effect )
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
OK the trigger works fine now :) Thx to both of you ikillforeyou and Slaydon and +rep for you.Also i want 1 more condition to add if its possible...to show the effect only when the dying units are killed by a player which is an ally of red and pink.Allies of red are:blue-teal-purple-yellow.Allies of Pink are:gray-lightblue-darkgreen-brown.
For example...Blood Elf Swordman is Red's unit.I want the effect to be shown only when this unit is killed by Blue-Teal-Purple-Yellow 's heroes.
 
  • ShowDeny
  • Events
  • Unit - A unit Dies
  • Conditions
    • Owner of (killing unit) equal to Owner of (dying unit)
  • Actions
  • Custom script: local effect Effect
  • Special Effect - Create a special effect attached to the overhead of (Dying unit) using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
  • Custom script: set Effect = GetLastCreatedEffectBJ()
  • Wait 0.60 seconds
  • Custom script: call DestroyEffectBJ( Effect )
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
Ok listen.This trigger works perfectly except 1 thing.It takes effect only when my hero kills a unit,this is what it should do...But it takes effect when my hero kills even my own unit(like team kill-deny) and if my hero kills enemy unit,too.I want the effect to takes place only when my hero kills his own units(team kill-deny).Did you got it?It shouldn't work when my hero kills enemy units,just mine.
 
Status
Not open for further replies.
Top