Applying Agent Modeling To Behaviour Patterns Of Characters In Story-Based Games