|
@@ -0,0 +1,90 @@
|
|
1
|
+#include <battle_script.h>
|
|
2
|
+
|
|
3
|
+.align 2
|
|
4
|
+.thumb
|
|
5
|
+.text
|
|
6
|
+
|
|
7
|
+.global bs_close_combat
|
|
8
|
+bs_close_combat:
|
|
9
|
+ attackcanceler
|
|
10
|
+ accuracycheck 0x081D695E 0
|
|
11
|
+ attackstring
|
|
12
|
+ ppreduce
|
|
13
|
+ calculatedamage
|
|
14
|
+ attackanimation
|
|
15
|
+ waitanimation
|
|
16
|
+ missmessage
|
|
17
|
+ cmd5c 0
|
|
18
|
+ waitstate
|
|
19
|
+ graphicalhpupdate 0
|
|
20
|
+ datahpupdate 0
|
|
21
|
+ critmessage
|
|
22
|
+ waitmessage 0x40
|
|
23
|
+ resultmessage
|
|
24
|
+ waitmessage 0x40
|
|
25
|
+ faintpokemon 0 0 0
|
|
26
|
+ callasm close_combat_choose_script+1
|
|
27
|
+
|
|
28
|
+bs_lower_def:
|
|
29
|
+ setbyte 0x02023FDF 0
|
|
30
|
+ playstatchangeanimation 1 0x20 1
|
|
31
|
+ setbyte 0x02023FDE 0x95
|
|
32
|
+ statbuffchange 0x41 0x081D694E
|
|
33
|
+ jumpifbyte 0 0x02023FDE 0x2 0x081D694E
|
|
34
|
+ printfromtable 0x083FE588
|
|
35
|
+ waitmessage 0x40
|
|
36
|
+ goto 0x081D694E
|
|
37
|
+
|
|
38
|
+bs_lower_sdef:
|
|
39
|
+ setbyte 0x2023FDF 0x0
|
|
40
|
+ playstatchangeanimation 0x1 0x4 0x1
|
|
41
|
+ setbyte 0x2023FDE 0x92
|
|
42
|
+ statbuffchange 0x41 0x081D694E
|
|
43
|
+ jumpifbyte 0x0 0x02023FDE 0x2 0x081D694E
|
|
44
|
+ printfromtable 0x83FE588
|
|
45
|
+ waitmessage 0x40
|
|
46
|
+ goto 0x081D694E
|
|
47
|
+
|
|
48
|
+bs_lower_both:
|
|
49
|
+ setbyte 0x2023FDF 0x0
|
|
50
|
+ playstatchangeanimation 0x1 0x24 0x1
|
|
51
|
+ setbyte 0x2023FDE 0x92
|
|
52
|
+ statbuffchange 0x41 0x081D694E
|
|
53
|
+ jumpifbyte 0x0 0x02023FDE 0x2 0x081D694E
|
|
54
|
+ printfromtable 0x83FE588
|
|
55
|
+ waitmessage 0x40
|
|
56
|
+ setbyte 0x2023FDE 0x95
|
|
57
|
+ statbuffchange 0x41 0x081D694E
|
|
58
|
+ jumpifbyte 0x0 0x02023FDE 0x2 0x081D694E
|
|
59
|
+ printfromtable 0x83FE588
|
|
60
|
+ waitmessage 0x40
|
|
61
|
+ goto 0x081D694E
|
|
62
|
+
|
|
63
|
+.global bs_cc_lower_def
|
|
64
|
+bs_cc_lower_def:
|
|
65
|
+ .word bs_lower_def
|
|
66
|
+
|
|
67
|
+.global bs_cc_lower_sdef
|
|
68
|
+bs_cc_lower_sdef:
|
|
69
|
+ .word bs_lower_sdef
|
|
70
|
+
|
|
71
|
+.global bs_cc_lower_both
|
|
72
|
+bs_cc_lower_both:
|
|
73
|
+ .word bs_lower_both
|
|
74
|
+
|
|
75
|
+.global as_close_combat
|
|
76
|
+as_close_combat:
|
|
77
|
+ .byte 0x14, 0x09, 0x17, 0x03, 0x2D, 0xB8, 0x0B, 0x08, 0x05, 0x04, 0x00, 0xF7, 0x00, 0x00, 0x01, 0x00
|
|
78
|
+ .byte 0xFF, 0xFF, 0x00, 0x97, 0x27, 0x00, 0x9F, 0x27, 0x0A, 0x03, 0x0C, 0x0C, 0x08, 0x03, 0x7D, 0x90
|
|
79
|
+ .byte 0x09, 0x08, 0x02, 0x05, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x04
|
|
80
|
+ .byte 0x02, 0x08, 0x7C, 0x3E, 0x08, 0x02, 0x04, 0xF1, 0xFF, 0x12, 0x00, 0x01, 0x00, 0x00, 0x00, 0x19
|
|
81
|
+ .byte 0x74, 0x00, 0x3F, 0x04, 0x01, 0x03, 0xF9, 0x89, 0x09, 0x08, 0x02, 0x05, 0x01, 0x00, 0x05, 0x00
|
|
82
|
+ .byte 0x00, 0x00, 0x19, 0x00, 0x01, 0x00, 0x02, 0x10, 0x67, 0x3E, 0x08, 0x03, 0x05, 0xF1, 0xFF, 0x12
|
|
83
|
+ .byte 0x00, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x03, 0x02, 0x08, 0x7C, 0x3E, 0x08, 0x02, 0x04
|
|
84
|
+ .byte 0x00, 0x00, 0xFC, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x19, 0x74, 0x00, 0x3F, 0x04, 0x01, 0x02, 0x10
|
|
85
|
+ .byte 0x67, 0x3E, 0x08, 0x03, 0x05, 0x00, 0x00, 0xFC, 0xFF, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04
|
|
86
|
+ .byte 0x03, 0x02, 0x08, 0x7C, 0x3E, 0x08, 0x02, 0x04, 0x0F, 0x00, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00
|
|
87
|
+ .byte 0x19, 0x74, 0x00, 0x3F, 0x04, 0x01, 0x02, 0x10, 0x67, 0x3E, 0x08, 0x03, 0x05, 0x0F, 0x00, 0x09
|
|
88
|
+ .byte 0x00, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x05, 0x02, 0x84, 0x4E, 0x3D, 0x08, 0x02, 0x03
|
|
89
|
+ .byte 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x0B, 0x03, 0x0D, 0x0E, 0xC7, 0x59, 0x1D, 0x08, 0x08
|
|
90
|
+
|