• 🏆 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 Request

Status
Not open for further replies.
Level 6
Joined
Jul 15, 2008
Messages
79
I need a part of a trigger I can't get to work for my "Primordial Azeroth" map.

  • Event
  • Unit - A unit finishes the research
  • Conditions
  • (Unit-type of (Researching Unit)) equal to War Forge
  • Titan Crystal Swords equal to (Researched tech-type)
  • Actions
  • Special Effect - Create a special effect attached to the left hand of Orc using Judgement.mdx
The problem is:
This trigger will attach the model only on the Orc already present ingame, how can I make it to attach to every Orc already present ingame and that will spawn?
Like on that game...what's the name...Pimp my Peon!

+Rep to who will help me, thanks.
 
Level 25
Joined
Jun 5, 2008
Messages
2,572
First add this *Trigger1*:
  • Events - A unit finishes an research
  • Conditions - Your conditions
  • Actions - Set *group* = units in playable map area matching (matching unit equal to *your unit type*
    • - Unit Group - Pick every unit in *group* and do actions
      • - Unit add *dummy ability* to picked unit
    • - Custom script: call DestroyGroup(udg_*group*)
    • - Trigger turn on *trigger2*
Then *Trigger2* initialy off:
  • Events - Unit is trained
  • Conditons - Unit type of trained unit equal to *your unit*
  • Actions - Unit add *dummy ability* to Trained unit
Use dummy abilities like sphere to add special effects, to avoid memory leaks.
 
Level 14
Joined
Dec 9, 2006
Messages
1,091
Why not make a second trigger:

Event:
Unit Enters Playable Map Area
Condition:
Triggering unit-type is Equal to Orc
Action:
Special Effect - Create a special effect attached to the left hand of Triggering Unit using Judgement.mdx

Make this trigger turned off at the start of the game, and when your original trigger occurs, turn this trigger on.

~Asomath
 
Status
Not open for further replies.
Top