lv_u = EventUnit(); //EventUnit() is the same thing as TriggerUnit() from vJass (Warcraft III)
if (UnitGetType(lv_u) == "sheep") {
DebugMsg(StringToText("Bawww!")); //DebugMsg is a custom function I made that displays "Debug: " in red then the line of text you give as a parameter in the function.
} else if (UnitGetType(lv_u) == "dog") {
DebugMsg(StringToText("Grrrrowl!"));
} else {
DebugMsg(StringToText("This ain't any animal I've ever heard of o.O"));
}