Luis:
You can use the global variable:
GLOB_CH_STORY_DIST:
relative position of the current story to the home story.
So by checking the current story relative to the home story of the object (number of stories above or below), you can script which line type to use.
David