Browse Source

update hesperia mapscript, add new script_language makros

DragonflySotS 7 years ago
parent
commit
7171cf89ff
31 changed files with 61 additions and 32 deletions
  1. BIN
      build/pkmn_sots_01.png
  2. 1
    1
      generated_image/bootscreen/boot_tileset.h
  3. 1
    1
      generated_image/char/bag/hero_bag.h
  4. 1
    1
      generated_image/char/bag/heroine_bag.h
  5. 1
    1
      generated_image/char/throw_out/hero_backsprite.h
  6. 1
    1
      generated_image/char/throw_out/heroine_backsprite.h
  7. 1
    1
      generated_image/cutscene_meteor/met_background.h
  8. 1
    1
      generated_image/cutscene_meteor/met_clouds.h
  9. 1
    1
      generated_image/cutscene_meteor/met_foreground.h
  10. 1
    1
      generated_image/cutscene_meteor/met_foreground_red.h
  11. 1
    1
      generated_image/cutscene_meteor/met_meteor.h
  12. 1
    1
      generated_image/cutscene_meteor/met_sky.h
  13. 1
    1
      generated_image/cutscene_meteor/met_sky_red.h
  14. 1
    1
      generated_image/emoticons/emot_arrows.h
  15. 1
    1
      generated_image/mugshots/mug_00.h
  16. 1
    1
      generated_image/mugshots/mug_01.h
  17. 1
    1
      generated_image/mugshots/mug_02.h
  18. 1
    1
      generated_image/mugshots/mug_03.h
  19. 1
    1
      generated_image/mugshots/mug_04.h
  20. 1
    1
      generated_image/mugshots/mug_05.h
  21. 1
    1
      generated_image/mugshots/mug_06.h
  22. 1
    1
      generated_image/mugshots/mug_07.h
  23. 1
    1
      generated_image/mugshots/mug_08.h
  24. 1
    1
      generated_image/mugshots/mug_09.h
  25. 1
    1
      generated_image/titlescreen/title_sprite_sky.h
  26. 1
    1
      generated_image/titlescreen/title_tileset_background.h
  27. 1
    1
      generated_image/titlescreen/title_tileset_latias_latios_deoxys.h
  28. 1
    1
      generated_image/titlescreen/title_tileset_logo_name.h
  29. 1
    1
      generated_image/titlescreen/title_tileset_press_start.h
  30. 1
    1
      sots-private
  31. 32
    3
      src/include/script_language.h

BIN
build/pkmn_sots_01.png View File


+ 1
- 1
generated_image/bootscreen/boot_tileset.h View File

9
 //	+ regular map (flat), lz77 compressed, 32x20 
9
 //	+ regular map (flat), lz77 compressed, 32x20 
10
 //	Total size: 32 + 672 + 412 = 1116
10
 //	Total size: 32 + 672 + 412 = 1116
11
 //
11
 //
12
-//	Time-stamp: 2017-08-29, 15:28:28
12
+//	Time-stamp: 2017-08-31, 14:41:54
13
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
14
 //	( http://www.coranac.com/projects/#grit )
14
 //	( http://www.coranac.com/projects/#grit )
15
 //
15
 //

+ 1
- 1
generated_image/char/bag/hero_bag.h View File

8
 //	+ 384 tiles lz77 compressed
8
 //	+ 384 tiles lz77 compressed
9
 //	Total size: 40 + 3564 = 3604
9
 //	Total size: 40 + 3564 = 3604
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:32
11
+//	Time-stamp: 2017-08-31, 14:41:57
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/char/bag/heroine_bag.h View File

8
 //	+ 384 tiles lz77 compressed
8
 //	+ 384 tiles lz77 compressed
9
 //	Total size: 40 + 4044 = 4084
9
 //	Total size: 40 + 4044 = 4084
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:32
11
+//	Time-stamp: 2017-08-31, 14:41:57
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/char/throw_out/hero_backsprite.h View File

8
 //	+ 320 tiles not compressed
8
 //	+ 320 tiles not compressed
9
 //	Total size: 40 + 10240 = 10280
9
 //	Total size: 40 + 10240 = 10280
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:32
11
+//	Time-stamp: 2017-08-31, 14:41:58
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/char/throw_out/heroine_backsprite.h View File

8
 //	+ 320 tiles not compressed
8
 //	+ 320 tiles not compressed
9
 //	Total size: 40 + 10240 = 10280
9
 //	Total size: 40 + 10240 = 10280
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:33
11
+//	Time-stamp: 2017-08-31, 14:41:58
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/cutscene_meteor/met_background.h View File

10
 //	+ regular map (flat), lz77 compressed, 32x20 
10
 //	+ regular map (flat), lz77 compressed, 32x20 
11
 //	Total size: 12 + 20 + 164 = 196
11
 //	Total size: 12 + 20 + 164 = 196
12
 //
12
 //
13
-//	Time-stamp: 2017-08-29, 15:28:30
13
+//	Time-stamp: 2017-08-31, 14:41:55
14
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
14
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
15
 //	( http://www.coranac.com/projects/#grit )
15
 //	( http://www.coranac.com/projects/#grit )
16
 //
16
 //

+ 1
- 1
generated_image/cutscene_meteor/met_clouds.h View File

9
 //	+ regular map (flat), lz77 compressed, 32x20 
9
 //	+ regular map (flat), lz77 compressed, 32x20 
10
 //	Total size: 28 + 448 + 256 = 732
10
 //	Total size: 28 + 448 + 256 = 732
11
 //
11
 //
12
-//	Time-stamp: 2017-08-29, 15:28:31
12
+//	Time-stamp: 2017-08-31, 14:41:56
13
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
14
 //	( http://www.coranac.com/projects/#grit )
14
 //	( http://www.coranac.com/projects/#grit )
15
 //
15
 //

+ 1
- 1
generated_image/cutscene_meteor/met_foreground.h View File

9
 //	+ regular map (flat), lz77 compressed, 32x20 
9
 //	+ regular map (flat), lz77 compressed, 32x20 
10
 //	Total size: 36 + 2356 + 464 = 2856
10
 //	Total size: 36 + 2356 + 464 = 2856
11
 //
11
 //
12
-//	Time-stamp: 2017-08-29, 15:28:30
12
+//	Time-stamp: 2017-08-31, 14:41:55
13
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
14
 //	( http://www.coranac.com/projects/#grit )
14
 //	( http://www.coranac.com/projects/#grit )
15
 //
15
 //

+ 1
- 1
generated_image/cutscene_meteor/met_foreground_red.h View File

8
 //	+ 640 tiles not compressed
8
 //	+ 640 tiles not compressed
9
 //	Total size: 512 + 40960 = 41472
9
 //	Total size: 512 + 40960 = 41472
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:30
11
+//	Time-stamp: 2017-08-31, 14:41:55
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/cutscene_meteor/met_meteor.h View File

8
 //	+ 48 tiles lz77 compressed
8
 //	+ 48 tiles lz77 compressed
9
 //	Total size: 32 + 1168 = 1200
9
 //	Total size: 32 + 1168 = 1200
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:31
11
+//	Time-stamp: 2017-08-31, 14:41:56
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/cutscene_meteor/met_sky.h View File

9
 //	+ regular map (flat), lz77 compressed, 32x20 
9
 //	+ regular map (flat), lz77 compressed, 32x20 
10
 //	Total size: 28 + 204 + 240 = 472
10
 //	Total size: 28 + 204 + 240 = 472
11
 //
11
 //
12
-//	Time-stamp: 2017-08-29, 15:28:31
12
+//	Time-stamp: 2017-08-31, 14:41:56
13
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
14
 //	( http://www.coranac.com/projects/#grit )
14
 //	( http://www.coranac.com/projects/#grit )
15
 //
15
 //

+ 1
- 1
generated_image/cutscene_meteor/met_sky_red.h View File

8
 //	+ 640 tiles not compressed
8
 //	+ 640 tiles not compressed
9
 //	Total size: 512 + 40960 = 41472
9
 //	Total size: 512 + 40960 = 41472
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:30
11
+//	Time-stamp: 2017-08-31, 14:41:55
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/emoticons/emot_arrows.h View File

7
 //	+ 24 tiles not compressed
7
 //	+ 24 tiles not compressed
8
 //	Total size: 768 = 768
8
 //	Total size: 768 = 768
9
 //
9
 //
10
-//	Time-stamp: 2017-08-29, 15:28:29
10
+//	Time-stamp: 2017-08-31, 14:41:54
11
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
11
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	( http://www.coranac.com/projects/#grit )
12
 //	( http://www.coranac.com/projects/#grit )
13
 //
13
 //

+ 1
- 1
generated_image/mugshots/mug_00.h View File

8
 //	+ 16 tiles lz77 compressed
8
 //	+ 16 tiles lz77 compressed
9
 //	Total size: 32 + 400 = 432
9
 //	Total size: 32 + 400 = 432
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:34
11
+//	Time-stamp: 2017-08-31, 14:41:59
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/mugshots/mug_01.h View File

8
 //	+ 16 tiles lz77 compressed
8
 //	+ 16 tiles lz77 compressed
9
 //	Total size: 32 + 428 = 460
9
 //	Total size: 32 + 428 = 460
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:35
11
+//	Time-stamp: 2017-08-31, 14:42:00
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/mugshots/mug_02.h View File

8
 //	+ 16 tiles lz77 compressed
8
 //	+ 16 tiles lz77 compressed
9
 //	Total size: 32 + 460 = 492
9
 //	Total size: 32 + 460 = 492
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:34
11
+//	Time-stamp: 2017-08-31, 14:41:59
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/mugshots/mug_03.h View File

8
 //	+ 16 tiles lz77 compressed
8
 //	+ 16 tiles lz77 compressed
9
 //	Total size: 32 + 512 = 544
9
 //	Total size: 32 + 512 = 544
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:33
11
+//	Time-stamp: 2017-08-31, 14:41:58
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/mugshots/mug_04.h View File

8
 //	+ 16 tiles lz77 compressed
8
 //	+ 16 tiles lz77 compressed
9
 //	Total size: 32 + 444 = 476
9
 //	Total size: 32 + 444 = 476
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:33
11
+//	Time-stamp: 2017-08-31, 14:41:59
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/mugshots/mug_05.h View File

8
 //	+ 16 tiles lz77 compressed
8
 //	+ 16 tiles lz77 compressed
9
 //	Total size: 32 + 492 = 524
9
 //	Total size: 32 + 492 = 524
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:35
11
+//	Time-stamp: 2017-08-31, 14:42:00
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/mugshots/mug_06.h View File

8
 //	+ 16 tiles lz77 compressed
8
 //	+ 16 tiles lz77 compressed
9
 //	Total size: 32 + 476 = 508
9
 //	Total size: 32 + 476 = 508
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:34
11
+//	Time-stamp: 2017-08-31, 14:41:59
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/mugshots/mug_07.h View File

8
 //	+ 16 tiles lz77 compressed
8
 //	+ 16 tiles lz77 compressed
9
 //	Total size: 32 + 484 = 516
9
 //	Total size: 32 + 484 = 516
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:33
11
+//	Time-stamp: 2017-08-31, 14:41:58
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/mugshots/mug_08.h View File

8
 //	+ 16 tiles lz77 compressed
8
 //	+ 16 tiles lz77 compressed
9
 //	Total size: 32 + 504 = 536
9
 //	Total size: 32 + 504 = 536
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:34
11
+//	Time-stamp: 2017-08-31, 14:41:59
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/mugshots/mug_09.h View File

8
 //	+ 16 tiles lz77 compressed
8
 //	+ 16 tiles lz77 compressed
9
 //	Total size: 32 + 468 = 500
9
 //	Total size: 32 + 468 = 500
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:34
11
+//	Time-stamp: 2017-08-31, 14:41:59
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/titlescreen/title_sprite_sky.h View File

8
 //	+ 40 tiles lz77 compressed
8
 //	+ 40 tiles lz77 compressed
9
 //	Total size: 32 + 780 = 812
9
 //	Total size: 32 + 780 = 812
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:32
11
+//	Time-stamp: 2017-08-31, 14:41:57
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/titlescreen/title_tileset_background.h View File

8
 //	+ regular map (flat), lz77 compressed, 32x20 
8
 //	+ regular map (flat), lz77 compressed, 32x20 
9
 //	Total size: 2456 + 736 = 3192
9
 //	Total size: 2456 + 736 = 3192
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:31
11
+//	Time-stamp: 2017-08-31, 14:41:56
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/titlescreen/title_tileset_latias_latios_deoxys.h View File

8
 //	+ regular map (flat), lz77 compressed, 32x20 
8
 //	+ regular map (flat), lz77 compressed, 32x20 
9
 //	Total size: 5656 + 784 = 6440
9
 //	Total size: 5656 + 784 = 6440
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:31
11
+//	Time-stamp: 2017-08-31, 14:41:57
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/titlescreen/title_tileset_logo_name.h View File

8
 //	+ regular map (flat), lz77 compressed, 32x20 
8
 //	+ regular map (flat), lz77 compressed, 32x20 
9
 //	Total size: 3616 + 500 = 4116
9
 //	Total size: 3616 + 500 = 4116
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:32
11
+//	Time-stamp: 2017-08-31, 14:41:57
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
generated_image/titlescreen/title_tileset_press_start.h View File

8
 //	+ regular map (flat), lz77 compressed, 32x20 
8
 //	+ regular map (flat), lz77 compressed, 32x20 
9
 //	Total size: 676 + 240 = 916
9
 //	Total size: 676 + 240 = 916
10
 //
10
 //
11
-//	Time-stamp: 2017-08-29, 15:28:31
11
+//	Time-stamp: 2017-08-31, 14:41:56
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
12
 //	Exported by Cearn's GBA Image Transmogrifier, v0.8.6
13
 //	( http://www.coranac.com/projects/#grit )
13
 //	( http://www.coranac.com/projects/#grit )
14
 //
14
 //

+ 1
- 1
sots-private

1
-Subproject commit dc898bdaa63d13e87dd158f54756b11135ac96e9
1
+Subproject commit 2e7288290d8843a9323c3cf7c1742809eb5b44ad

+ 32
- 3
src/include/script_language.h View File

32
 
32
 
33
 @@ Custom commands
33
 @@ Custom commands
34
 
34
 
35
+.macro lookbattle lookbattle_id:req lookbattle_before:req lookbattle_after:req
36
+trainerbattle 0x0 \lookbattle_id 0x0 \lookbattle_before \lookbattle_after
37
+.endm
38
+
39
+.macro gymbattle gymbattle_id:req gymbattle_before:req gymbattle_after:req
40
+trainerbattle 0x1 \gymbattle_id 0x0 \gymbattle_before \gymbattle_after \gymbattle_later
41
+.endm
42
+
43
+.macro betweenbattle betweenbattle_id:req betweenbattle_before:req betweenbattle_after:req betweenbattle_between:req
44
+trainerbattle 0x2 \betweenbattle_id 0x0 \betweenbattle_before \betweenbattle_after \betweenbattle_between
45
+.endm
46
+
47
+.macro scriptbattle scriptbattle_id:req scriptbattle_after:req
48
+trainerbattle 0x3 \scriptbattle_id 0x0 \scriptbattle_after
49
+.endm
50
+
51
+.macro doublebattle doublebattle_id:req doublebattle_before:req doublebattle_after:req doublebattle_onepoke:req
52
+trainerbattle 0x4 \doublebattle_id 0x0 \doublebattle_before \doublebattle_after \doublebattle_onepoke
53
+.endm
54
+
55
+.macro doublegymbattle doublegymbattle_id:req doublegymbattle_before:req doublegymbattle_after:req doublegymbattle_later:req doublegymbattle_onepoke:req
56
+trainerbattle 0x8 \doublegymbattle_id 0x0 \doublegymbattle_before \doublegymbattle_after \doublegymbattle_later \doublegymbattle_onepoke
57
+.endm
58
+
59
+.macro winlosebattle winlosebattle_id:req winlosebattle_win:req winlosebattle_lose:req
60
+trainerbattle 0x9 \winlosebattle_id 0x3 \winlosebattle_win \winlosebattle_lose
61
+.endm
62
+
35
 .macro msgbox msgbox_textpointer:req msgbox_callstd:req
63
 .macro msgbox msgbox_textpointer:req msgbox_callstd:req
36
 loadpointer 0x0 \msgbox_textpointer
64
 loadpointer 0x0 \msgbox_textpointer
37
 callstd \msgbox_callstd
65
 callstd \msgbox_callstd
62
 .endm
90
 .endm
63
 
91
 
64
 .macro mugmsgr mugmsgr_textpointer:req mugmsgr_callstd:req mugmsgr_sprite:req
92
 .macro mugmsgr mugmsgr_textpointer:req mugmsgr_callstd:req mugmsgr_sprite:req
65
-setvar MUGHSOT_1_TABLE \mugmsgr_sprite | 0x8000
93
+setvar MUGHSOT_1_TABLE \mugmsgr_sprite
66
 setvar MUGSHOT_1_X 0xD0
94
 setvar MUGSHOT_1_X 0xD0
67
 setvar MUGSHOT_1_Y 0x60
95
 setvar MUGSHOT_1_Y 0x60
68
 msgbox \mugmsgr_textpointer \mugmsgr_callstd
96
 msgbox \mugmsgr_textpointer \mugmsgr_callstd
70
 .endm
98
 .endm
71
 
99
 
72
 .macro mugmsgl mugmsgl_textpointer:req mugmsgl_callstd:req mugmsgl_sprite:req
100
 .macro mugmsgl mugmsgl_textpointer:req mugmsgl_callstd:req mugmsgl_sprite:req
73
-setvar MUGHSOT_1_TABLE \mugmsgl_sprite
101
+setvar MUGHSOT_1_TABLE \mugmsgl_sprite | 0x8000
74
 setvar MUGSHOT_1_X 0x16
102
 setvar MUGSHOT_1_X 0x16
75
 setvar MUGSHOT_1_Y 0x60
103
 setvar MUGSHOT_1_Y 0x60
76
 msgbox \mugmsgl_textpointer \mugmsgl_callstd
104
 msgbox \mugmsgl_textpointer \mugmsgl_callstd
497
 .byte \spriteface_facing
525
 .byte \spriteface_facing
498
 .endm
526
 .endm
499
 
527
 
500
-.macro trainerbattle trainerbattle_kind:req trainerbattle_id:req trainerbattle_value:req trainerbattle_before:req trainerbattle_after:req trainerbattle_later
528
+.macro trainerbattle trainerbattle_kind:req trainerbattle_id:req trainerbattle_value:req trainerbattle_before:req trainerbattle_after trainerbattle_later trainerbattle_onepoke
501
 .byte 0x5C
529
 .byte 0x5C
502
 .byte \trainerbattle_kind
530
 .byte \trainerbattle_kind
503
 .hword \trainerbattle_id
531
 .hword \trainerbattle_id
505
 .word \trainerbattle_before
533
 .word \trainerbattle_before
506
 .word \trainerbattle_after
534
 .word \trainerbattle_after
507
 .word \trainerbattle_later
535
 .word \trainerbattle_later
536
+.word \trainerbattle_onepoke
508
 .endm
537
 .endm
509
 
538
 
510
 .macro repeattrainerbattle
539
 .macro repeattrainerbattle