Defense


00070425 When shot/hit, assign function 0425 - Saved hostage
0033fd2e If $self is dying/dead goto 2e
0034fd2e If $self has finished death animation goto 2e
017bfd2e If $self's body has disappeared goto 2e
000003 Go to next 03
00022e Label 2e
00070000 When shot/hit, assign function 0000 - Idle
0005fd0000 Assign function 0000 - Idle to $self and advance frame
000203 Label 03
0106f50000 Set $player to Velvet
003f2e If $player is in line of sight goto 2e
00b0f8 Set $self->target_actor to Joanna
000008 Go to next 08
00022e Label 2e
00b0f5 Set $self->target_actor to Velvet
000208 Label 08
00b6 Reset and start cycle counter
00020a Label 0a
0018020000000b Actor faces something (entity type=0x0200, entity_id=0x0000), then goto 0b
00020b Label 0b
0003 Yield
00bd00003c08 If cycle counter > 60 (1.0 secs) goto 08
00010b Go to first 0b
000208 Label 08
01380608 If sound in channel 6 is finished goto 08
00bd0000c82f If cycle counter > 200 (3.3 secs) goto 2f
00010b Go to first 0b
000208 Label 08
01a20306 Play Carrington quip
000b02310000ffff1010fd02 Actor $self does animation 0231 (left arm up then down)
00022f Label 2f
00b6 Reset and start cycle counter
000271 Label 71
0003 Yield
00bd0000782e If cycle counter > 120 (2.0 secs) goto 2e
000171 Go to first 71
00022e Label 2e
002000b7 Run to pad 00b7
000211 Label 11
0003 Yield
003210 If actor has stopped moving goto 10
000111 Go to first 11
0106fc0000 Set $player to $self->target_actor
000210 Label 10
0003 Yield
0106f80000 Set $player to Joanna
003f2e If $player is in line of sight goto 2e
0106f40000 Set $player to counter op
003f2e If $player is in line of sight goto 2e
0106f50000 Set $player to Velvet
003f2e If $player is in line of sight goto 2e
0053003208 If actor is further than 50 units from player goto 08
00022e Label 2e
000110 Go to first 10
000208 Label 08
00a500100000 Unset property for actor $self: 1:00100000 (kill countable)
0026fd Remove $self
0005fd0000 Assign function 0000 - Idle to $self and advance frame
0004 End of function

Invocations

Comments

There are no comments yet for this function.