// Get mean if characters wanna be bad
IfAttacked
  CallForHelp
  JoinEvilTeam
IfCalledForHelp
  JoinEvilTeam

//------------------------------------------------------------------------------
// ZZ> Move around...  Start at state 0
IfTimeOut
  tmpx=rand&63
  tmpy=0
  IfXIsEqualToY
    tmpargument = 0
    tmpdistance = rand & 1027 + 40000
    PlaySound
  IfStateIs0
    // Find shepherd
    tmpargument = [SHEP]
    tmpdistance = BLAHFRIENDS
    SetTargetToNearestBlahID
      SetOwnerToTarget
      tmpargument = 1
      SetState
    tmpargument = 5
    SetTime
  IfStateIs1
    SetTargetToOwner
    tmpx = ownerx
    tmpy = ownery
    tmpdistance = 100
    tmpturn = selfturn
    Compass
    tmpturn = targetturnto + 32768
    tmpdistance = 120
    Compass
    SetTargetToNearestFriend
    tmpturn = targetturnto + 32768
    tmpdistance = 70
    Compass
    tmpx = rand & 31 - 16 + tmpx
    tmpy = rand & 31 - 16 + tmpy
    ClearWaypoints
    AddWaypoint
    tmpargument = rand & 31 + 15
    SetTime


//------------------------------------------------------------------------------
// ZZ> Handle death by sending a message and other stuff
IfKilled
  tmpargument = 0
  SendMessage

  // Make the character body
  tmpargument = 45
  SetBumpHeight


//------------------------------------------------------------------------------
End
//------------------------------------------------------------------------------
