i play on a PK mud and if i scan some enemies i want to tell my guild. guild chat is by the command "gcc"
my enemies show up like such if i scan them:
A Barbarian who is close by to your west.
A Gnome who is close by to your west.
and different messages for how many rooms away they are, but it all follows the pattern:
(A|An) <enemy race> * who is * to your (north.|south.|east.|west|above.|below.)
and all the valid enemy races are:
Minotaur|Centaur|Barbarian|Thri-kreen|Gnome|Halfling|Mountain Dwarf|Human|Grey Elf|Half-Elf
basically when i scan any of them i want to automatically say
You tell your guild 'Minotaur | Centaur | Barbarian'
i think to do this i would have to have some sort of enemy race variable that gets written to when i scan them then gcc the variable, i don't really know how to script, any help?
my enemies show up like such if i scan them:
A Barbarian who is close by to your west.
A Gnome who is close by to your west.
and different messages for how many rooms away they are, but it all follows the pattern:
(A|An) <enemy race> * who is * to your (north.|south.|east.|west|above.|below.)
and all the valid enemy races are:
Minotaur|Centaur|Barbarian|Thri-kreen|Gnome|Halfling|Mountain Dwarf|Human|Grey Elf|Half-Elf
basically when i scan any of them i want to automatically say
You tell your guild 'Minotaur | Centaur | Barbarian'
i think to do this i would have to have some sort of enemy race variable that gets written to when i scan them then gcc the variable, i don't really know how to script, any help?