Analyzing character actions and motivations