old_contents: 
  from games.objects.basescript import Script
  
  from games.objects.basezone import randloc, randrot, randscale
  from mongoengine_models import ScriptedObject
  from mongoengine_models import IntVector, FloatVector
  
  class Chicken(Script):
      def __init__(self, *args, **kwargs):
          # Overriding so people remember to do this on their scripts.
          super(Chicken, self).__init__(*args, **kwargs)
  
          self.idle_chat = ('BAWK', 'BUCAW', 'BUCK BUCK BUCK', 'BROOOOCK', 'CLUCK')
          self.collide_chat = ("bump.", "bamp!", "BUMP", "THUD!!")
  
      @classmethod
      def create(cls, number=0):
          obj = ScriptedObject()
          obj.name = "Chicken #%d" % number
          obj.resource = 'chicken'
          obj.loc = IntVector(x=randloc(), y=randloc(), z=randloc())
          obj.rot = FloatVector(x=randrot(), y=randrot(), z=randrot())
          obj.scale = FloatVector(x=randscale(), y=randscale(), z=randscale())
          obj.vel = FloatVector(x=0, y=0, z=0)
          obj.states.extend(['alive', 'whole', 'clickable'])
          obj.scripts = ['games.objects.chicken']
          obj.save()
          return obj
  
      def tick(self):
          if self.roll("1d100") == 100:
              self.rand_say(self.idle_chat)
  
          if self.roll("1d100") == 100:
              # Move around randomly.
              self.say("I think I'll take a stroll!")
              r = self.wander()
              if not r:
                  self.rand_say(self.collide_chat)
              else:
                  self.say("That stroll was nice.")
  
  
new_contents: 
  from games.objects.basescript import Script
  
  from games.zones.basezone import randloc, randrot, randscale
  from mongoengine_models import ScriptedObject
  from mongoengine_models import IntVector, FloatVector
  
  class Chicken(Script):
      def __init__(self, *args, **kwargs):
          # Overriding so people remember to do this on their scripts.
          super(Chicken, self).__init__(*args, **kwargs)
  
          self.idle_chat = ('BAWK', 'BUCAW', 'BUCK BUCK BUCK', 'BROOOOCK', 'CLUCK')
          self.collide_chat = ("bump.", "bamp!", "BUMP", "THUD!!")
  
      @classmethod
      def create(cls, number=0):
          obj = ScriptedObject()
          obj.name = "Chicken #%d" % number
          obj.resource = 'chicken'
          obj.loc = IntVector(x=randloc(), y=randloc(), z=randloc())
          obj.rot = FloatVector(x=randrot(), y=randrot(), z=randrot())
          obj.scale = FloatVector(x=randscale(), y=randscale(), z=randscale())
          obj.vel = FloatVector(x=0, y=0, z=0)
          obj.states.extend(['alive', 'whole', 'clickable'])
          obj.scripts = ['games.objects.chicken']
          obj.save()
          return obj
  
      def tick(self):
          if self.roll("1d100") == 100:
              self.rand_say(self.idle_chat)
  
          if self.roll("1d100") == 100:
              # Move around randomly.
              self.say("I think I'll take a stroll!")
              r = self.wander()
              if not r:
                  self.rand_say(self.collide_chat)
              else:
                  self.say("That stroll was nice.")
  
  
subject: Fix a typo in the chicken script.