for computing the condition of a game character