okay, another question for you guys:
I have logged all of the information on items in the mud I play into one big text file, with each thing seperated by a enter, e.g:
Object 'the Cloak of Shadows', Item type: OTHER
Item will give you following abilities: NOBITS
Object 'thracian half-armor', Item type: ARMOR
Item will give you following abilities: NOBITS
Now i am trying to make a script to search through this for an item name (e.g. 'the cloak of shadows') and then display the results. So far all I can do is open the file and read the lines. Any suggestions on how to go about matching on the item name and displaying its info?
I have logged all of the information on items in the mud I play into one big text file, with each thing seperated by a enter, e.g:
Object 'the Cloak of Shadows', Item type: OTHER
Item will give you following abilities: NOBITS
Object 'thracian half-armor', Item type: ARMOR
Item will give you following abilities: NOBITS
Now i am trying to make a script to search through this for an item name (e.g. 'the cloak of shadows') and then display the results. So far all I can do is open the file and read the lines. Any suggestions on how to go about matching on the item name and displaying its info?