The MUD on 'locate' command returns a line for the location of each one of the items, for example 'locate swords' will return:
"The sword is lying on the ground.
The sword is in your backpack.
The sword is in your backpack.
The sword is in your left hand."
I want to count how many swords there are, and have it stop counting immediately so that it shouldn't mistake another line or a repeat command as more swords. How would you suggest doing this?
Thanks.
"The sword is lying on the ground.
The sword is in your backpack.
The sword is in your backpack.
The sword is in your left hand."
I want to count how many swords there are, and have it stop counting immediately so that it shouldn't mistake another line or a repeat command as more swords. How would you suggest doing this?
Thanks.