Setup:
1A. My character can find hidden mobs
2A. My character "marks" mobs for the tank to hit
3A. If no mobs of the target level are in the room, I tell the group to move on to the next area
What I want:
1B. To parse all of the mobs in the room
2B. Search for 5 specific short descriptions
3B. If the first is present, do "mark <mobname>", and end the searching so the Tank can attack them mob he'll se as marked
4B. If the first is not present, search for the 2nd, etc.
5B. If none are present, do "grouptell None here.", and end
My Questions:
1C. How do I set that up in an if/then/elseif?
2C. Do I use string.find or string.match to look for part of the short desc?
I could set it up with simple triggers, but if I try to use the mob's short desc to match a trigger, then if multiples are present, all of those triggers fire, marking multiple mobs instead of just 1.
Any help, and any pointing to appropriate examples would be greatly appreciated.
1A. My character can find hidden mobs
2A. My character "marks" mobs for the tank to hit
3A. If no mobs of the target level are in the room, I tell the group to move on to the next area
What I want:
1B. To parse all of the mobs in the room
2B. Search for 5 specific short descriptions
3B. If the first is present, do "mark <mobname>", and end the searching so the Tank can attack them mob he'll se as marked
4B. If the first is not present, search for the 2nd, etc.
5B. If none are present, do "grouptell None here.", and end
My Questions:
1C. How do I set that up in an if/then/elseif?
2C. Do I use string.find or string.match to look for part of the short desc?
I could set it up with simple triggers, but if I try to use the mob's short desc to match a trigger, then if multiples are present, all of those triggers fire, marking multiple mobs instead of just 1.
Any help, and any pointing to appropriate examples would be greatly appreciated.