So I am looking for a way to comb through a shop's inventory in my mud, looking for items of a certain quality, and then when it finds the item or reaches the end then it stops.
So just for an example lets say I am looking for a sword with a 100% Condition and the shop I am at has 50 of the swords. But they are in now way sorted by condition. Currently I have to manually type "inspect 1.sword", "inspect 2.sword", etc... I am looking for an alias that I can type in that will search through all the swords and then stop when it either reaches one of the condition OR runs out of items to inspect.
So the line to stop the search based on meeting the condition would be:
Size: * Condition: perfect (100%)
and the line to stop it because you ran out of items to inspect would be:
* tells you 'I don't sell that -- try 'list' '
The main problem I am having is I can't seem to find the way to make an alias/trigger that will basically continue counting and filling in the # part of the inspect command.
Help? Guidance?
So just for an example lets say I am looking for a sword with a 100% Condition and the shop I am at has 50 of the swords. But they are in now way sorted by condition. Currently I have to manually type "inspect 1.sword", "inspect 2.sword", etc... I am looking for an alias that I can type in that will search through all the swords and then stop when it either reaches one of the condition OR runs out of items to inspect.
So the line to stop the search based on meeting the condition would be:
Size: * Condition: perfect (100%)
and the line to stop it because you ran out of items to inspect would be:
* tells you 'I don't sell that -- try 'list' '
The main problem I am having is I can't seem to find the way to make an alias/trigger that will basically continue counting and filling in the # part of the inspect command.
Help? Guidance?