HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Detecting if a unit is a tauren

02-18-2005, 09:10 PM#1
Taur
how do u detect if a unit has classification 'tauren'?
02-18-2005, 09:14 PM#2
Guest
Look in boleean conditions, theres one called "unit classification" or something like that (I remembered using it with mechs on one of my maps)
02-19-2005, 01:24 PM#3
Taur
Quote:
Originally Posted by BadFurDay
Look in boleean conditions, theres one called "unit classification" or something like that (I remembered using it with mechs on one of my maps)
it doesn't have tauren in there
02-19-2005, 04:32 PM#4
Bulletcatcher
You'll have to do something like putting all your tauren unit-types in an array and looping through that when checking.

Like this:

Event: A Unit Dies

Conditions: None

Actions:
For Integer A=1 to <number of tauren unit types> do
If Unit Type of (Dying Unit) is equal to TaurenTypeArray[Integer A]
Then send text message to all players: A tauren just died!
Else do nothing.
02-19-2005, 05:00 PM#5
Taur
Quote:
Originally Posted by Bulletcatcher
You'll have to do something like putting all your tauren unit-types in an array and looping through that when checking.

Like this:

Event: A Unit Dies

Conditions: None

Actions:
For Integer A=1 to <number of tauren unit types> do
If Unit Type of (Dying Unit) is equal to TaurenTypeArray[Integer A]
Then send text message to all players: A tauren just died!
Else do nothing.
okay one thing i am not a n00b triggerer i know how to do that i just want to make a spell that instead of setting the unit types the person can just classify theunit as a tauren, i dunno this may need JASS
02-19-2005, 05:36 PM#6
Guest
Just classify the taurens as something else. Lets just say suicidal:

Change all the 'Stats - Unit Classifaction' in the unit editor to suicidal for all the taurens. Then you can find the classifaction 'a sapper' in the boolean conditions - Unit Classification Check.
02-19-2005, 06:30 PM#7
ThyFlame
Make a unit-type array and put all of the tauren units in that and loop through it when you wish to check.

There are other ways, such as assigning custom values, but that is the easiest and more efficient.
02-20-2005, 09:24 AM#8
Guest
What editor do you use???
My normal TFT WE of latest patch has a list which contains: worker, mechanical, suicidial... etc... and tauren
02-20-2005, 12:19 PM#9
Taur
Quote:
Originally Posted by BadFurDay
What editor do you use???
My normal TFT WE of latest patch has a list which contains: worker, mechanical, suicidial... etc... and tauren
whaaa? i have TFT 1.17, well normally i use WEU, so i'll check WE