~ubuntu-branches/ubuntu/precise/egoboo-data/precise

« back to all changes in this revision

Viewing changes to modules/catacomb2.mod/objects/skulton.obj/script.txt

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2010-04-25 10:20:11 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100425102011-1aosouybjkexdg9v
Tags: 1:2.7.7-1
* New Upstream Release
* Switch to debhelper

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//------------------------------------------------------------------------------
 
2
// Setup character
 
3
IfSpawned
 
4
  SetTargetToSelf
 
5
  EnchantTarget         // target is self...
 
6
  Walk
 
7
  BecomeLeader          //Bossy guy eh?
 
8
 
 
9
  //Sustained by magic
 
10
  SetTargetToSelf
 
11
  EnchantTarget
 
12
 
 
13
 
 
14
//------------------------------------------------------------------------------
 
15
//New round
 
16
IfTimeOut
 
17
  SetTargetToWideEnemy
 
18
    tmpx = targetdistance
 
19
    tmpy = 500
 
20
    IfXIsMoreThanY
 
21
      tmpargument = 1
 
22
    Else
 
23
      tmpargument = 2
 
24
    SetState
 
25
  tmpargument = rand & 25 + 20
 
26
  SetTime
 
27
 
 
28
//Charge
 
29
  IfStateIs1
 
30
    Run                                                 //Random approach
 
31
    tmpx = rand & 500 + targetx - 250
 
32
    tmpy = rand & 500 + targety - 250
 
33
    tmpdistance = rand & 550 - 100
 
34
    tmpturn = rand & 10000 + targetturnto - 5000
 
35
    Compass
 
36
    ClearWaypoints
 
37
    AddWaypoint
 
38
    tmpargument = 75
 
39
    SetTime
 
40
 
 
41
//Close Combat
 
42
  IfStateIs2
 
43
    Walk
 
44
    tmpx = targetx                              //Cling to enemy and try to hit
 
45
    tmpy = targety
 
46
    tmpdistance = 500
 
47
    tmpturn = targetturnto
 
48
    Compass
 
49
    ClearWaypoints
 
50
    AddWaypoint
 
51
    tmpargument = 25
 
52
    SetTime
 
53
 
 
54
    tmpx = targetdistance                       //Attack stuff
 
55
    tmpy = 200
 
56
    IfXIsLessThanY
 
57
      IfFacingTarget
 
58
        IfTargetIsOnHatedTeam
 
59
          tmpargument = LATCHRIGHT
 
60
          PressLatchButton
 
61
 
 
62
 
 
63
//Return to spawn when enemy is killed
 
64
  IfStateIs3
 
65
    SetTargetToNearbyEnemy
 
66
      tmpargument = 1
 
67
      SetState
 
68
    Else
 
69
      tmpx = selfspawnx
 
70
      tmpy = selfspawny
 
71
      ClearWaypoints
 
72
      AddWaypoint
 
73
      tmpargument = 250
 
74
      SetTime
 
75
 
 
76
 
 
77
//Run away if hit enemy and then prepare to reapproach
 
78
IfScoredAHit
 
79
  Run
 
80
  tmpx = targetx
 
81
  tmpy = targety
 
82
  tmpdistance = rand & 2400 - 1200
 
83
  tmpturn = rand
 
84
  Compass
 
85
  ClearWaypoints
 
86
  AddWaypoint
 
87
  tmpargument = 90
 
88
  SetTime
 
89
 
 
90
//Return to start
 
91
IfTargetKilled
 
92
  tmpargument = 3
 
93
  SetState
 
94
 
 
95
//------------------------------------------------------------------------------
 
96
//Spawn burning footsteps
 
97
GetContent
 
98
tmpx = tmpargument
 
99
tmpy = 6                        //Step timer/space between steps
 
100
IfXIsMoreThanY
 
101
  tmpx = selfaccel
 
102
  tmpy = 15                     //Only if moving
 
103
  IfXIsMoreThanY
 
104
    tmpargument = 3
 
105
    IfStateIsNot                //Don't do if not in combat
 
106
      tmpargument = 4
 
107
      tmpx = selfx
 
108
      tmpy = selfy
 
109
      tmpdistance = selfz
 
110
      SpawnExactParticle        //Create the step
 
111
    tmpargument = 0
 
112
    SetContent                  //Reset step timer
 
113
Else
 
114
  tmpargument = tmpargument +1
 
115
  SetContent                    //Increase step timer by 1
 
116
 
 
117
//------------------------------------------------------------------------------
 
118
//Do victory stuff and drop loot
 
119
IfKilled
 
120
  DropMoney
 
121
  DropItems
 
122
  DropKeys
 
123
  tmpargument = 0               //Tell them what happened
 
124
  SendMessageNear
 
125
  BeatModule                    //finish it up
 
126
  EnableExport
 
127
  tmpargument = [BEAT]
 
128
  AddIDSZ
 
129
  tmpargument = 50              //award some quest xp
 
130
  tmpdistance = EXPQUEST
 
131
  GiveExperienceToGoodTeam
 
132
 
 
133
  //Death cry
 
134
  tmpargument = 4
 
135
  tmpdistance = rand & 5000 + 7000
 
136
  PlaySound                     
 
137
 
 
138
  //Make the body
 
139
  tmpargument = 15
 
140
  SetBumpHeight
 
141
 
 
142
 
 
143
//------------------------------------------------------------------------------
 
144
End
 
145
//------------------------------------------------------------------------------