I have some triggers for killing mobs. But they are too long. In what way, can it be shortened? Here is the part of triggers. I have mobs assigned to @east, @north, etc from scan information. I want to pick specific mob to kill.
#if (@east == "a rabid dog" and @position == "standing") {
east
kill dog
@position = "fighting"
}
#if (@west == "a rabid dog" and @position == "standing") {
west
kill dog
@position = "fighting"
}
#if (@north == "a rabid dog" and @position == "standing") {
north
kill dog
@position = "fighting"
}
#if (@south == "a rabid dog" and @position == "standing") {
south
kill dog
@position = "fighting"
}
#if (@east == "a large eagle" and @position == "standing") {
east
kill eagle
@position = "fighting"
}
#if (@west == "a large eagle" and @position == "standing") {
west
kill eagle
@position = "fighting"
}
#if (@north == "a large eagle" and @position == "standing") {
north
kill eagle
@position = "fighting"
}
#if (@south == "a large eagle" and @position == "standing") {
south
kill eagle
@position = "fighting"
}