No Description

config.h 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #include "pkmn_types.h"
  2. #ifndef CONFIG_S_
  3. #define CONFIG_S_
  4. #define MAGIC_BOUNCE_FLAG 0x0203FFFD
  5. #define OBJ_1_TEMP 0x0203FFFE
  6. #define OBJ_2_TEMP 0x0203FFFF
  7. /*Variables regarding battle background loading*/
  8. #define NORMAL_VAR 0x4000
  9. #define SEA_VAR 0x4001
  10. /*Variables and Tags regarding mugshots*/
  11. #define MUGHSOT_1_TABLE 0x5000
  12. #define MUGSHOT_1_X 0x5001
  13. #define MUGSHOT_1_Y 0x5002
  14. #define MUGSHOT_1_TAG 0x1337
  15. #define MUGHSOT_2_TABLE 0x5003
  16. #define MUGSHOT_2_X 0x5004
  17. #define MUGSHOT_2_Y 0x5005
  18. #define MUGSHOT_2_TAG 0x1338
  19. /*Variable for special control*/
  20. #define CALLASM_VAR 0x5006
  21. /*Variables for camera control*/
  22. #define CAMERA_VAR_X 0x5007
  23. #define CAMERA_VAR_Y 0x5008
  24. /*Variables for walking script control*/
  25. #define WALK_SCRIPT_VAR 0x5009
  26. /*Variable for custom text*/
  27. #define TEXT_VAR 0x500C
  28. /*Variable for controlling evolutions*/
  29. #define EVO_VAR 0x500D
  30. /*Variables to control the music overrides*/
  31. #define VAR_FROM_1 0x51FA
  32. #define VAR_FROM_2 0x51FB
  33. #define VAR_FROM_3 0x51FC
  34. #define VAR_TO_1 0x51FD
  35. #define VAR_TO_2 0x51FE
  36. #define VAR_TO_3 0x51FF
  37. /*Flag to enable the music overrides*/
  38. #define FLAG_ENABLE_MUSIC_OVERRIDES 0x742
  39. /*Special music override values*/
  40. #define MUS_NO_OVERRIDE 0xFFFF
  41. #define MUS_SKIP_PLAY 0xFFFE
  42. /*Flag to deactivate transparent textboxes*/
  43. #define FLAG_ACTIVATE 0x900
  44. #define FLAG_WALK_SCRIPT 0x901
  45. /*Effect IDs controlling various in-battle item effects etc.*/
  46. #define ITEM_EFFECT_SMOOTH_ROCK 0x48
  47. #define ITEM_EFFECT_DAMP_ROCK 0x49
  48. #define ITEM_EFFECT_HEAT_ROCK 0x4A
  49. #define ITEM_EFFECT_ICY_ROCK 0x4B
  50. #define ITEM_EFFECT_FLAME_ORB 0x4C
  51. #define ITEM_EFFECT_TOXIC_ORB 0x4D
  52. #define ITEM_EFFECT_EXPERT_BELT 0x4E
  53. /*Battlescript command definitions (Do not edit unless changing the command table [bs_command_table.S])*/
  54. #define BS_ATTACKSTRING 0x02
  55. #define BS_PPREDUCE 0x03
  56. #define BS_ATTACKANIMATION 0x09
  57. #define BS_WAITANIMATION 0x0A
  58. #define BS_PRINTSTRING 0x10
  59. #define BS_WAITMESSAGE 0x12
  60. #define BS_JUMPIFSTATUS 0x1C
  61. #define BS_JUMPIFABILITY 0x1E
  62. #define BS_JUMPIFSTAT 0x20
  63. #define BS_JUMPIFWORD 0x2B
  64. #define BS_GOTO 0x28
  65. #define BS_JUMPIFARRAYNOTEQUAL 0x2D
  66. #define BS_SETBYTE 0x2E
  67. #define BS_ORWORD 0x35
  68. #define BS_PAUSE 0x39
  69. #define BS_WAITSTATE 0x3A
  70. #define BS_RETURN 0x3C
  71. #define BS_END3 0x3F
  72. #define BS_CALL 0x41
  73. #define BS_PLAYANIMATION 0x45
  74. #define BS_PLAYSTATANIM 0x48
  75. #define BS_SWITCH1 0x4C
  76. #define BS_SWITCH2 0x4D
  77. #define BS_SWITCH3 0x4E
  78. #define BS_NOP3 0x83
  79. #define BS_STATBUFFCHANGE 0x89
  80. #define BS_CASTFORMSWITCH 0xE7
  81. #define BS_CALLASM 0xF8
  82. #define BS_CURESTATUS 0xF9
  83. #define BS_SETWORD 0xFA
  84. /*For hacking the miracle eye command into set foresight*/
  85. /*Comment out the first define to deactivate the miracleeye injection in the command table*/
  86. /*Some move effect IDs important for correct implementation*/
  87. #define MOVE_EFFECT_SACRED_SWORD 0xFF
  88. #endif