Quick question about AI and if creature is peaceful or violent

would be the graph function