# purpose 
#
# This script is run on all creatures (victims) in a given 
# radius of the avatar after the avatar scares (roars).

# incoming variables
#
# avatar_posse_size
# num_neighbors_victim: the number of neighbors of the 
#                       same species the victim has.
# avatar_attack_rating
# victim_attack_rating

# output variable
#
# victim_panics: (0 means no, 1 means yes)



if ((avatar_attack_rating * ((1+avatar_possee_size)^0.8)) >= (victim_attack_rating * ((1+num_neighbors_victim)^0.8)))
  victim_panics = 1
  else
    victim_panics = 0
endif

