I think you need to be a little more specific with your question. What tools are you trying to use? What system is the game for? What have you tried already? When that didn't work, what happened?
Without details, it's pretty much impossible to give you a good answer. So all you'll get is something equally vague, like 'use relative searching'.