home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 42 / CDGAMER42.iso / Egoboo / egoboo.exe / egoboo / modules / advent.mod / objects / mouse.obj / script.txt < prev    next >
Text File  |  2000-06-26  |  1KB  |  45 lines

  1. // ZZ> This function makes the character move around
  2. IfKilled                // Size
  3.   JoinGoodTeam // For rebirth...
  4.   tmpargument = 45              //
  5.   SetBumpHeight                  //
  6.   tmpargument = 0              //
  7.   SendMessageNear              //
  8.   tmpargument = rand & 1
  9.   tmpdistance = 22050
  10.   PlaySound
  11. IfSpawned
  12.   JoinNullTeam // For rebirth...
  13.   tmpargument = 30
  14.   SetTime
  15. IfAttacked
  16.   tmpargument = rand & 1
  17.   tmpdistance = 22050
  18.   PlaySound
  19. IfMounted
  20.   tmpargument = rand & 1
  21.   tmpdistance = 22050
  22.   PlaySound
  23. IfTimeOut                // This is done every so often
  24.   ClearWaypoints              //
  25.   SetTargetToNearbyEnemy          // Run away
  26.     tmpturn = targetturnto + 24000        //
  27.     tmpdistance = 600                //
  28.     Compass                    //
  29.   Else
  30.     tmpx = selfx
  31.     tmpy = selfy
  32.   AddWaypoint                  //
  33.   tmpargument = rand & 15 + 20          // Wait a while and try again
  34.   SetTime                  //
  35. IfBumped                // Wander
  36.   SetTargetToWhoeverBumped
  37.   tmpx = selfx
  38.   tmpy = selfy
  39.   tmpturn = targetturnto + 32768
  40.   tmpdistance = 500
  41.   Compass
  42.   ClearWaypoints              //
  43.   AddWaypoint                  //
  44. End                    // Finished with this character
  45.