• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Every unit EXCEPT...

Status
Not open for further replies.
Level 3
Joined
Dec 15, 2007
Messages
44
Okay, so I'm working on a trigger that replaces the dying structures with exact copies owned by neutral player that are invuln and are at 30% hp. This is to give the effect of a ruined city as you walk through it with burning buildings. However, some towers I have do not look good with the fire, 'cause they still look active. (ex. Arcane Towers with magic swirling)

So I'm wondering if there is a way to have it apply to every unit in the region, EXCEPT those towers, or types of towers. so far this is what I've got and it works great except for the towers that I don't want.

  • Ironfist Destroy
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A structure) Equal to True
      • (Owner of (Triggering unit)) Equal to Player 3 (Teal)
      • (Ironfist destroy <gen> contains (Triggering unit)) Equal to True
    • Actions
      • Unit - Create 1 (Unit-type of (Triggering unit)) for Neutral Passive at (Position of (Triggering unit)) facing Default building facing degrees
      • Unit - Set life of (Last created unit) to 30.00%
      • Unit - Make (Last created unit) Invulnerable
I'm wondering if there is some sort of boolean or unit comparison condition where I can say that Triggering Unit is Equal to Arcane Tower is False or something.

Anyone got any ideas?
 
Level 3
Joined
Dec 15, 2007
Messages
44
How do I add colors to text? Does anyone have all the codes for colors? And if so, how would I make a trigger like in dota where a player gets killed and it shows who killed them and the colors. I did it without colors but I don't know how to implement the player names color without having a much more complicated system of triggers.
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
First please don't double post.
You can click on the Edit button forever, no time limit.

For codes (some don't work in warcraft, don't ask me why) you can click here, and go down.
The codes you are interested in are the Decimal (Hexadecimal).

To insert a color code in warcraft you'll need to make a text like this:

|cffRRGGBBText|r

The "|" is located near the left shift on your keyboard (press shift+key next to shift).

The "cff" is just a standard starting of the code.

The RR=Red GG=Green BB=Blue.

Each of the color values can go beetwin 1 and F (1,2,3,4,5,6,7,8,9,A,B,C,D,E,F).

And the "|r" indicates its the end of the code.

So for example, if you would like to say "Hello", you'll have to write this code:

|cffFF0000Hello|r
 
Status
Not open for further replies.
Top