summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlibjet <libj3t@gmail.com>2019-12-11 01:38:36 +0000
committerlibjet <libj3t@gmail.com>2019-12-11 01:38:36 +0000
commit93872e920e9c82e1299a7f674cba5b56397b359d (patch)
treead89e14c568a891b702b07e1b44ac25ab253ad73
parentcc8fc02a9467307f1494946fd08b4e57d4ffdac5 (diff)
Updated macros/scripts/text.asm and cleaned up macros.asm
-rw-r--r--charmap.asm (renamed from macros/charmap.asm)0
-rw-r--r--constants.asm3
-rw-r--r--constants/item_constants.asm587
-rwxr-xr-xconstants/mart_constants.asm44
-rwxr-xr-x[-rw-r--r--]data/text/battle.asm110
-rwxr-xr-x[-rw-r--r--]data/text/common_1.asm230
-rw-r--r--data/text/common_2.asm194
-rw-r--r--data/text/common_3.asm74
-rw-r--r--engine/billspctop.asm24
-rwxr-xr-xengine/color.asm4
-rwxr-xr-xengine/events/bug_contest/contest.asm10
-rw-r--r--engine/events/daycare.asm54
-rwxr-xr-xengine/events/happiness_egg.asm2
-rwxr-xr-xengine/events/misc_scripts.asm4
-rwxr-xr-xengine/events/misc_scripts_2.asm8
-rwxr-xr-xengine/events/overworld.asm96
-rwxr-xr-xengine/health.asm2
-rw-r--r--engine/learn.asm18
-rwxr-xr-xengine/main_menu.asm50
-rwxr-xr-xengine/move_mon.asm32
-rw-r--r--engine/namingscreen.asm12
-rwxr-xr-xengine/overworld/map_objects.asm14
-rwxr-xr-xengine/overworld/player_movement.asm2
-rwxr-xr-xengine/overworld/time.asm4
-rwxr-xr-xengine/pack.asm78
-rw-r--r--engine/sine.asm2
-rwxr-xr-xengine/specials.asm50
-rwxr-xr-xengine/step_types.asm2
-rwxr-xr-xengine/title.asm12
-rw-r--r--home.asm6
-rw-r--r--home/battle.asm4
-rw-r--r--home/copy.asm8
-rw-r--r--home/flag.asm2
-rw-r--r--home/init.asm4
-rw-r--r--home/item.asm4
-rw-r--r--home/joypad.asm4
-rw-r--r--home/map.asm62
-rw-r--r--home/map_objects.asm14
-rw-r--r--home/math.asm2
-rw-r--r--home/rtc.asm4
-rw-r--r--home/serial.asm4
-rw-r--r--home/text.asm24
-rw-r--r--home/tilemap.asm10
-rw-r--r--home/time.asm4
-rw-r--r--home/window.asm2
-rwxr-xr-xitems/item_effects.asm158
-rw-r--r--macros.asm273
-rw-r--r--macros/basestats.asm30
-rwxr-xr-xmacros/coords.asm52
-rwxr-xr-xmacros/data.asm126
-rwxr-xr-x[-rw-r--r--]macros/enum.asm22
-rwxr-xr-xmacros/gfx.asm24
-rwxr-xr-xmacros/legacy.asm244
-rwxr-xr-x[-rw-r--r--]macros/rst.asm16
-rwxr-xr-xmacros/scripts/gfx_anims.asm53
-rw-r--r--macros/scripts/movement.asm (renamed from macros/movement.asm)0
-rwxr-xr-xmacros/scripts/text.asm145
-rwxr-xr-xmacros/scripts/trade_anims.asm (renamed from macros/trade_anim.asm)0
-rw-r--r--macros/text.asm143
-rw-r--r--main.asm14
-rw-r--r--maps/BillsHouse.asm2
-rw-r--r--maps/BluesHouse.asm2
-rw-r--r--maps/CeladonCafe.asm2
-rw-r--r--maps/CeladonDeptStore6F.asm2
-rw-r--r--maps/CeladonGameCornerPrizeRoom.asm2
-rw-r--r--maps/DragonsDenB1F.asm2
-rw-r--r--maps/ElmsLab.asm2
-rw-r--r--maps/GoldenrodDeptStore6F.asm2
-rw-r--r--maps/GoldenrodGameCorner.asm2
-rw-r--r--maps/GoldenrodHappinessRater.asm2
-rw-r--r--maps/GoldenrodUnderground.asm6
-rw-r--r--maps/LakeOfRageMagikarpHouse.asm4
-rw-r--r--maps/Pokecenter2F.asm8
-rw-r--r--maps/RadioTower1F.asm2
-rw-r--r--maps/Route35NationalParkGate.asm6
-rw-r--r--maps/Route36NationalParkGate.asm6
-rw-r--r--maps/TrainerHouseB1F.asm2
77 files changed, 1749 insertions, 1485 deletions
diff --git a/macros/charmap.asm b/charmap.asm
index 2f0b813b..2f0b813b 100644
--- a/macros/charmap.asm
+++ b/charmap.asm
diff --git a/constants.asm b/constants.asm
index d42cbbe4..c4a2a8ba 100644
--- a/constants.asm
+++ b/constants.asm
@@ -1,3 +1,5 @@
+INCLUDE "charmap.asm"
+
INCLUDE "macros.asm"
INCLUDE "gbhw.asm"
@@ -43,6 +45,7 @@ INCLUDE "constants/map_data_constants.asm"
INCLUDE "constants/input_constants.asm"
INCLUDE "constants/sprite_data_constants.asm"
INCLUDE "constants/serial_constants.asm"
+INCLUDE "constants/mart_constants.asm"
INCLUDE "constants/menu_constants.asm"
INCLUDE "constants/scene_constants.asm"
INCLUDE "constants/npc_trade_constants.asm" \ No newline at end of file
diff --git a/constants/item_constants.asm b/constants/item_constants.asm
index 68220ea0..0f348047 100644
--- a/constants/item_constants.asm
+++ b/constants/item_constants.asm
@@ -5,311 +5,296 @@
; - ItemAttributes (see data/items/attributes.asm)
; - ItemEffects (see engine/items/item_effects.asm)
const_def
- const NO_ITEM ; $00
- const MASTER_BALL ; $01
- const ULTRA_BALL ; $02
- const BRIGHTPOWDER ; $03
- const GREAT_BALL ; $04
- const POKE_BALL ; $05
- const TOWN_MAP ; $06
- const BICYCLE ; $07
- const MOON_STONE ; $08
- const ANTIDOTE ; $09
- const BURN_HEAL ; $0A
- const ICE_HEAL ; $0B
- const AWAKENING ; $0C
- const PARLYZ_HEAL ; $0D
- const FULL_RESTORE ; $0E
- const MAX_POTION ; $0F
- const HYPER_POTION ; $10
- const SUPER_POTION ; $11
- const POTION ; $12
- const ESCAPE_ROPE ; $13
- const REPEL ; $14
- const MAX_ELIXER ; $15
- const FIRE_STONE ; $16
- const THUNDERSTONE ; $17
- const WATER_STONE ; $18
- const ITEM_19 ; $19
- const HP_UP ; $1A
- const PROTEIN ; $1B
- const IRON ; $1C
- const CARBOS ; $1D
- const LUCKY_PUNCH ; $1E
- const CALCIUM ; $1F
- const RARE_CANDY ; $20
- const X_ACCURACY ; $21
- const LEAF_STONE ; $22
- const METAL_POWDER ; $23
- const NUGGET ; $24
- const POKE_DOLL ; $25
- const FULL_HEAL ; $26
- const REVIVE ; $27
- const MAX_REVIVE ; $28
- const GUARD_SPEC ; $29
- const SUPER_REPEL ; $2A
- const MAX_REPEL ; $2B
- const DIRE_HIT ; $2C
- const ITEM_2D ; $2D
- const FRESH_WATER ; $2E
- const SODA_POP ; $2F
- const LEMONADE ; $30
- const X_ATTACK ; $31
- const ITEM_32 ; $32
- const X_DEFEND ; $33
- const X_SPEED ; $34
- const X_SPECIAL ; $35
- const COIN_CASE ; $36
- const ITEMFINDER ; $37
- const POKE_FLUTE ; $38
- const EXP_SHARE ; $39
- const OLD_ROD ; $3A
- const GOOD_ROD ; $3B
- const SILVER_LEAF ; $3C
- const SUPER_ROD ; $3D
- const PP_UP ; $3E
- const ETHER ; $3F
- const MAX_ETHER ; $40
- const ELIXER ; $41
- const RED_SCALE ; $42
- const SECRETPOTION ; $43
- const S_S_TICKET ; $44
- const MYSTERY_EGG ; $45
- const ITEM_46 ; $46
- const SILVER_WING ; $47
- const MOOMOO_MILK ; $48
- const QUICK_CLAW ; $49
- const PSNCUREBERRY ; $4A
- const GOLD_LEAF ; $4B
- const SOFT_SAND ; $4C
- const SHARP_BEAK ; $4D
- const PRZCUREBERRY ; $4E
- const BURNT_BERRY ; $4F
- const ICE_BERRY ; $50
- const POISON_BARB ; $51
- const KINGS_ROCK ; $52
- const BITTER_BERRY ; $53
- const MINT_BERRY ; $54
- const RED_APRICORN ; $55
- const TINYMUSHROOM ; $56
- const BIG_MUSHROOM ; $57
- const SILVERPOWDER ; $58
- const BLU_APRICORN ; $59
- const ITEM_5A ; $5A
- const AMULET_COIN ; $5B
- const YLW_APRICORN ; $5C
- const GRN_APRICORN ; $5D
- const CLEANSE_TAG ; $5E
- const MYSTIC_WATER ; $5F
- const TWISTEDSPOON ; $60
- const WHT_APRICORN ; $61
- const BLACKBELT ; $62
- const BLK_APRICORN ; $63
- const ITEM_64 ; $64
- const PNK_APRICORN ; $65
- const BLACKGLASSES ; $66
- const SLOWPOKETAIL ; $67
- const PINK_BOW ; $68
- const STICK ; $69
- const SMOKE_BALL ; $6A
- const NEVERMELTICE ; $6B
- const MAGNET ; $6C
- const MIRACLEBERRY ; $6D
- const PEARL ; $6E
- const BIG_PEARL ; $6F
- const EVERSTONE ; $70
- const SPELL_TAG ; $71
- const RAGECANDYBAR ; $72
- const ITEM_73 ; $73
- const ITEM_74 ; $74
- const MIRACLE_SEED ; $75
- const THICK_CLUB ; $76
- const FOCUS_BAND ; $77
- const ITEM_78 ; $78
- const ENERGYPOWDER ; $79
- const ENERGY_ROOT ; $7A
- const HEAL_POWDER ; $7B
- const REVIVAL_HERB ; $7C
- const HARD_STONE ; $7D
- const LUCKY_EGG ; $7E
- const CARD_KEY ; $7F
- const MACHINE_PART ; $80
- const ITEM_81 ; $81
- const LOST_ITEM ; $82
- const STARDUST ; $83
- const STAR_PIECE ; $84
- const BASEMENT_KEY ; $85
- const PASS ; $86
- const ITEM_87 ; $87
- const ITEM_88 ; $88
- const ITEM_89 ; $89
- const CHARCOAL ; $8A
- const BERRY_JUICE ; $8B
- const SCOPE_LENS ; $8C
- const ITEM_8D ; $8D
- const ITEM_8E ; $8E
- const METAL_COAT ; $8F
- const DRAGON_FANG ; $90
- const ITEM_91 ; $91
- const LEFTOVERS ; $92
- const ITEM_93 ; $93
- const ITEM_94 ; $94
- const ITEM_95 ; $95
- const MYSTERYBERRY ; $96
- const DRAGON_SCALE ; $97
- const BERSERK_GENE ; $98
- const ITEM_99 ; $99
- const ITEM_9A ; $9A
- const ITEM_9B ; $9B
- const SACRED_ASH ; $9C
- const HEAVY_BALL ; $9D
- const FLOWER_MAIL ; $9E
- const LEVEL_BALL ; $9F
- const LURE_BALL ; $A0
- const FAST_BALL ; $A1
- const ITEM_A2 ; $A2
- const LIGHT_BALL ; $A3
- const FRIEND_BALL ; $A4
- const MOON_BALL ; $A5
- const LOVE_BALL ; $A6
- const NORMAL_BOX ; $A7
- const GORGEOUS_BOX ; $A8
- const SUN_STONE ; $A9
- const POLKADOT_BOW ; $AA
- const ITEM_AB ; $AB
- const UP_GRADE ; $AC
- const BERRY ; $AD
- const GOLD_BERRY ; $AE
- const SQUIRTBOTTLE ; $AF
- const ITEM_B0 ; $B0
- const PARK_BALL ; $B1
- const RAINBOW_WING ; $B2
- const ITEM_B3 ; $B3
- const BRICK_PIECE ; $B4
- const SURF_MAIL ; $B5
- const LITEBLUEMAIL ; $B6
- const PORTRAITMAIL ; $B7
- const LOVELY_MAIL ; $B8
- const EON_MAIL ; $B9
- const MORPH_MAIL ; $BA
- const BLUESKY_MAIL ; $BB
- const MUSIC_MAIL ; $BC
- const MIRAGE_MAIL ; $BD
- const ITEM_BE ; $BE
+ const NO_ITEM ; 00
+ const MASTER_BALL ; 01
+ const ULTRA_BALL ; 02
+ const BRIGHTPOWDER ; 03
+ const GREAT_BALL ; 04
+ const POKE_BALL ; 05
+ const TOWN_MAP ; 06
+ const BICYCLE ; 07
+ const MOON_STONE ; 08
+ const ANTIDOTE ; 09
+ const BURN_HEAL ; 0a
+ const ICE_HEAL ; 0b
+ const AWAKENING ; 0c
+ const PARLYZ_HEAL ; 0d
+ const FULL_RESTORE ; 0e
+ const MAX_POTION ; 0f
+ const HYPER_POTION ; 10
+ const SUPER_POTION ; 11
+ const POTION ; 12
+ const ESCAPE_ROPE ; 13
+ const REPEL ; 14
+ const MAX_ELIXER ; 15
+ const FIRE_STONE ; 16
+ const THUNDERSTONE ; 17
+ const WATER_STONE ; 18
+ const ITEM_19 ; 19
+ const HP_UP ; 1a
+ const PROTEIN ; 1b
+ const IRON ; 1c
+ const CARBOS ; 1d
+ const LUCKY_PUNCH ; 1e
+ const CALCIUM ; 1f
+ const RARE_CANDY ; 20
+ const X_ACCURACY ; 21
+ const LEAF_STONE ; 22
+ const METAL_POWDER ; 23
+ const NUGGET ; 24
+ const POKE_DOLL ; 25
+ const FULL_HEAL ; 26
+ const REVIVE ; 27
+ const MAX_REVIVE ; 28
+ const GUARD_SPEC ; 29
+ const SUPER_REPEL ; 2a
+ const MAX_REPEL ; 2b
+ const DIRE_HIT ; 2c
+ const ITEM_2D ; 2d
+ const FRESH_WATER ; 2e
+ const SODA_POP ; 2f
+ const LEMONADE ; 30
+ const X_ATTACK ; 31
+ const ITEM_32 ; 32
+ const X_DEFEND ; 33
+ const X_SPEED ; 34
+ const X_SPECIAL ; 35
+ const COIN_CASE ; 36
+ const ITEMFINDER ; 37
+ const POKE_FLUTE ; 38
+ const EXP_SHARE ; 39
+ const OLD_ROD ; 3a
+ const GOOD_ROD ; 3b
+ const SILVER_LEAF ; 3c
+ const SUPER_ROD ; 3d
+ const PP_UP ; 3e
+ const ETHER ; 3f
+ const MAX_ETHER ; 40
+ const ELIXER ; 41
+ const RED_SCALE ; 42
+ const SECRETPOTION ; 43
+ const S_S_TICKET ; 44
+ const MYSTERY_EGG ; 45
+ const CLEAR_BELL ; 46
+ const SILVER_WING ; 47
+ const MOOMOO_MILK ; 48
+ const QUICK_CLAW ; 49
+ const PSNCUREBERRY ; 4a
+ const GOLD_LEAF ; 4b
+ const SOFT_SAND ; 4c
+ const SHARP_BEAK ; 4d
+ const PRZCUREBERRY ; 4e
+ const BURNT_BERRY ; 4f
+ const ICE_BERRY ; 50
+ const POISON_BARB ; 51
+ const KINGS_ROCK ; 52
+ const BITTER_BERRY ; 53
+ const MINT_BERRY ; 54
+ const RED_APRICORN ; 55
+ const TINYMUSHROOM ; 56
+ const BIG_MUSHROOM ; 57
+ const SILVERPOWDER ; 58
+ const BLU_APRICORN ; 59
+ const ITEM_5A ; 5a
+ const AMULET_COIN ; 5b
+ const YLW_APRICORN ; 5c
+ const GRN_APRICORN ; 5d
+ const CLEANSE_TAG ; 5e
+ const MYSTIC_WATER ; 5f
+ const TWISTEDSPOON ; 60
+ const WHT_APRICORN ; 61
+ const BLACKBELT ; 62
+ const BLK_APRICORN ; 63
+ const ITEM_64 ; 64
+ const PNK_APRICORN ; 65
+ const BLACKGLASSES ; 66
+ const SLOWPOKETAIL ; 67
+ const PINK_BOW ; 68
+ const STICK ; 69
+ const SMOKE_BALL ; 6a
+ const NEVERMELTICE ; 6b
+ const MAGNET ; 6c
+ const MIRACLEBERRY ; 6d
+ const PEARL ; 6e
+ const BIG_PEARL ; 6f
+ const EVERSTONE ; 70
+ const SPELL_TAG ; 71
+ const RAGECANDYBAR ; 72
+ const GS_BALL ; 73
+ const BLUE_CARD ; 74
+ const MIRACLE_SEED ; 75
+ const THICK_CLUB ; 76
+ const FOCUS_BAND ; 77
+ const ITEM_78 ; 78
+ const ENERGYPOWDER ; 79
+ const ENERGY_ROOT ; 7a
+ const HEAL_POWDER ; 7b
+ const REVIVAL_HERB ; 7c
+ const HARD_STONE ; 7d
+ const LUCKY_EGG ; 7e
+ const CARD_KEY ; 7f
+ const MACHINE_PART ; 80
+ const EGG_TICKET ; 81
+ const LOST_ITEM ; 82
+ const STARDUST ; 83
+ const STAR_PIECE ; 84
+ const BASEMENT_KEY ; 85
+ const PASS ; 86
+ const ITEM_87 ; 87
+ const ITEM_88 ; 88
+ const ITEM_89 ; 89
+ const CHARCOAL ; 8a
+ const BERRY_JUICE ; 8b
+ const SCOPE_LENS ; 8c
+ const ITEM_8D ; 8d
+ const ITEM_8E ; 8e
+ const METAL_COAT ; 8f
+ const DRAGON_FANG ; 90
+ const ITEM_91 ; 91
+ const LEFTOVERS ; 92
+ const ITEM_93 ; 93
+ const ITEM_94 ; 94
+ const ITEM_95 ; 95
+ const MYSTERYBERRY ; 96
+ const DRAGON_SCALE ; 97
+ const BERSERK_GENE ; 98
+ const ITEM_99 ; 99
+ const ITEM_9A ; 9a
+ const ITEM_9B ; 9b
+ const SACRED_ASH ; 9c
+ const HEAVY_BALL ; 9d
+ const FLOWER_MAIL ; 9e
+ const LEVEL_BALL ; 9f
+ const LURE_BALL ; a0
+ const FAST_BALL ; a1
+ const ITEM_A2 ; a2
+ const LIGHT_BALL ; a3
+ const FRIEND_BALL ; a4
+ const MOON_BALL ; a5
+ const LOVE_BALL ; a6
+ const NORMAL_BOX ; a7
+ const GORGEOUS_BOX ; a8
+ const SUN_STONE ; a9
+ const POLKADOT_BOW ; aa
+ const ITEM_AB ; ab
+ const UP_GRADE ; ac
+ const BERRY ; ad
+ const GOLD_BERRY ; ae
+ const SQUIRTBOTTLE ; af
+ const ITEM_B0 ; b0
+ const PARK_BALL ; b1
+ const RAINBOW_WING ; b2
+ const ITEM_B3 ; b3
+ const BRICK_PIECE ; b4
+ const SURF_MAIL ; b5
+ const LITEBLUEMAIL ; b6
+ const PORTRAITMAIL ; b7
+ const LOVELY_MAIL ; b8
+ const EON_MAIL ; b9
+ const MORPH_MAIL ; ba
+ const BLUESKY_MAIL ; bb
+ const MUSIC_MAIL ; bc
+ const MIRAGE_MAIL ; bd
+ const ITEM_BE ; be
- add_tm DYNAMICPUNCH ; $BF
- add_tm HEADBUTT ; $C0
- add_tm CURSE ; $C1
- add_tm ROLLOUT ; $C2
- const ITEM_C3 ; $C3
- add_tm ROAR ; $C4
- add_tm TOXIC ; $C5
- add_tm ZAP_CANNON ; $C6
- add_tm ROCK_SMASH ; $C7
- add_tm PSYCH_UP ; $C8
- add_tm HIDDEN_POWER ; $C9
- add_tm SUNNY_DAY ; $CA
- add_tm SWEET_SCENT ; $CB
- add_tm SNORE ; $CC
- add_tm BLIZZARD ; $CD
- add_tm HYPER_BEAM ; $CE
- add_tm ICY_WIND ; $CF
- add_tm PROTECT ; $D0
- add_tm RAIN_DANCE ; $D1
- add_tm GIGA_DRAIN ; $D2
- add_tm ENDURE ; $D3
- add_tm FRUSTRATION ; $D4
- add_tm SOLARBEAM ; $D5
- add_tm IRON_TAIL ; $D6
- add_tm DRAGONBREATH ; $D7
- add_tm THUNDER ; $D8
- add_tm EARTHQUAKE ; $D9
- add_tm RETURN ; $DA
- add_tm DIG ; $DB
- const ITEM_DC ; $DC
- add_tm PSYCHIC_M ; $DD
- add_tm SHADOW_BALL ; $DE
- add_tm MUD_SLAP ; $DF
- add_tm DOUBLE_TEAM ; $E0
- add_tm ICE_PUNCH ; $E1
- add_tm SWAGGER ; $E2
- add_tm SLEEP_TALK ; $E3
- add_tm SLUDGE_BOMB ; $E4
- add_tm SANDSTORM ; $E5
- add_tm FIRE_BLAST ; $E6
- add_tm SWIFT ; $E7
- add_tm DEFENSE_CURL ; $E8
- add_tm THUNDERPUNCH ; $E9
- add_tm DREAM_EATER ; $EA
- add_tm DETECT ; $EB
- add_tm REST ; $EC
- add_tm ATTRACT ; $ED
- add_tm THIEF ; $EE
- add_tm STEEL_WING ; $EF
- add_tm FIRE_PUNCH ; $F0
- add_tm FURY_CUTTER ; $F1
- add_tm NIGHTMARE ; $F2
-NUM_TMS = const_value - TM01 - 2
+add_tm: MACRO
+if !DEF(TM01)
+TM01 EQU const_value
+ enum_start 1
+endc
+ define _\@_1, "TM_\1"
+ const _\@_1
+ enum \1_TMNUM
+ENDM
- add_hm CUT ; $F3
- add_hm FLY ; $F4
- add_hm SURF ; $F5
- add_hm STRENGTH ; $F6
- add_hm FLASH ; $F7
- add_hm WHIRLPOOL ; $F8
- add_hm WATERFALL ; $F9
-NUM_HMS = const_value - HM01
- const HM_08 ; $FA
+; see data/moves/tmhm_moves.asm for moves
+ add_tm DYNAMICPUNCH ; bf
+ add_tm HEADBUTT ; c0
+ add_tm CURSE ; c1
+ add_tm ROLLOUT ; c2
+ const ITEM_C3 ; c3
+ add_tm ROAR ; c4
+ add_tm TOXIC ; c5
+ add_tm ZAP_CANNON ; c6
+ add_tm ROCK_SMASH ; c7
+ add_tm PSYCH_UP ; c8
+ add_tm HIDDEN_POWER ; c9
+ add_tm SUNNY_DAY ; ca
+ add_tm SWEET_SCENT ; cb
+ add_tm SNORE ; cc
+ add_tm BLIZZARD ; cd
+ add_tm HYPER_BEAM ; ce
+ add_tm ICY_WIND ; cf
+ add_tm PROTECT ; d0
+ add_tm RAIN_DANCE ; d1
+ add_tm GIGA_DRAIN ; d2
+ add_tm ENDURE ; d3
+ add_tm FRUSTRATION ; d4
+ add_tm SOLARBEAM ; d5
+ add_tm IRON_TAIL ; d6
+ add_tm DRAGONBREATH ; d7
+ add_tm THUNDER ; d8
+ add_tm EARTHQUAKE ; d9
+ add_tm RETURN ; da
+ add_tm DIG ; db
+ const ITEM_DC ; dc
+ add_tm PSYCHIC_M ; dd
+ add_tm SHADOW_BALL ; de
+ add_tm MUD_SLAP ; df
+ add_tm DOUBLE_TEAM ; e0
+ add_tm ICE_PUNCH ; e1
+ add_tm SWAGGER ; e2
+ add_tm SLEEP_TALK ; e3
+ add_tm SLUDGE_BOMB ; e4
+ add_tm SANDSTORM ; e5
+ add_tm FIRE_BLAST ; e6
+ add_tm SWIFT ; e7
+ add_tm DEFENSE_CURL ; e8
+ add_tm THUNDERPUNCH ; e9
+ add_tm DREAM_EATER ; ea
+ add_tm DETECT ; eb
+ add_tm REST ; ec
+ add_tm ATTRACT ; ed
+ add_tm THIEF ; ee
+ add_tm STEEL_WING ; ef
+ add_tm FIRE_PUNCH ; f0
+ add_tm FURY_CUTTER ; f1
+ add_tm NIGHTMARE ; f2
+NUM_TMS EQU const_value - TM01 - 2 ; discount ITEM_C3 and ITEM_DC
-USE_SCRIPT_VAR EQU $00
-ITEM_FROM_MEM EQU $ff
+add_hm: MACRO
+if !DEF(HM01)
+HM01 EQU const_value
+endc
+ define _\@_1, "HM_\1"
+ const _\@_1
+ enum \1_TMNUM
+ENDM
+ add_hm CUT ; f3
+ add_hm FLY ; f4
+ add_hm SURF ; f5
+ add_hm STRENGTH ; f6
+ add_hm FLASH ; f7
+ add_hm WHIRLPOOL ; f8
+ add_hm WATERFALL ; f9
+NUM_HMS EQU const_value - HM01
-; leftovers from red
-SAFARI_BALL EQU 8 ; MOON_STONE
-MOON_STONE_RED EQU 10 ; BURN_HEAL
-FULL_HEAL_RED EQU 52 ; X_SPEED
-MAIL_MAX_LENGTH EQU $20
+add_mt: MACRO
+ enum \1_TMNUM
+ENDM
- const_def
- const MARTTYPE_STANDARD
- const MARTTYPE_BITTER
- const MARTTYPE_BARGAIN
- const MARTTYPE_PHARMACY
- const MARTTYPE_ROOFTOP
+ add_mt FLAMETHROWER
+ add_mt THUNDERBOLT
+ add_mt ICE_BEAM
+NUM_TM_HM_TUTOR EQU __enum__ + -1
- const_def
- const MART_CHERRYGROVE
- const MART_CHERRYGROVE_DEX
- const MART_VIOLET
- const MART_AZALEA
- const MART_CIANWOOD
- const MART_GOLDENROD_2F_1
- const MART_GOLDENROD_2F_2
- const MART_GOLDENROD_3F
- const MART_GOLDENROD_4F
- const MART_GOLDENROD_5F_1
- const MART_GOLDENROD_5F_2
- const MART_GOLDENROD_5F_3
- const MART_GOLDENROD_5F_4
- const MART_OLIVINE
- const MART_ECRUTEAK
- const MART_MAHOGANY_1
- const MART_MAHOGANY_2
- const MART_BLACKTHORN
- const MART_VIRIDIAN
- const MART_PEWTER
- const MART_CERULEAN
- const MART_LAVENDER
- const MART_VERMILION
- const MART_CELADON_2F_1
- const MART_CELADON_2F_2
- const MART_CELADON_3F
- const MART_CELADON_4F
- const MART_CELADON_5F_1
- const MART_CELADON_5F_2
- const MART_FUCHSIA
- const MART_SAFFRON
- const MART_MT_MOON
- const MART_INDIGO_PLATEAU
- const MART_UNDERGROUND \ No newline at end of file
+ const ITEM_FA ; fa
+
+USE_SCRIPT_VAR EQU $00
+ITEM_FROM_MEM EQU $ff
+
+; leftovers from red
+SAFARI_BALL EQU $08 ; MOON_STONE
+MOON_STONE_RED EQU $0a ; BURN_HEAL
+FULL_HEAL_RED EQU $34 ; X_SPEED \ No newline at end of file
diff --git a/constants/mart_constants.asm b/constants/mart_constants.asm
new file mode 100755
index 00000000..c4834f52
--- /dev/null
+++ b/constants/mart_constants.asm
@@ -0,0 +1,44 @@
+; mart types (see engine/items/mart.asm)
+ const_def
+ const MARTTYPE_STANDARD
+ const MARTTYPE_BITTER
+ const MARTTYPE_BARGAIN
+ const MARTTYPE_PHARMACY
+ const MARTTYPE_ROOFTOP
+
+; Marts indexes (see data/items/marts.asm)
+ const_def
+ const MART_CHERRYGROVE
+ const MART_CHERRYGROVE_DEX
+ const MART_VIOLET
+ const MART_AZALEA
+ const MART_CIANWOOD
+ const MART_GOLDENROD_2F_1
+ const MART_GOLDENROD_2F_2
+ const MART_GOLDENROD_3F
+ const MART_GOLDENROD_4F
+ const MART_GOLDENROD_5F_1
+ const MART_GOLDENROD_5F_2
+ const MART_GOLDENROD_5F_3
+ const MART_GOLDENROD_5F_4
+ const MART_OLIVINE
+ const MART_ECRUTEAK
+ const MART_MAHOGANY_1
+ const MART_MAHOGANY_2
+ const MART_BLACKTHORN
+ const MART_VIRIDIAN
+ const MART_PEWTER
+ const MART_CERULEAN
+ const MART_LAVENDER
+ const MART_VERMILION
+ const MART_CELADON_2F_1
+ const MART_CELADON_2F_2
+ const MART_CELADON_3F
+ const MART_CELADON_4F
+ const MART_CELADON_5F_1
+ const MART_CELADON_5F_2
+ const MART_FUCHSIA
+ const MART_SAFFRON
+ const MART_MT_MOON
+ const MART_INDIGO_PLATEAU
+ const MART_UNDERGROUND
diff --git a/data/text/battle.asm b/data/text/battle.asm
index 0f21e800..a222cac5 100644..100755
--- a/data/text/battle.asm
+++ b/data/text/battle.asm
@@ -3,13 +3,13 @@ BattleText:: ; used only for BANK(BattleText)
BattleText_PlayerPickedUpPayDayMoney:
text "<PLAYER> picked up"
line "¥@"
- deciram wPayDayMoney, 3, 6
+ text_decimal wPayDayMoney, 3, 6
text "!"
prompt
WildPokemonAppearedText:
text "Wild @"
- text_from_ram wEnemyMonNick
+ text_ram wEnemyMonNick
text_start
line "appeared!"
prompt
@@ -17,13 +17,13 @@ WildPokemonAppearedText:
HookedPokemonAttackedText:
text "The hooked"
line "@"
- text_from_ram wEnemyMonNick
+ text_ram wEnemyMonNick
text_start
cont "attacked!"
prompt
PokemonFellFromTreeText:
- text_from_ram wEnemyMonNick
+ text_ram wEnemyMonNick
text " fell"
line "out of the tree!"
prompt
@@ -35,14 +35,14 @@ WantsToBattleText::
BattleText_WildFled:
text "Wild @"
- text_from_ram wEnemyMonNick
+ text_ram wEnemyMonNick
text_start
line "fled!"
prompt
BattleText_EnemyFled:
text "Enemy @"
- text_from_ram wEnemyMonNick
+ text_ram wEnemyMonNick
text_start
line "fled!"
prompt
@@ -80,7 +80,7 @@ SandstormHitsText:
PerishCountText:
text "<USER>'s"
line "PERISH count is @"
- deciram wDeciramBuffer, 1, 1
+ text_decimal wDeciramBuffer, 1, 1
text "!"
prompt
@@ -88,7 +88,7 @@ BattleText_TargetRecoveredWithItem:
text "<TARGET>"
line "recovered with"
cont "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
prompt
@@ -96,7 +96,7 @@ BattleText_UserRecoveredPPUsing:
text "<USER>"
line "recovered PP using"
cont "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
prompt
@@ -112,13 +112,13 @@ BattleText_SafeguardFaded:
prompt
BattleText_MonsLightScreenFell:
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " #MON's"
line "LIGHT SCREEN fell!"
prompt
BattleText_MonsReflectFaded:
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " #MON's"
line "REFLECT faded!"
prompt
@@ -154,14 +154,14 @@ BattleText_TheSandstormSubsided:
BattleText_EnemyMonFainted:
text "Enemy @"
- text_from_ram wEnemyMonNick
+ text_ram wEnemyMonNick
text_start
line "fainted!"
prompt
GotMoneyForWinningText:
text "<PLAYER> got ¥@"
- deciram wBattleReward, 3, 6
+ text_decimal wBattleReward, 3, 6
text_start
line "for winning!"
prompt
@@ -178,7 +178,7 @@ TiedAgainstText:
SentSomeToMomText:
text "<PLAYER> got ¥@"
- deciram wBattleReward, 3, 6
+ text_decimal wBattleReward, 3, 6
text_start
line "for winning!"
cont "Sent some to MOM!"
@@ -199,7 +199,7 @@ BattleText_0x80a4f:
prompt
BattleText_MonFainted:
- text_from_ram wBattleMonNick
+ text_ram wBattleMonNick
text_start
line "fainted!"
prompt
@@ -223,7 +223,7 @@ BattleText_EnemyIsAboutToUseWillPlayerChangeMon:
text "<ENEMY>"
line "is about to use"
cont "@"
- text_from_ram wEnemyMonNick
+ text_ram wEnemyMonNick
text "."
para "Will <PLAYER>"
@@ -234,7 +234,7 @@ BattleText_EnemySentOut:
text "<ENEMY>"
line "sent out"
cont "@"
- text_from_ram wEnemyMonNick
+ text_ram wEnemyMonNick
text "!"
done
@@ -266,7 +266,7 @@ BattleText_UserFledUsingAStringBuffer1:
text "<USER>"
line "fled using a"
cont "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!"
prompt
@@ -283,14 +283,14 @@ RecoveredUsingText:
text "<TARGET>"
line "recovered using a"
cont "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!"
prompt
BattleText_UsersStringBuffer1Activated:
text "<USER>'s"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text_start
cont "activated!"
prompt
@@ -301,13 +301,13 @@ BattleText_ItemsCantBeUsedHere:
prompt
BattleText_MonIsAlreadyOut:
- text_from_ram wBattleMonNick
+ text_ram wBattleMonNick
text_start
line "is already out."
prompt
BattleText_MonCantBeRecalled:
- text_from_ram wBattleMonNick
+ text_ram wBattleMonNick
text_start
line "can't be recalled!"
prompt
@@ -323,7 +323,7 @@ BattleText_TheMoveIsDisabled:
prompt
BattleText_MonHasNoMovesLeft:
- text_from_ram wBattleMonNick
+ text_ram wBattleMonNick
text_start
line "has no moves left!"
done
@@ -334,24 +334,24 @@ BattleText_TargetsEncoreEnded:
prompt
BattleText_StringBuffer1GrewToLevel:
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " grew to"
line "level @"
- deciram wCurPartyLevel, 1, 3
+ text_decimal wCurPartyLevel, 1, 3
text "!@"
sound_dex_fanfare_50_79
db "@"
BattleText_WildMonIsEating:
text "Wild @"
- text_from_ram wEnemyMonNick
+ text_ram wEnemyMonNick
text_start
line "is eating!"
prompt
BattleText_WildMonIsAngry:
text "Wild @"
- text_from_ram wEnemyMonNick
+ text_ram wEnemyMonNick
text_start
line "is angry!"
prompt
@@ -409,7 +409,7 @@ BecameConfusedText:
BattleText_ItemHealedConfusion: ; ItemHealedConfusion
text "A @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " rid"
line "<TARGET>"
cont "of its confusion."
@@ -424,7 +424,7 @@ BattleText_UsersHurtByStringBuffer1:
text "<USER>'s"
line "hurt by"
cont "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!"
prompt
@@ -432,7 +432,7 @@ BattleText_UserWasReleasedFromStringBuffer1:
text "<USER>"
line "was released from"
cont "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!"
prompt
@@ -473,7 +473,7 @@ HungOnText:
text "<TARGET>"
line "hung on with"
cont "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!"
prompt
@@ -497,43 +497,43 @@ InfatuationText:
DisabledMoveText:
text "<USER>'s"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " is"
cont "DISABLED!"
prompt
LoafingAroundText:
- text_from_ram wBattleMonNick
+ text_ram wBattleMonNick
text " is"
line "loafing around."
prompt
BeganToNapText:
- text_from_ram wBattleMonNick
+ text_ram wBattleMonNick
text " began"
line "to nap!"
prompt
WontObeyText:
- text_from_ram wBattleMonNick
+ text_ram wBattleMonNick
text " won't"
line "obey!"
prompt
TurnedAwayText:
- text_from_ram wBattleMonNick
+ text_ram wBattleMonNick
text " turned"
line "away!"
prompt
IgnoredOrdersText:
- text_from_ram wBattleMonNick
+ text_ram wBattleMonNick
text " ignored"
line "orders!"
prompt
IgnoredSleepingText:
- text_from_ram wBattleMonNick
+ text_ram wBattleMonNick
text " ignored"
line "orders…sleeping!"
prompt
@@ -547,7 +547,7 @@ HasNoPPLeftText:
text "<USER>"
line "has no PP left for"
cont "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "!"
prompt
@@ -641,7 +641,7 @@ SketchedText:
text "<USER>"
line "SKETCHED"
cont "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!"
prompt
@@ -654,10 +654,10 @@ DestinyBondEffectText:
SpiteEffectText:
text "<TARGET>'s"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " was"
cont "reduced by @"
- deciram wDeciramBuffer, 1, 1
+ text_decimal wDeciramBuffer, 1, 1
text "!"
prompt
@@ -719,7 +719,7 @@ WasFrozenText:
WontRiseAnymoreText:
text "<USER>'s"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " won't"
cont "rise anymore!"
prompt
@@ -727,7 +727,7 @@ WontRiseAnymoreText:
WontDropAnymoreText:
text "<TARGET>'s"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " won't"
cont "drop anymore!"
prompt
@@ -749,13 +749,13 @@ BlownAwayText:
PlayerHitTimesText:
text "Hit @"
- deciram wPlayerDamageTaken, 1, 1
+ text_decimal wPlayerDamageTaken, 1, 1
text " times!"
prompt
EnemyHitTimesText:
text "Hit @"
- deciram wEnemyDamageTaken, 1, 1
+ text_decimal wEnemyDamageTaken, 1, 1
text " times!"
prompt
@@ -770,7 +770,7 @@ ProtectedByMistText:
prompt
GettingPumpedText:
- interpret_data
+ text_pause
text "<USER>'s"
line "getting pumped!"
prompt
@@ -810,7 +810,7 @@ LearnedMoveText:
text "<USER>"
line "learned"
cont "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!"
prompt
@@ -827,7 +827,7 @@ EvadedText:
WasDisabledText:
text "<TARGET>'s"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " was"
cont "DISABLED!"
prompt
@@ -841,7 +841,7 @@ TransformedTypeText:
text "<USER>"
line "transformed into"
cont "the @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "-type!"
prompt
@@ -854,7 +854,7 @@ TransformedText:
text "<USER>"
line "TRANSFORMED into"
cont "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!"
prompt
@@ -921,7 +921,7 @@ ProtectedByText:
text "<TARGET>'s"
line "protected by"
cont "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!"
prompt
@@ -933,7 +933,7 @@ MirrorMoveFailedText:
StoleText:
text "<USER>"
line "stole @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text_start
cont "from its foe!"
prompt
@@ -1017,7 +1017,7 @@ SafeguardProtectText:
MagnitudeText:
text "Magnitude @"
- deciram wDeciramBuffer, 1, 1
+ text_decimal wDeciramBuffer, 1, 1
text "!"
prompt
@@ -1067,7 +1067,7 @@ ForesawAttackText:
prompt
BeatUpAttackText:
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "'s"
line "attack!"
done
diff --git a/data/text/common_1.asm b/data/text/common_1.asm
index 4fb43989..40f4bb79 100644..100755
--- a/data/text/common_1.asm
+++ b/data/text/common_1.asm
@@ -6,14 +6,14 @@ _FruitBearingTreeText::
_HeyItsFruitText::
text "Hey! It's"
line "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "!"
done
_ObtainedFruitText::
text "Obtained"
line "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "!"
done
@@ -28,67 +28,67 @@ _NothingHereText::
done
UnknownText_0x1bc0a2::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text_start
line "recovered @"
- deciram wLinkBuffer, 2, 3
+ text_decimal wLinkBuffer, 2, 3
text "HP!"
done
UnknownText_0x1bc0bb::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "'s"
line "cured of poison."
done
UnknownText_0x1bc0d2::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "'s"
line "rid of paralysis."
done
UnknownText_0x1bc0ea::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "'s"
line "burn was healed."
done
UnknownText_0x1bc101::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text_start
line "was defrosted."
done
UnknownText_0x1bc115::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text_start
line "woke up."
done
UnknownText_0x1bc123::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "'s"
line "health returned."
done
UnknownText_0x1bc13a::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text_start
line "is revitalized."
done
UnknownText_0x1bc14f::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " grew to"
line "level @"
- deciram wCurPartyLevel, 1, 3
+ text_decimal wCurPartyLevel, 1, 3
text "!@"
sound_dex_fanfare_50_79
- text_waitbutton
+ text_promptbutton
db "@"
UnknownText_0x1bc16e::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " came"
line "to its senses."
done
@@ -153,17 +153,17 @@ Text_EnemyWithdrew::
text "<ENEMY>"
line "withdrew"
cont "@"
- text_from_ram wEnemyMonNick
+ text_ram wEnemyMonNick
text "!"
prompt
Text_EnemyUsedOn::
text "<ENEMY>"
line "used @"
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text_start
cont "on @"
- text_from_ram wEnemyMonNick
+ text_ram wEnemyMonNick
text "!"
prompt
@@ -179,7 +179,7 @@ Text_ThatItemCantBePutInThePack::
Text_TheItemWasPutInThePack::
text "The @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text_start
line "was put in the"
cont "PACK."
@@ -206,7 +206,7 @@ UnknownText_0x1bd05e::
UnknownText_0x1bd07f::
text "Will you play with"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "?"
done
@@ -223,7 +223,7 @@ Text_BreedingIsNotPossible::
UnknownText_0x1bd0d8::
text "The compatibility"
line "is @"
- deciram wTempNumBuffer, 1, 3
+ text_decimal wTempNumBuffer, 1, 3
text "."
cont "Should they breed?"
done
@@ -241,7 +241,7 @@ UnknownText_0x1bd11c::
UnknownText_0x1bd131::
text "Test event"
line "@"
- deciram wStringBuffer2, 1, 2
+ text_decimal wStringBuffer2, 1, 2
text "?"
done
@@ -298,7 +298,7 @@ UnknownText_0x1bc4b2::
UnknownText_0x1bc4d7::
text "Put away the"
line "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "."
prompt
@@ -310,19 +310,19 @@ UnknownText_0x1bc4ec::
UnknownText_0x1bc509::
text "Set up the"
line "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "."
prompt
UnknownText_0x1bc51c::
text "Put away the"
line "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text_start
para "and set up the"
line "@"
- text_from_ram wStringBuffer4
+ text_ram wStringBuffer4
text "."
prompt
@@ -353,7 +353,7 @@ UnknownText_0x1bc5b3::
UnknownText_0x1bc5d7::
text "It's an adorable"
line "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "."
done
@@ -394,10 +394,10 @@ UnknownText_0x1bc6c7::
done
UnknownText_0x1bc6e9::
- text_from_ram wPlayerTrademonSpeciesName
+ text_ram wPlayerTrademonSpeciesName
text " was"
line "sent to @"
- text_from_ram wOTTrademonSenderName
+ text_ram wOTTrademonSenderName
text "."
done
@@ -406,53 +406,53 @@ UnknownText_0x1bc701::
done
UnknownText_0x1bc703::
- text_from_ram wOTTrademonSenderName
+ text_ram wOTTrademonSenderName
text " bids"
line "farewell to"
done
UnknownText_0x1bc719::
- text_from_ram wOTTrademonSpeciesName
+ text_ram wOTTrademonSpeciesName
text "."
done
UnknownText_0x1bc71f::
text "Take good care of"
line "@"
- text_from_ram wOTTrademonSpeciesName
+ text_ram wOTTrademonSpeciesName
text "."
done
UnknownText_0x1bc739::
text "For @"
- text_from_ram wPlayerTrademonSenderName
+ text_ram wPlayerTrademonSenderName
text "'s"
line "@"
- text_from_ram wPlayerTrademonSpeciesName
+ text_ram wPlayerTrademonSpeciesName
text ","
done
UnknownText_0x1bc74c::
- text_from_ram wOTTrademonSenderName
+ text_ram wOTTrademonSenderName
text " sends"
line "@"
- text_from_ram wOTTrademonSpeciesName
+ text_ram wOTTrademonSpeciesName
text "."
done
UnknownText_0x1bc75e::
- text_from_ram wOTTrademonSenderName
+ text_ram wOTTrademonSenderName
text " will"
line "trade @"
- text_from_ram wOTTrademonSpeciesName
+ text_ram wOTTrademonSpeciesName
db "@@"
UnknownText_0x1bc774::
text "for @"
- text_from_ram wPlayerTrademonSenderName
+ text_ram wPlayerTrademonSenderName
text "'s"
line "@"
- text_from_ram wPlayerTrademonSpeciesName
+ text_ram wPlayerTrademonSpeciesName
text "."
done
@@ -476,7 +476,7 @@ _OPT_IntroText3::
_OPT_OakText1::
text_start
line "OAK: @"
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
db "@@"
_OPT_OakText2::
@@ -487,14 +487,14 @@ _OPT_OakText2::
_OPT_OakText3::
text_start
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
done
_OPT_MaryText1::
text_start
line "MARY: @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "'s"
done
@@ -665,7 +665,7 @@ _OPT_PokemonChannelText::
_PokedexShowText::
text_start
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
db "@"
; Pokémon Music Channel / Pokémusic
@@ -698,7 +698,7 @@ _FernIntroText2::
_BenFernText1::
text_start
line "Today's @"
- current_day
+ text_today
text ","
done
@@ -762,8 +762,8 @@ _LC_Text7::
_LC_Text8::
text_start
line "Number is @"
- interpret_data
- text_from_ram wStringBuffer1
+ text_pause
+ text_ram wStringBuffer1
text "!"
done
@@ -812,9 +812,9 @@ _PnP_Text3::
_PnP_Text4::
text_start
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
db "@@"
_PnP_cute::
@@ -900,7 +900,7 @@ _PnP_odd::
_PnP_Text5::
text_start
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
db "@@"
_RocketRadioText1::
@@ -936,28 +936,28 @@ _RocketRadioText6::
_RocketRadioText7::
text_start
line "GIOVANNI! @"
- interpret_data
+ text_pause
text "Can you"
done
_RocketRadioText8::
text_start
line "hear?@"
- interpret_data
+ text_pause
text " We did it!"
done
_RocketRadioText9::
text_start
line "@"
- interpret_data
+ text_pause
text "Where is our Boss?"
done
_RocketRadioText10::
text_start
line "@"
- interpret_data
+ text_pause
text "Is he listening?"
done
@@ -984,7 +984,7 @@ _RepelWoreOffText::
_PlayerFoundItemText::
text "<PLAYER> found"
line "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "."
done
@@ -996,10 +996,10 @@ _ButNoSpaceText::
UnknownText_0x1bd34b::
text "I just saw some"
line "rare @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " in"
cont "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "."
para "I'll call you if I"
@@ -1013,13 +1013,13 @@ UnknownText_0x1bd39e::
done
ReceivedMysteryGiftText_::
- text_from_ram wPlayerName
+ text_ram wPlayerName
text " received"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!@"
sound_item
- text_waitbutton
+ text_promptbutton
db "@"
NoCoinsText_::
@@ -1039,27 +1039,27 @@ UnknownText_0x1bd407::
UnknownText_0x1bd429::
text "<PLAYER> traded"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " for"
cont "@"
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text ".@@"
UnknownText_0x1bd445::
sound_dex_fanfare_80_109
- interpret_data
+ text_pause
db "@"
UnknownText_0x1bd449::
text "I collect #MON."
line "Do you have"
cont "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "?"
para "Want to trade it"
line "for my @"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "?"
done
@@ -1071,7 +1071,7 @@ UnknownText_0x1bd48c::
UnknownText_0x1bd4aa::
text "Huh? That's not"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text ". "
cont "What a letdown…"
done
@@ -1079,7 +1079,7 @@ UnknownText_0x1bd4aa::
UnknownText_0x1bd4d2::
text "Yay! I got myself"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!"
cont "Thanks!"
done
@@ -1087,7 +1087,7 @@ UnknownText_0x1bd4d2::
UnknownText_0x1bd4f4::
text "Hi, how's my old"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " doing?"
done
@@ -1097,12 +1097,12 @@ UnknownText_0x1bd512::
para "If you have"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text ", would"
para "you trade it for"
line "my @"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "?"
done
@@ -1117,7 +1117,7 @@ UnknownText_0x1bd565::
UnknownText_0x1bd5a1::
text "You don't have"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "? That's"
cont "too bad, then."
done
@@ -1127,31 +1127,31 @@ UnknownText_0x1bd5cc::
para "I finally got"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
done
UnknownText_0x1bd5f4::
text "Hi! The @"
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text_start
line "you traded me is"
cont "doing great!"
done
UnknownText_0x1bd621::
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text "'s cute,"
line "but I don't have"
para "it. Do you have"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "?"
para "Want to trade it"
line "for my @"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "?"
done
@@ -1163,7 +1163,7 @@ UnknownText_0x1bd673::
UnknownText_0x1bd696::
text "That's not"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
para "Please trade with"
@@ -1174,19 +1174,19 @@ UnknownText_0x1bd6cd::
text "Wow! Thank you!"
line "I always wanted"
cont "@"
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text "!"
done
UnknownText_0x1bd6f5::
text "How is that"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " I"
cont "traded you doing?"
para "Your @"
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text "'s"
line "so cute!"
done
@@ -1396,7 +1396,7 @@ _LastHealthyMonText::
_IllRaiseYourMonText::
text "OK. I'll raise"
line "your @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
prompt
@@ -1409,25 +1409,25 @@ _AreWeGeniusesText::
text "Are we geniuses or"
line "what? Want to see"
cont "your @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "?"
done
_YourMonHasGrownText::
text "Your @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text_start
line "has grown a lot."
para "By level, it's"
line "grown by @"
- deciram wStringBuffer2 + 1, 1, 3
+ text_decimal wStringBuffer2 + 1, 1, 3
text "."
para "If you want your"
line "#MON back, it"
cont "will cost ¥@"
- deciram wStringBuffer2 + 2, 3, 4
+ text_decimal wStringBuffer2 + 2, 3, 4
text "."
done
@@ -1439,14 +1439,14 @@ _PerfectHeresYourMonText::
_GotBackMonText::
text "<PLAYER> got back"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
prompt
_BackAlreadyText::
text "Huh? Back already?"
line "Your @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text_start
para "needs a little"
line "more time with us."
@@ -1563,7 +1563,7 @@ UnknownText_0x1c00a0::
UnknownText_0x1c00cd::
text "Hm… @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "…"
line "That's a fairly"
cont "decent name."
@@ -1595,13 +1595,13 @@ UnknownText_0x1c019e::
done
text "Hm… @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "?"
line "What a great name!"
cont "It's perfect."
para "Treat @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text_start
line "with loving care."
done
@@ -1625,57 +1625,57 @@ UnknownText_0x1c0272::
text "All right. This"
line "#MON is now"
cont "named @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
prompt
Text_Gained::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " gained@@"
Text_ABoostedStringBuffer2ExpPoints::
text_start
line "a boosted"
cont "@"
- deciram wStringBuffer2, 2, 4
+ text_decimal wStringBuffer2, 2, 4
text " EXP. Points!"
prompt
Text_StringBuffer2ExpPoints::
text_start
line "@"
- deciram wStringBuffer2, 2, 4
+ text_decimal wStringBuffer2, 2, 4
text " EXP. Points!"
prompt
Text_GoMon::
text "Go! @"
- text_from_ram wBattleMonNick
+ text_ram wBattleMonNick
text "!"
done
Text_DoItMon::
text "Do it! @"
- text_from_ram wBattleMonNick
+ text_ram wBattleMonNick
text "!"
done
Text_GoForItMon::
text "Go for it,"
line "@"
- text_from_ram wBattleMonNick
+ text_ram wBattleMonNick
text "!"
done
Text_YourFoesWeakGetmMon::
text "Your foe's weak!"
line "Get'm, @"
- text_from_ram wBattleMonNick
+ text_ram wBattleMonNick
text "!"
done
Text_ThatsEnoughComeBack::
- text_from_ram wBattleMonNick
+ text_ram wBattleMonNick
text ",@@"
text " that's"
line "enough! Come back!"
@@ -1699,7 +1699,7 @@ Text_ComeBack::
BattleText_PlayerPickedUpPayDayMoney:
text "<PLAYER> picked up"
line "¥@"
- deciram wPayDayMoney, 3, 6
+ text_decimal wPayDayMoney, 3, 6
text "!"
prompt
@@ -1714,26 +1714,26 @@ UnknownText_0x1c0384::
UnknownText_0x1c0396::
text "It contained"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "."
para "Teach @"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text_start
line "to a #MON?"
done
UnknownText_0x1c03c2::
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " is"
line "not compatible"
cont "with @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
para "It can't learn"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "."
prompt
@@ -1741,14 +1741,14 @@ UnknownText_0x1c03fa::
text "You have no room"
line "for any more"
cont "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "S."
prompt
UnknownText_0x1c0421::
text "You received"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!"
prompt
@@ -1783,21 +1783,21 @@ UnknownText_0x1c04c6::
prompt
UnknownText_0x1c04e9::
- text_from_ram wMysteryGiftPartnerName
+ text_ram wMysteryGiftPartnerName
text " sent"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
prompt
UnknownText_0x1c04fa::
- text_from_ram wMysteryGiftPartnerName
+ text_ram wMysteryGiftPartnerName
text " sent"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text_start
cont "to @"
- text_from_ram wMysteryGiftPlayerName
+ text_ram wMysteryGiftPlayerName
text "'s home."
prompt
@@ -1812,7 +1812,7 @@ CantUseFieldMoveHereText_::
prompt
Text_UsedCut_::
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " used"
line "CUT!"
prompt
@@ -1825,11 +1825,11 @@ Text_NothingToCut_::
Text_UsedFlash_::
text "A blinding FLASH"
line "lights the area!@"
- text_waitbutton
+ text_promptbutton
db "@@"
UsedSurfText_::
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " used"
line "SURF!"
done \ No newline at end of file
diff --git a/data/text/common_2.asm b/data/text/common_2.asm
index d9d5fd6c..c8b243be 100644
--- a/data/text/common_2.asm
+++ b/data/text/common_2.asm
@@ -14,7 +14,7 @@ AskSurfText_::
done
Text_UsedWaterfall_::
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " used"
line "WATERFALL!"
done
@@ -30,7 +30,7 @@ Text_AskUseWaterfall_::
done
Text_UsedDig_::
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " used"
line "DIG!"
done
@@ -63,13 +63,13 @@ Text_AlreadyUsingStrength_::
prompt
Text_UsedStrength_::
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " used"
line "STRENGTH!"
done
Text_AllowedToMoveBoulders_::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " can"
line "move boulders."
prompt
@@ -93,7 +93,7 @@ Text_MonMayBeAbleToMove_::
done
Text_UsedWhirlpool_::
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " used"
line "WHIRLPOOL!"
prompt
@@ -115,7 +115,7 @@ Text_AskWhirlpool_::
done
Text_DidAHeadbutt_::
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " did a"
line "HEADBUTT!"
prompt
@@ -133,7 +133,7 @@ Text_AskHeadbutt_::
done
Text_UsedRockSmash_::
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " used"
line "ROCK SMASH!"
prompt
@@ -173,14 +173,14 @@ Text_CantGetOffBike_::
Text_GotOnTheBike_::
text "<PLAYER> got on the"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "."
done
Text_GotOffTheBike_::
text "<PLAYER> got off"
line "the @"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "."
done
@@ -199,7 +199,7 @@ Text_MonCanCutThis_::
_FoundItemText::
text "<PLAYER> found"
line "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "!"
done
@@ -229,7 +229,7 @@ UnknownText_0x1c0aa9::
prompt
UnknownText_0x1c0acc::
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text_start
line "fainted!"
prompt
@@ -243,7 +243,7 @@ UnknownText_0x1c0ada::
prompt
UnknownText_0x1c0b03::
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text " used"
line "SWEET SCENT!"
done
@@ -282,17 +282,17 @@ Text_ThrowAwayHowMany_::
Text_ConfirmThrowAway_::
text "Throw away @"
- deciram wItemQuantityChangeBuffer, 1, 2
+ text_decimal wItemQuantityChangeBuffer, 1, 2
text_start
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "(S)?"
done
Text_ThrewAway_::
text "Threw away"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "(S)."
prompt
@@ -310,7 +310,7 @@ Text_YouDontHaveAMon::
Text_RegisteredTheItem_::
text "Registered the"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "."
prompt
@@ -349,7 +349,7 @@ _UsedInsteadText::
cont "@@"
_MoveNameText::
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
db "@@"
_EndUsedMove1Text::
@@ -375,11 +375,11 @@ _EndUsedMove5Text::
UnknownText_0x1c0cc6::
text "<USER>'s"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
db "@@"
UnknownText_0x1c0cd0::
- interpret_data
+ text_pause
text "<SCROLL>went way up!"
prompt
@@ -390,11 +390,11 @@ UnknownText_0x1c0ce0::
UnknownText_0x1c0ceb::
text "<TARGET>'s"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
db "@@"
UnknownText_0x1c0cf5::
- interpret_data
+ text_pause
text "<SCROLL>sharply fell!"
prompt
@@ -445,23 +445,23 @@ UnknownText_0x1c0db8::
done
UnknownText_0x1c0dba::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " came"
line "out of its EGG!@"
sound_caught_mon
- text_waitbutton
+ text_promptbutton
db "@"
UnknownText_0x1c0dd8::
text "Give a nickname to"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "?"
done
UnknownText_0x1c0df3::
text "It's @"
- text_from_ram wBreedMon2Nick
+ text_ram wBreedMon2Nick
text_start
line "that was left with"
cont "the DAY-CARE LADY."
@@ -469,7 +469,7 @@ UnknownText_0x1c0df3::
UnknownText_0x1c0e24::
text "It's @"
- text_from_ram wDayCareMan + 1
+ text_ram wDayCareMan + 1
text_start
line "that was left with"
cont "the DAY-CARE MAN."
@@ -483,28 +483,28 @@ UnknownText_0x1c0e54::
UnknownText_0x1c0e6f::
text "It has no interest"
line "in @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
prompt
UnknownText_0x1c0e8d::
text "It appears to care"
line "for @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
prompt
UnknownText_0x1c0eac::
text "It's friendly with"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
prompt
UnknownText_0x1c0ec6::
text "It shows interest"
line "in @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
prompt
@@ -543,7 +543,7 @@ MailMovedFromBoxText::
prompt
Text_WasSentToBillsPC::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " was"
line "sent to BILL's PC."
prompt
@@ -582,7 +582,7 @@ Text_CantTakeAnyMorePokemon_::
Text_CaughtBugMon_::
text "Caught @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!"
prompt
@@ -593,22 +593,22 @@ UnknownText_0x1c10cf::
UnknownText_0x1c10dd::
text "You already caught"
line "a @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
prompt
ContestJudging_FirstPlaceText::
text "This Bug-Catching"
line "Contest winner is@"
- interpret_data
+ text_pause
text "…"
para "@"
- text_from_ram wBugContestWinnerName
+ text_ram wBugContestWinnerName
text ","
line "who caught a"
cont "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!@@"
ContestJudging_FirstPlaceScoreText::
@@ -616,19 +616,19 @@ ContestJudging_FirstPlaceScoreText::
para "The winning score"
line "was @"
- deciram wBugContestFirstPlaceScore, 2, 3
+ text_decimal wBugContestFirstPlaceScore, 2, 3
text " points!"
prompt
ContestJudging_SecondPlaceText::
text "Placing second was"
line "@"
- text_from_ram wBugContestWinnerName
+ text_ram wBugContestWinnerName
text ","
para "who caught a"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!@@"
ContestJudging_SecondPlaceScoreText::
@@ -636,19 +636,19 @@ ContestJudging_SecondPlaceScoreText::
para "The score was"
line "@"
- deciram wBugContestSecondPlaceScore, 2, 3
+ text_decimal wBugContestSecondPlaceScore, 2, 3
text " points!"
prompt
ContestJudging_ThirdPlaceText::
text "Placing third was"
line "@"
- text_from_ram wBugContestWinnerName
+ text_ram wBugContestWinnerName
text ","
para "who caught a"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!@@"
ContestJudging_ThirdPlaceScoreText::
@@ -656,7 +656,7 @@ ContestJudging_ThirdPlaceScoreText::
para "The score was"
line "@"
- deciram wBugContestThirdPlaceScore, 2, 3
+ text_decimal wBugContestThirdPlaceScore, 2, 3
text " points!"
prompt
@@ -666,7 +666,7 @@ UnknownText_0x1c1203::
para "…Hm, it measures"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
prompt
@@ -674,11 +674,11 @@ UnknownText_0x1c123a::
text "CURRENT RECORD"
para "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " caught by"
line "@"
- text_from_ram wMagikarpRecordHoldersName
- text_waitbutton
+ text_ram wMagikarpRecordHoldersName
+ text_promptbutton
db "@"
UnknownText_0x1c1261::
@@ -688,7 +688,7 @@ UnknownText_0x1c1261::
line "with the ID number"
para "of @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " in"
line "your party."
prompt
@@ -700,7 +700,7 @@ UnknownText_0x1c12ae::
line "with the ID number"
para "of @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " in"
line "your PC BOX."
prompt
@@ -708,7 +708,7 @@ UnknownText_0x1c12ae::
UnknownText_0x1c12fc::
text "Give a nickname to"
line "the @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " you"
cont "received?"
done
@@ -736,10 +736,10 @@ _PlayersPCHowManyWithdrawText::
_PlayersPCWithdrewItemsText::
text "Withdrew @"
- deciram wItemQuantityChangeBuffer, 1, 2
+ text_decimal wItemQuantityChangeBuffer, 1, 2
text_start
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "(S)."
prompt
@@ -759,10 +759,10 @@ _PlayersPCHowManyDepositText::
_PlayersPCDepositItemsText::
text "Deposited @"
- deciram wItemQuantityChangeBuffer, 1, 2
+ text_decimal wItemQuantityChangeBuffer, 1, 2
text_start
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "(S)."
prompt
@@ -819,10 +819,10 @@ _OakPCText2::
prompt
_OakPCText3::
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text " #MON seen"
line "@"
- text_from_ram wStringBuffer4
+ text_ram wStringBuffer4
text " #MON owned"
para "PROF.OAK's"
@@ -989,23 +989,23 @@ UnknownText_0x1c1a6c::
UnknownText_0x1c1a90::
text "Toss out how many"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "(S)?"
done
UnknownText_0x1c1aad::
text "Throw away @"
- deciram wItemQuantityChangeBuffer, 1, 2
+ text_decimal wItemQuantityChangeBuffer, 1, 2
text_start
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "(S)?"
done
UnknownText_0x1c1aca::
text "Discarded"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "(S)."
prompt
@@ -1022,24 +1022,24 @@ UnknownText_0x1c1b03::
UnknownText_0x1c1b2c::
text "Took @"
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text "'s"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " and"
para "made it hold"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "."
prompt
UnknownText_0x1c1b57::
text "Made @"
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text_start
line "hold @"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "."
prompt
@@ -1049,7 +1049,7 @@ UnknownText_0x1c1b6f::
prompt
UnknownText_0x1c1b8e::
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text " isn't"
line "holding anything."
prompt
@@ -1061,20 +1061,20 @@ UnknownText_0x1c1baa::
UnknownText_0x1c1bc4::
text "Took @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text_start
line "from @"
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text "."
prompt
UnknownText_0x1c1bdc::
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text " is"
line "already holding"
para "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
line "Switch items?"
done
@@ -1092,7 +1092,7 @@ UnknownText_0x1c1c22::
UnknownText_0x1c1c47::
text "MAIL detached from"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
prompt
@@ -1152,7 +1152,7 @@ _OakText2::
cont "#MON.@@"
_OakText3::
- text_waitbutton
+ text_promptbutton
db "@"
_OakText4::
@@ -1247,17 +1247,17 @@ UnknownText_0x1c41b1::
UnknownText_0x1c41e6::
text "Your friend's"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " appears"
cont "to be abnormal!"
prompt
UnknownText_0x1c4212::
text "Trade @"
- text_from_ram wTemporaryBuffer
+ text_ram wTemporaryBuffer
text_start
line "for @"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "?"
done
@@ -1334,23 +1334,23 @@ CoordinatesEventText_::
UnknownText_0x1c4719::
text "<PLAYER> received"
line "@"
- text_from_ram wStringBuffer4
+ text_ram wStringBuffer4
text "."
done
UnknownText_0x1c472c::
text "<PLAYER> put the"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " in"
cont "the @"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "."
prompt
UnknownText_0x1c474b::
text "The @"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text_start
line "is full…"
prompt
@@ -1358,7 +1358,7 @@ UnknownText_0x1c474b::
UnknownText_0x1c4b92::
text "Congratulations!"
line "Your @"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
db "@@"
UnknownText_0x1c4baf::
@@ -1366,20 +1366,20 @@ UnknownText_0x1c4baf::
para "evolved into"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "!"
done
UnknownText_0x1c4bc5::
text "Huh? @"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text_start
line "stopped evolving!"
prompt
UnknownText_0x1c4be3::
text "What? @"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text_start
line "is evolving!"
done
@@ -1389,12 +1389,12 @@ UnknownText_0x1c4bfd::
done
UnknownText_0x1c4c08::
- deciram wItemQuantityChangeBuffer, 1, 2
+ text_decimal wItemQuantityChangeBuffer, 1, 2
text " @"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "(S)"
line "will be ¥@"
- deciram hMoneyTemp, 3, 6
+ text_decimal hMoneyTemp, 3, 6
text "."
done
@@ -1418,12 +1418,12 @@ UnknownText_0x1c4ca3::
done
UnknownText_0x1c4cae::
- deciram wItemQuantityChangeBuffer, 1, 2
+ text_decimal wItemQuantityChangeBuffer, 1, 2
text " @"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "(S)"
line "will be ¥@"
- deciram hMoneyTemp, 3, 6
+ text_decimal hMoneyTemp, 3, 6
text "."
done
@@ -1459,10 +1459,10 @@ UnknownText_0x1c4d47::
done
UnknownText_0x1c4db0::
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " costs"
line "¥@"
- deciram hMoneyTemp, 3, 6
+ text_decimal hMoneyTemp, 3, 6
text ". Want it?"
done
@@ -1501,12 +1501,12 @@ UnknownText_0x1c4e7e::
done
UnknownText_0x1c4e89::
- deciram wItemQuantityChangeBuffer, 1, 2
+ text_decimal wItemQuantityChangeBuffer, 1, 2
text " @"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "(S)"
line "will cost ¥@"
- deciram hMoneyTemp, 3, 6
+ text_decimal hMoneyTemp, 3, 6
text "."
done
@@ -1541,7 +1541,7 @@ UnknownText_0x1c4f33::
UnknownText_0x1c4f3e::
text "I can pay you"
line "¥@"
- deciram hMoneyTemp, 3, 6
+ text_decimal hMoneyTemp, 3, 6
text "."
para "Is that OK?"
@@ -1583,10 +1583,10 @@ UnknownText_0x1c500d::
UnknownText_0x1c502e::
text "Got ¥@"
- deciram hMoneyTemp, 3, 6
+ text_decimal hMoneyTemp, 3, 6
text " for"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "(S)."
done
diff --git a/data/text/common_3.asm b/data/text/common_3.asm
index 7f21819a..503d5a76 100644
--- a/data/text/common_3.asm
+++ b/data/text/common_3.asm
@@ -19,7 +19,7 @@ UnknownText_0x1c5092::
UnknownText_0x1c509f::
text "lined up!"
line "Won @"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " coins!"
done
@@ -28,7 +28,7 @@ UnknownText_0x1c50bb::
done
UnknownText_0x1c5821::
- current_day
+ text_today
db "@"
UnknownText_0x1c5824::
@@ -111,13 +111,13 @@ UnknownText_0x1c564a::
done
Text_LearnedMove_::
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text " learned"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "!@"
sound_dex_fanfare_50_79
- text_waitbutton
+ text_promptbutton
db "@"
Text_ForgetWhich_::
@@ -128,29 +128,29 @@ Text_ForgetWhich_::
Text_StopLearning_::
text "Stop learning"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "?"
done
Text_DidNotLearn_::
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text_start
line "did not learn"
cont "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "."
prompt
Text_TryingToLearn_::
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text " is"
line "trying to learn"
cont "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "."
para "But @"
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text_start
line "can't learn more"
cont "than four moves."
@@ -158,25 +158,25 @@ Text_TryingToLearn_::
para "Delete an older"
line "move to make room"
cont "for @"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "?"
done
Text_1_2_and_Poof_::
text "1, 2 and…@"
- interpret_data
+ text_pause
db "@@"
Text_PoofForgot_::
text " Poof!@"
- interpret_data
+ text_pause
text_start
para "@"
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text " forgot"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "."
para "And…"
@@ -257,43 +257,43 @@ Text_ShootItWasSoCloseToo_::
Text_GotchaMonWasCaught_::
text "Gotcha! @"
- text_from_ram wEnemyMonNick
+ text_ram wEnemyMonNick
text_start
line "was caught!@"
sound_caught_mon
db "@@"
-Text_Waitbutton_2::
- text_waitbutton
+Text_Promptbutton_2::
+ text_promptbutton
db "@"
Text_SentToBillsPC_::
- text_from_ram wMonOrItemNameBuffer
+ text_ram wMonOrItemNameBuffer
text " was"
line "sent to BILL's PC."
prompt
Text_MonNewlyAddedToPokedex_::
- text_from_ram wEnemyMonNick
+ text_ram wEnemyMonNick
text "'s data"
line "was newly added to"
cont "the #DEX.@"
sound_slot_machine_start
- text_waitbutton
+ text_promptbutton
db "@"
Text_AskNicknameNewlyCaughtMon_::
text "Give a nickname to"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "?"
done
Text_StatRoseFromVitamin_::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "'s"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text " rose."
prompt
@@ -324,13 +324,13 @@ Text_AllSleepingMonWokeUp_::
Text_PlayedThePokeFlute_::
text "<PLAYER> played the"
line "# FLUTE.@"
- text_waitbutton
+ text_promptbutton
db "@@"
Text_CoinCase_::
text "Coins:"
line "@"
- deciram wCoins, 2, 4
+ text_decimal wCoins, 2, 4
done
Text_RaiseThePPOfWhichMove_::
@@ -344,13 +344,13 @@ Text_RestoreThePPOfWhichMove_::
done
Text_PPIsMaxedOut_::
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "'s PP"
line "is maxed out."
prompt
Text_PPsIncreased_::
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "'s PP"
line "increased."
prompt
@@ -366,7 +366,7 @@ Text_TrophyInside_::
text_start
para "@"
- text_from_ram wPlayerName
+ text_ram wPlayerName
text " sent the"
line "trophy home."
prompt
@@ -413,7 +413,7 @@ Text_CyclingIsntAllowed_::
Text_CantGetOnYourItemNow_::
text "Can't get on your"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " now."
prompt
@@ -426,14 +426,14 @@ Text_CantUseBallBoxIsFull_::
Text_UsedItem_::
text "<PLAYER> used the"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "."
done
Text_GotOnItem_::
text "<PLAYER> got on the@"
text_low
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "."
prompt
@@ -441,15 +441,15 @@ Text_GotOffItem_::
text "<PLAYER> got off@"
text_low
text "the @"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "."
prompt
Text_KnowsMove_::
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " knows"
line "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "."
prompt
@@ -461,7 +461,7 @@ UnknownText_0x1c5eba::
UnknownText_0x1c5eda::
text "Oh, make it forget"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text "?"
done
diff --git a/engine/billspctop.asm b/engine/billspctop.asm
index c3fe6322..bfaf3a0c 100644
--- a/engine/billspctop.asm
+++ b/engine/billspctop.asm
@@ -15,7 +15,7 @@ BillsPC_CheckHavePokemon: ; e3e5 (3:63e5)
ret
Text_GottaHavePokemon:
- text_jump Text_GottaHavePokemon_
+ text_far Text_GottaHavePokemon_
db "@"
BillsPC_LogIn: ; e3f7 (3:63f7)
@@ -35,7 +35,7 @@ BillsPC_LogIn: ; e3f7 (3:63f7)
ret
Text_BillsPCWhat:
- text_jump Text_BillsPCWhat_
+ text_far Text_BillsPCWhat_
db "@"
BillsPC_LogOut: ; e41a (3:641a)
@@ -105,16 +105,16 @@ BillsPC_SeeYa:
BillsPC_MovePKMNMenu:
call LoadStandardMenuDataHeader
- callba IsAnyPokemonHoldingMail ; 11:488c
+ farcall IsAnyPokemonHoldingMail ; 11:488c
jr nc, .asm_e4bb
ld hl, Text_PleaseRemoveMailBeforeMovePkmnWOMail
call PrintText
jr .asm_e4cf
.asm_e4bb
- callba StartMovePkmnWOMail_SaveGame ; 5:4bd2
+ farcall StartMovePkmnWOMail_SaveGame ; 5:4bd2
jr c, .asm_e4cf
- callba MovePKMNWithoutMail_ ; 38:6f47
+ farcall MovePKMNWithoutMail_ ; 38:6f47
call ReturnToMapFromSubmenu
call Functione566
.asm_e4cf
@@ -123,12 +123,12 @@ BillsPC_MovePKMNMenu:
ret
Text_PleaseRemoveMailBeforeMovePkmnWOMail:
- text_jump Text_PleaseRemoveMailBeforeMovePkmnWOMail_
+ text_far Text_PleaseRemoveMailBeforeMovePkmnWOMail_
db "@"
BillsPC_DepositMenu:
call LoadStandardMenuDataHeader
- callba DepositPokemon_ ; 38:6b9e
+ farcall DepositPokemon_ ; 38:6b9e
call ReturnToMapFromSubmenu
call Functione566
call CloseWindow
@@ -157,11 +157,11 @@ Functione4ed:
ret
Text_YouDontHaveASinglePokemon:
- text_jump Text_YouDontHaveASinglePokemon_
+ text_far Text_YouDontHaveASinglePokemon_
db "@"
Text_ItsYourLastPokemon:
- text_jump Text_ItsYourLastPokemon_
+ text_far Text_ItsYourLastPokemon_
db "@"
CheckCurPartyMonFainted: ; e513 (3:6513)
@@ -194,7 +194,7 @@ CheckCurPartyMonFainted: ; e513 (3:6513)
BillsPC_WithdrawMenu:
call LoadStandardMenuDataHeader
- callba WithdrawPokemon_ ; 38:6d71
+ farcall WithdrawPokemon_ ; 38:6d71
call ReturnToMapFromSubmenu
call Functione566
call CloseWindow
@@ -215,11 +215,11 @@ Functione548:
ret
Text_CantTakeAnyMorePokemon:
- text_jump Text_CantTakeAnyMorePokemon_
+ text_far Text_CantTakeAnyMorePokemon_
db "@"
BillsPC_ChangeBoxMenu:
- callba ChangeBox_ ; 38:7d25
+ farcall ChangeBox_ ; 38:7d25
and a
ret
diff --git a/engine/color.asm b/engine/color.asm
index 057c48a4..7b081985 100755
--- a/engine/color.asm
+++ b/engine/color.asm
@@ -634,7 +634,7 @@ Function9b9c: ; 9b9c (2:5b9c)
Function9ba9: ; 9ba9 (2:5ba9)
push de
- callba Function3d8f5
+ farcall Function3d8f5
ld c, l
ld b, h
ld a, [wd0ee]
@@ -644,7 +644,7 @@ Function9ba9: ; 9ba9 (2:5ba9)
Function9bba: ; 9bba (2:5bba)
push de
- callba Function3d907
+ farcall Function3d907
ld c, l
ld b, h
ld a, [wTempEnemyMonSpecies]
diff --git a/engine/events/bug_contest/contest.asm b/engine/events/bug_contest/contest.asm
index 56dca000..88c300e9 100755
--- a/engine/events/bug_contest/contest.asm
+++ b/engine/events/bug_contest/contest.asm
@@ -12,20 +12,20 @@ BugCatchingContestBattleScript::
startbattle
reloadmapafterbattle
copybytetovar wParkBalls
- iffalse $79C5
+ iffalse BugCatchingContestOutOfBallsScript
end
BugCatchingContestOverScript::
playsound SFX_ELEVATOR_END
opentext
- writetext $79D1
+ writetext BugCatchingContestTimeUpText
waitbutton
jump $79CD
BugCatchingContestOutOfBallsScript:
playsound SFX_ELEVATOR_END
opentext
- writetext $79D6
+ writetext BugCatchingContestIsOverText
waitbutton
BugCatchingContestReturnToGateScript:
@@ -33,9 +33,9 @@ BugCatchingContestReturnToGateScript:
jumpstd bugcontestresultswarp
BugCatchingContestTimeUpText:
- text_jump _BugCatchingContestTimeUpText
+ text_far _BugCatchingContestTimeUpText
db "@"
BugCatchingContestIsOverText:
- text_jump _BugCatchingContestIsOverText
+ text_far _BugCatchingContestIsOverText
db "@" \ No newline at end of file
diff --git a/engine/events/daycare.asm b/engine/events/daycare.asm
index 32a7665d..46cf62b8 100644
--- a/engine/events/daycare.asm
+++ b/engine/events/daycare.asm
@@ -162,7 +162,7 @@ DayCareAskDepositPokemon:
.DummyText:
;
- text_jump _DaycareDummyText
+ text_far _DaycareDummyText
db "@"
DayCare_DepositPokemonText:
@@ -291,102 +291,102 @@ PrintDayCareText:
.DayCareManIntro:
; I'm the DAY-CARE MAN. Want me to raise a #MON?
- text_jump _DayCareManIntroText
+ text_far _DayCareManIntroText
db "@"
.DayCareManOddEgg:
; I'm the DAY-CARE MAN. Do you know about EGGS? I was raising #MON with my wife, you see. We were shocked to find an EGG! How incredible is that? So, want me to raise a #MON?
- text_jump _DayCareManOddEggText
+ text_far _DayCareManOddEggText
db "@"
.DayCareLadyIntro:
; I'm the DAY-CARE LADY. Should I raise a #MON for you?
- text_jump _DayCareLadyIntroText
+ text_far _DayCareLadyIntroText
db "@"
.DayCareLadyOddEgg:
; I'm the DAY-CARE LADY. Do you know about EGGS? My husband and I were raising some #MON, you see. We were shocked to find an EGG! How incredible could that be? Should I raise a #MON for you?
- text_jump _DayCareLadyOddEggText
+ text_far _DayCareLadyOddEggText
db "@"
.WhichOne:
; What should I raise for you?
- text_jump _WhatShouldIRaiseText
+ text_far _WhatShouldIRaiseText
db "@"
.JustOneMon:
; Oh? But you have just one #MON.
- text_jump _OnlyOneMonText
+ text_far _OnlyOneMonText
db "@"
.CantAcceptEgg:
; Sorry, but I can't accept an EGG.
- text_jump _CantRaiseEggText
+ text_far _CantRaiseEggText
db "@"
.RemoveMail:
; Remove MAIL before you come see me.
- text_jump _RemoveMailText
+ text_far _RemoveMailText
db "@"
.LastHealthyMon:
; If you give me that, what will you battle with?
- text_jump _LastHealthyMonText
+ text_far _LastHealthyMonText
db "@"
.OkayIllRaiseYourMon:
; OK. I'll raise your @ .
- text_jump _IllRaiseYourMonText
+ text_far _IllRaiseYourMonText
db "@"
.ComeBackForItLater:
; Come back for it later.
- text_jump _ComeBackLaterText
+ text_far _ComeBackLaterText
db "@"
.AreWeGeniusesOrWhat:
; Are we geniuses or what? Want to see your @ ?
- text_jump _AreWeGeniusesText
+ text_far _AreWeGeniusesText
db "@"
.AskRetrieveMon:
; Your @ has grown a lot. By level, it's grown by @ . If you want your #MON back, it will cost ¥@ .
- text_jump _YourMonHasGrownText
+ text_far _YourMonHasGrownText
db "@"
.PerfectHeresYourMon:
; Perfect! Here's your #MON.
- text_jump _PerfectHeresYourMonText
+ text_far _PerfectHeresYourMonText
db "@"
.GotBackMon:
; got back @ .
- text_jump _GotBackMonText
+ text_far _GotBackMonText
db "@"
.ImmediatelyWithdrawMon:
; Huh? Back already? Your @ needs a little more time with us. If you want your #MON back, it will cost ¥100.
- text_jump _BackAlreadyText
+ text_far _BackAlreadyText
db "@"
.PartyFull:
; You have no room for it.
- text_jump _HaveNoRoomText
+ text_far _HaveNoRoomText
db "@"
.NotEnoughMoney:
; You don't have enough money.
- text_jump _DCNotEnoughMoneyText
+ text_far _DCNotEnoughMoneyText
db "@"
.OhFineThen:
; Oh, fine then.
- text_jump _OhFineThenText
+ text_far _OhFineThenText
db "@"
.ComeAgain:
; Come again.
- text_jump _ComeAgainText
+ text_far _ComeAgainText
db "@"
DayCareManOutside:
@@ -399,7 +399,7 @@ DayCareManOutside:
.NotYet:
; Not yet…
- text_jump _NotYetText
+ text_far _NotYetText
db "@"
.AskGiveEgg:
@@ -441,27 +441,27 @@ DayCareManOutside:
.IntroText:
; Ah, it's you! We were raising your #MON, and my goodness, were we surprised! Your #MON had an EGG! We don't know how it got there, but your #MON had it. You want it?
- text_jump _FoundAnEggText
+ text_far _FoundAnEggText
db "@"
.GotEggText:
; received the EGG!
- text_jump _ReceivedEggText
+ text_far _ReceivedEggText
db "@"
.TakeGoodCareOfItText:
; Take good care of it.
- text_jump _TakeGoodCareOfEggText
+ text_far _TakeGoodCareOfEggText
db "@"
.IllKeepItThanksText:
; Well then, I'll keep it. Thanks!
- text_jump _RefuseEggText
+ text_far _RefuseEggText
db "@"
.PartyFullText:
; You have no room in your party. Come back later.
- text_jump _NoRoomForEggText
+ text_far _NoRoomForEggText
db "@"
DayCare_GiveEgg:
diff --git a/engine/events/happiness_egg.asm b/engine/events/happiness_egg.asm
index 5281691d..6c8b918c 100755
--- a/engine/events/happiness_egg.asm
+++ b/engine/events/happiness_egg.asm
@@ -193,7 +193,7 @@ DaycareStep::
call Random
ld [hl], a
- callab CheckBreedmonCompatibility
+ callfar CheckBreedmonCompatibility
ld a, [wd151]
cp 230
ld b, -1 + 32 percent
diff --git a/engine/events/misc_scripts.asm b/engine/events/misc_scripts.asm
index 0a742812..f9ba459f 100755
--- a/engine/events/misc_scripts.asm
+++ b/engine/events/misc_scripts.asm
@@ -28,11 +28,11 @@ FindItemInBallScript::
end
.FoundItemText:
- text_jump _FoundItemText
+ text_far _FoundItemText
db "@"
.CantCarryItemText:
- text_jump _CantCarryItemText
+ text_far _CantCarryItemText
db "@"
.TryReceiveItem:
diff --git a/engine/events/misc_scripts_2.asm b/engine/events/misc_scripts_2.asm
index 65d28b0a..c86d3420 100755
--- a/engine/events/misc_scripts_2.asm
+++ b/engine/events/misc_scripts_2.asm
@@ -6,12 +6,12 @@ RepelWoreOffScript::
end
.RepelWoreOffText:
- text_jump _RepelWoreOffText
+ text_far _RepelWoreOffText
db "@"
HiddenItemScript::
opentext
- copybytetovar $CF2B
+ copybytetovar wcf2b
itemtotext MEM_BUFFER_0, USE_SCRIPT_VAR
writetext .PlayerFoundItemText
giveitem ITEM_FROM_MEM
@@ -31,11 +31,11 @@ HiddenItemScript::
end
.PlayerFoundItemText:
- text_jump _PlayerFoundItemText
+ text_far _PlayerFoundItemText
db "@"
.ButNoSpaceText:
- text_jump _ButNoSpaceText
+ text_far _ButNoSpaceText
db "@"
SetMemEvent:
diff --git a/engine/events/overworld.asm b/engine/events/overworld.asm
index 3bb3fd96..c4967028 100755
--- a/engine/events/overworld.asm
+++ b/engine/events/overworld.asm
@@ -33,7 +33,7 @@ FieldMoveGetPartyNick: ; c74b (3:474b)
FieldMoveEngineFlagCheck: ; c766 (3:4766)
ld b, CHECK_FLAG
- callba EngineFlagAction ; same bank
+ farcall EngineFlagAction ; same bank
ld a, c
and a
jr nz, .asm_c774
@@ -53,7 +53,7 @@ FieldMoveBadgeCheck: ; c776 (3:4776)
ret
.BadgeRequiredText:
- text_jump BadgeRequiredText_
+ text_far BadgeRequiredText_
db "@"
FieldMovePartyCheck: ; c787 (3:4787)
@@ -103,7 +103,7 @@ FieldMoveFailed: ; c7be (3:47be)
ret
.CantUseHereText:
- text_jump CantUseFieldMoveHereText_
+ text_far CantUseFieldMoveHereText_
db "@"
CutFunction::
@@ -151,18 +151,18 @@ FailToCut:
ret
Text_UsedCut:
- text_jump Text_UsedCut_
+ text_far Text_UsedCut_
db "@"
Text_NothingToCut:
- text_jump Text_NothingToCut_
+ text_far Text_NothingToCut_
db "@"
CheckMapForSomethingToCut: ; c813 (3:4813)
call GetFacingTileCoord
ld c, a
push de
- callba CheckCutCollision
+ farcall CheckCutCollision
pop de
jr nc, .asm_c841
call GetBlockLocation
@@ -212,7 +212,7 @@ CutDownTreeOrGrass:
call DelayFrame
ld a, [wBuffer6]
ld e, a
- callba OWCutAnimation
+ farcall OWCutAnimation
call BufferScreen
call GetMovementPermissions
ret
@@ -297,7 +297,7 @@ FlashFunction:
CheckUseFlash: ; c8f1 (3:48f1)
ld de, ENGINE_ZEPHYRBADGE
- callba FieldMoveBadgeCheck ; same bank
+ farcall FieldMoveBadgeCheck ; same bank
jr c, .asm_c90f
ld a, [wd56e]
cp $ff
@@ -328,8 +328,8 @@ Script_UseFlash:
end
Text_UsedFlash:
- text_jump Text_UsedFlash_
- start_asm
+ text_far Text_UsedFlash_
+ text_asm
call WaitSFX
ld de, SFX_FLASH
call PlaySFX
@@ -422,15 +422,15 @@ UsedSurfScript:
end
UsedSurfText:
- text_jump UsedSurfText_
+ text_far UsedSurfText_
db "@"
CantSurfText:
- text_jump CantSurfText_
+ text_far CantSurfText_
db "@"
AlreadySurfingText:
- text_jump AlreadySurfingText_
+ text_far AlreadySurfingText_
db "@"
GetSurfType: ; c9d7 (3:49d7)
@@ -513,7 +513,7 @@ AskSurfScript:
end
AskSurfText:
- text_jump AskSurfText_
+ text_far AskSurfText_
db "@"
FlyFunction:
@@ -607,7 +607,7 @@ WaterfallFunction: ; caed
TryWaterfall: ; caf6 (3:4af6)
ld de, ENGINE_RISINGBADGE
- callba FieldMoveBadgeCheck ; same bank
+ farcall FieldMoveBadgeCheck ; same bank
ld a, $80
ret c
call CheckMapCanWaterfall
@@ -667,7 +667,7 @@ CheckContinueWaterfall: ;cb49
ret
Text_UsedWaterfall:
- text_jump Text_UsedWaterfall_
+ text_far Text_UsedWaterfall_
db "@"
TryWaterfallOW:
@@ -696,7 +696,7 @@ Script_CantDoWaterfall:;cb87
jumptext Text_CantDoWaterfall
Text_CantDoWaterfall:
- text_jump Text_CantDoWaterfall_
+ text_far Text_CantDoWaterfall_
db "@"
Script_AskWaterfall:
@@ -708,7 +708,7 @@ Script_AskWaterfall:
end
Text_AskUseWaterfall:
- text_jump Text_AskUseWaterfall_
+ text_far Text_AskUseWaterfall_
db "@"
EscapeRopeFunction:
@@ -791,15 +791,15 @@ FailToEscapeFromDungeon:
ret
Text_UsedDig: ; cc1f
- text_jump Text_UsedDig_
+ text_far Text_UsedDig_
db "@"
Text_UsedEscapeRope:
- text_jump Text_UsedEscapeRope_
+ text_far Text_UsedEscapeRope_
db "@"
Text_CantUseDigEscapeRopeHere:
- text_jump Text_CantUseDigEscapeRopeHere_
+ text_far Text_CantUseDigEscapeRopeHere_
db "@"
UsedEscapeRopeScript: ; cc2e reloadmappart
@@ -887,11 +887,11 @@ FailTeleport:
ret
Text_ReturnToLastMonCenter:
- text_jump Text_ReturnToLastMonCenter_
+ text_far Text_ReturnToLastMonCenter_
db "@"
Text_CantUseTeleportHere:
- text_jump Text_CantUseTeleportHere_
+ text_far Text_CantUseTeleportHere_
db "@"
TeleportScript: ; ccbe
@@ -937,7 +937,7 @@ Functionccf1: ; ccf1 (3:4cf1)
ret
Text_AlreadyUsingStrength:
- text_jump Text_AlreadyUsingStrength_
+ text_far Text_AlreadyUsingStrength_
db "@"
asm_cd09
@@ -976,11 +976,11 @@ Script_UsedStrength:
end
Text_UsedStrength: ; cd44
- text_jump Text_UsedStrength_
+ text_far Text_UsedStrength_
db "@"
Text_AllowedToMoveBoulders:
- text_jump Text_AllowedToMoveBoulders_
+ text_far Text_AllowedToMoveBoulders_
db "@"
AskStrengthScript: ; cd4e
@@ -1004,15 +1004,15 @@ AskStrengthScript: ; cd4e
end
Text_AskStrength:
- text_jump Text_AskStrength_
+ text_far Text_AskStrength_
db "@"
Text_BouldersMayNowBeMoved:
- text_jump Text_BouldersMayNowBeMoved_
+ text_far Text_BouldersMayNowBeMoved_
db "@"
Text_MonMayBeAbleToMove:
- text_jump Text_MonMayBeAbleToMove_
+ text_far Text_MonMayBeAbleToMove_
db "@"
TryStrengthOW:
@@ -1083,7 +1083,7 @@ FailWhirlpool:
ret
Text_UsedWhirlpool:
- text_jump Text_UsedWhirlpool_
+ text_far Text_UsedWhirlpool_
db "@"
TryWhirlpoolMenu: ; cde1 (3:4de1)
@@ -1138,7 +1138,7 @@ DisappearWhirlpool: ; 4e20
call OverworldTextModeSwitch
ld a, [wBuffer6]
ld e, a
- callba PlayWhirlpoolSound
+ farcall PlayWhirlpoolSound
call BufferScreen
call GetMovementPermissions
ret
@@ -1169,7 +1169,7 @@ Script_MightyWhirlpool:
jumptext Text_MightyWhirlpool
Text_MightyWhirlpool:
- text_jump Text_MightyWhirlpool_
+ text_far Text_MightyWhirlpool_
db "@"
Script_AskWhirlpoolOW: ; ce71
@@ -1181,7 +1181,7 @@ Script_AskWhirlpoolOW: ; ce71
end
Text_AskWhirlpool: ; ce7b
- text_jump Text_AskWhirlpool_
+ text_far Text_AskWhirlpool_
db "@"
HeadbuttFunction:
@@ -1206,11 +1206,11 @@ TryHeadbuttFromMenu: ; ce89 (3:4e89)
; ceaa
Text_DidAHeadbutt:
- text_jump Text_DidAHeadbutt_
+ text_far Text_DidAHeadbutt_
db "@"
Text_NothingFromHeadbutt:
- text_jump Text_NothingFromHeadbutt_
+ text_far Text_NothingFromHeadbutt_
db "@"
HeadbuttFromMenuScript:
@@ -1258,7 +1258,7 @@ AskHeadbuttScript:
end
Text_AskHeadbutt: ; cee9
- text_jump Text_AskHeadbutt_
+ text_far Text_AskHeadbutt_
db "@"
call TryRockSmashFromMenu
@@ -1283,7 +1283,7 @@ TryRockSmashFromMenu: ; cef7 (3:4ef7)
ret
GetFacingObject: ; cf10 (3:4f10)
- callba CheckFacingObject
+ farcall CheckFacingObject
jr nc, .asm_cf2f
ld a, [hObjectStructIndexBuffer]
call GetObjectStruct
@@ -1329,7 +1329,7 @@ RockSmashMovementData:
step_end
Text_UsedRockSmash:
- text_jump Text_UsedRockSmash_
+ text_far Text_UsedRockSmash_
db "@"
; cf60
AskRockSmashScript:
@@ -1345,11 +1345,11 @@ AskRockSmashScript:
jumptext Text_MayBeBreakable
Text_MayBeBreakable:
- text_jump Text_MayBeBreakable_
+ text_far Text_MayBeBreakable_
db "@"
Text_AskRockSmash:
- text_jump Text_AskRockSmash_
+ text_far Text_AskRockSmash_
db "@"
TryRockSmashOW: ; cf7f
@@ -1555,15 +1555,15 @@ PutTheRodAway: ; d096
ret
Text_OhABite:
- text_jump Text_OhABite_
+ text_far Text_OhABite_
db "@"
Text_NotEvenANibble:
- text_jump Text_NotEvenANibble_
+ text_far Text_NotEvenANibble_
db "@"
Text_NothingHereToFish:
- text_jump Text_NothingHereToFish_
+ text_far Text_NothingHereToFish_
db "@"
BicycleFunction:
@@ -1694,15 +1694,15 @@ Script_CantGetOffBike: ; d17e
end
Text_CantGetOffBike:
- text_jump Text_CantGetOffBike_
+ text_far Text_CantGetOffBike_
db "@"
Text_GotOnTheBike:
- text_jump Text_GotOnTheBike_
+ text_far Text_GotOnTheBike_
db "@"
Text_GotOffTheBike:
- text_jump Text_GotOffTheBike_
+ text_far Text_GotOffTheBike_
db "@"
@@ -1747,12 +1747,12 @@ CheckMapForSomethingToCut_: ; d1c7
ret
Text_AskCut:
- text_jump Text_AskCut_
+ text_far Text_AskCut_
db "@"
CantCutScript: ; d1da
jumptext Text_MonCanCutThis
Text_MonCanCutThis:
- text_jump Text_MonCanCutThis_
+ text_far Text_MonCanCutThis_
db "@"
diff --git a/engine/health.asm b/engine/health.asm
index 83fea353..506d5a9d 100755
--- a/engine/health.asm
+++ b/engine/health.asm
@@ -41,7 +41,7 @@ Functionc6bc: ; c6bc (3:46bc)
inc bc
ld a, [hl]
ld [bc], a
- callba Functionf900
+ farcall Functionf900
ret
ComputeHPBarPixels: ; c6de (3:46de)
diff --git a/engine/learn.asm b/engine/learn.asm
index f6e06572..c3cb6a2f 100644
--- a/engine/learn.asm
+++ b/engine/learn.asm
@@ -182,28 +182,28 @@ LearnMove:
ret
Text_LearnedMove:
- text_jump Text_LearnedMove_
+ text_far Text_LearnedMove_
db "@"
Text_ForgetWhich:
- text_jump Text_ForgetWhich_
+ text_far Text_ForgetWhich_
db "@"
Text_StopLearning:
- text_jump Text_StopLearning_
+ text_far Text_StopLearning_
db "@"
Text_DidNotLearn:
- text_jump Text_DidNotLearn_
+ text_far Text_DidNotLearn_
db "@"
Text_TryingToLearn:
- text_jump Text_TryingToLearn_
+ text_far Text_TryingToLearn_
db "@"
Text_1_2_and_Poof:
- text_jump Text_1_2_and_Poof_
- start_asm
+ text_far Text_1_2_and_Poof_
+ text_asm
push de
ld de, SFX_SWITCH_POKEMON
call PlaySFX
@@ -212,9 +212,9 @@ Text_1_2_and_Poof:
ret
.PoofForgot:
- text_jump Text_PoofForgot_
+ text_far Text_PoofForgot_
db "@"
Text_CantForgetHM:
- text_jump Text_CantForgetHM_
+ text_far Text_CantForgetHM_
db "@"
diff --git a/engine/main_menu.asm b/engine/main_menu.asm
index 73debf65..d04144c2 100755
--- a/engine/main_menu.asm
+++ b/engine/main_menu.asm
@@ -177,7 +177,7 @@ Function5b5b: ; 5b5b (1:5b5b)
decoord 4, 16
ld a, [hHours]
ld c, a
- callba PrintHour
+ farcall PrintHour
ld [hl], $9c
inc hl
ld de, hMinutes
@@ -198,7 +198,7 @@ Function5b9c: ; 5b9c (1:5b9c)
db "TIME NOT SET@"
.UnusedText
- text_jump _ClockTimeUnknownText
+ text_far _ClockTimeUnknownText
db "@"
Function5bb8: ; 5bb8 (1:5bb8)
@@ -238,12 +238,12 @@ Function5bf7: ; 5bf7 (1:5bf7)
MainMenu_MysteryGift:
call UpdateTime
- callba Function11934
- callba Function29dff
+ farcall Function11934
+ farcall Function29dff
ret
MainMenu_Options:
- callba OptionsMenu
+ farcall OptionsMenu
ret
MainMenu_NewGame:
@@ -366,9 +366,9 @@ ENDC
call Function5d5d
- callba InitDecorations
+ farcall InitDecorations
- callba DeletePartyMonMail
+ farcall DeletePartyMonMail
call ResetGameTime
ret
@@ -446,8 +446,8 @@ Function5d5d: ; 5d5d (1:5d5d)
InitializeWorld: ; 5d97 (1:5d97)
call ShrinkPlayer
- callba SpawnPlayer
- callba InitializeStartDay_
+ farcall SpawnPlayer
+ farcall InitializeStartDay_
ret
LoadOrRegenerateLuckyIDNumber: ; 5da7 (1:5da7)
@@ -476,7 +476,7 @@ LoadOrRegenerateLuckyIDNumber: ; 5da7 (1:5da7)
jp CloseSRAM
MainMenu_Continue:
- callba TryLoadSaveFile
+ farcall TryLoadSaveFile
jr c, .asm_5e41
call LoadStandardMenuDataHeader
call DisplaySaveInfoOnContinue
@@ -507,9 +507,9 @@ MainMenu_Continue:
call ClearTileMap
ld c, 20
call DelayFrames
- callba JumpRoamMons
- callba MysteryGift_CopyReceivedDecosToPC
- callba ClockContinue
+ farcall JumpRoamMons
+ farcall MysteryGift_CopyReceivedDecosToPC
+ farcall ClockContinue
ld a, [wd1db]
cp $1
jr z, .asm_5e42
@@ -572,7 +572,7 @@ FinishContinueFunction: ; 5e84 (1:5e84)
ld [wDontPlayMapMusicOnReload], a
ld hl, wGameTimerPause
set 0, [hl]
- callba OverworldLoop
+ farcall OverworldLoop
ld a, [wd1db]
cp $2
jr z, .asm_5e9d
@@ -721,7 +721,7 @@ Continue_DisplayGameTime: ; 5f90 (1:5f90)
jp PrintNum
OakSpeech: ; 5fa5 (1:5fa5)
- callba InitClock ; What time is it?
+ farcall InitClock ; What time is it?
call RotateFourPalettesLeft
call ClearTileMap
@@ -812,12 +812,12 @@ OakSpeech: ; 5fa5 (1:5fa5)
ret
OakText1:
- text_jump _OakText1
+ text_far _OakText1
db "@"
OakText2:
- text_jump _OakText2
- start_asm
+ text_far _OakText2
+ text_asm
ld a, MARILL
call PlayMonCry
call WaitSFX
@@ -825,23 +825,23 @@ OakText2:
ret
OakText3:
- text_jump _OakText3
+ text_far _OakText3
db "@"
OakText4:
- text_jump _OakText4
+ text_far _OakText4
db "@"
OakText5:
- text_jump _OakText5
+ text_far _OakText5
db "@"
OakText6:
- text_jump _OakText6
+ text_far _OakText6
db "@"
OakText7:
- text_jump _OakText7
+ text_far _OakText7
db "@"
NamePlayer: ; 6085 (1:6085)
@@ -853,14 +853,14 @@ NamePlayer: ; 6085 (1:6085)
jr z, .NewName
ld de, wPlayerName
call StorePlayerName
- callba ApplyMonOrTrainerPals
+ farcall ApplyMonOrTrainerPals
call MovePlayerPicLeft
ret
.NewName
ld b, $1
ld de, wPlayerName
- callba NamingScreen
+ farcall NamingScreen
call RotateThreePalettesRight
call ClearTileMap
call LoadFontsExtra
diff --git a/engine/move_mon.asm b/engine/move_mon.asm
index 28cda6ef..ec84c710 100755
--- a/engine/move_mon.asm
+++ b/engine/move_mon.asm
@@ -126,7 +126,7 @@ GeneratePartyMonStats:
push de
ld a, [wCurPartyLevel]
ld d, a
- callab CalcExpAtLevel ; 14:5550
+ callfar CalcExpAtLevel ; 14:5550
pop de
ld a, [hPrintNum2]
ld [de], a
@@ -150,7 +150,7 @@ GeneratePartyMonStats:
and $f
jr z, .asm_d998
push hl
- callba GetTrainerDVs ; 9:7271
+ farcall GetTrainerDVs ; 9:7271
pop hl
jr .asm_d9bb
@@ -295,7 +295,7 @@ GeneratePartyMonStats:
ld bc, PARTYMON_STRUCT_LENGTH
call AddNTimes
predef GetUnownLetter
- callab UpdateUnownDex
+ callfar UpdateUnownDex
.asm_da71
scf
ret
@@ -396,7 +396,7 @@ AddTempmonToParty: ; da9c (3:5a9c)
ld bc, PARTYMON_STRUCT_LENGTH
call AddNTimes
predef GetUnownLetter
- callab UpdateUnownDex
+ callfar UpdateUnownDex
ld a, [wFirstUnownSeen]
and a
jr nz, .asm_db43
@@ -545,7 +545,7 @@ SentGetPkmnIntoFromBox: ; db45 (3:5b45)
add $2
ld [wMonType], a
predef CopyPkmnToTempMon
- callab CalcLevel
+ callfar CalcLevel
ld a, d
ld [wCurPartyLevel], a
pop hl
@@ -649,7 +649,7 @@ Functiondcbc: ; dcbc (3:5cbc)
push bc
push hl
push de
- callba GetMaxPPOfMove ; same bank
+ farcall GetMaxPPOfMove ; same bank
pop de
pop hl
ld a, [wd151]
@@ -780,10 +780,10 @@ Functiondd6a: ; dd6a (3:5d6a)
ld a, [wPartyCount]
dec a
ld [wCurPartyMon], a
- callba Functionc6bc ; same bank
+ farcall Functionc6bc ; same bank
ld a, [wCurPartyLevel]
ld d, a
- callab CalcExpAtLevel
+ callfar CalcExpAtLevel
pop bc
ld hl, $8
add hl, bc
@@ -884,7 +884,7 @@ SentPkmnIntoBox: ; de74 (3:5e74)
push de
ld a, [wCurPartyLevel]
ld d, a
- callab CalcExpAtLevel
+ callfar CalcExpAtLevel
pop de
ld a, [hQuotient]
ld [de], a
@@ -930,7 +930,7 @@ SentPkmnIntoBox: ; de74 (3:5e74)
jr nz, .asm_df26
ld hl, sBoxMon1DVs
predef GetUnownLetter
- callab UpdateUnownDex
+ callfar UpdateUnownDex
.asm_df26
ld hl, sBoxMon1Moves
ld de, wTempMonMoves
@@ -995,8 +995,8 @@ Functiondf65: ; df65 (3:5f65)
GiveEgg: ; df92 (3:5f92)
ld a, [wCurPartySpecies]
push af
- callab GetPreEvolution
- callab GetPreEvolution
+ callfar GetPreEvolution
+ callfar GetPreEvolution
ld a, [wCurPartySpecies]
dec a
push af
@@ -1510,7 +1510,7 @@ GivePoke: ; Give a Pokemon from script
.asm_e2c9
ld a, [wCurPartySpecies]
ld [wTempEnemyMonSpecies], a
- callab LoadEnemyMon
+ callfar LoadEnemyMon
call SentPkmnIntoBox
jp nc, Functione3af
ld a, BOXMON
@@ -1596,7 +1596,7 @@ GivePoke: ; Give a Pokemon from script
jr .asm_e38d
.asm_e381
- callab Functionc7cd0
+ callfar Functionc7cd0
pop de
jr c, .asm_e38d
call InitNickname
@@ -1625,7 +1625,7 @@ Functione3af: ; e3af (3:63af)
ret
TextJump_WasSentToBillsPC:
- text_jump Text_WasSentToBillsPC
+ text_far Text_WasSentToBillsPC
db "@"
InitNickname: ; e3b9 (3:63b9)
@@ -1635,7 +1635,7 @@ InitNickname: ; e3b9 (3:63b9)
pop de
push de
ld b, $0
- callba NamingScreen
+ farcall NamingScreen
pop hl
ld de, wStringBuffer1
call InitName
diff --git a/engine/namingscreen.asm b/engine/namingscreen.asm
index 54147ee9..52cc06c7 100644
--- a/engine/namingscreen.asm
+++ b/engine/namingscreen.asm
@@ -95,7 +95,7 @@ Function11b2a:
inc de
hlcoord 5, 4
call PlaceString
- callba GetGender
+ farcall GetGender
jr c, .asm_11b68
ld a, "♂"
jr nz, .place_gender
@@ -290,14 +290,14 @@ Function11cd4: ; 11cd4 (4:5cd4)
bit 7, a
jr nz, .asm_11cef
call Function11d27
- callba AnimatedObjects_PlayFrameAndDelay
+ farcall AnimatedObjects_PlayFrameAndDelay
call Function11cff
call DelayFrame
and a
ret
.asm_11cef
- callab ClearAnimatedObjectBuffer
+ callfar ClearAnimatedObjectBuffer
call ClearSprites
xor a
ld [hSCX], a
@@ -817,7 +817,7 @@ Function11fde: ; 11fde (4:5fde)
Function1201e: ; 1201e (4:601e)
call ClearSprites
- callab ClearAnimatedObjectBuffer
+ callfar ClearAnimatedObjectBuffer
call Functiond9e
call LoadFontsExtra
ld de, NamingScreenGFX_MiddleLine ; $6232
@@ -1005,14 +1005,14 @@ Function1238d: ; 1238d (4:638d)
bit 7, a
jr nz, .asm_123a8
call Function123d5
- callba AnimatedObjects_PlayFrameAndDelay
+ farcall AnimatedObjects_PlayFrameAndDelay
call Function123b8
call DelayFrame
and a
ret
.asm_123a8
- callab ClearAnimatedObjectBuffer
+ callfar ClearAnimatedObjectBuffer
call ClearSprites
xor a
ld [hSCX], a
diff --git a/engine/overworld/map_objects.asm b/engine/overworld/map_objects.asm
index 2bf5fda2..593a1d75 100755
--- a/engine/overworld/map_objects.asm
+++ b/engine/overworld/map_objects.asm
@@ -605,7 +605,7 @@ Function554b: ; 554b (1:554b)
ret nc
ld d, h
ld e, l
- callba CopyTempObjectToObjectStruct
+ farcall CopyTempObjectToObjectStruct
ret
Function5558: ; 5558 (1:5558)
@@ -717,14 +717,14 @@ Function55ef: ; 55ef (1:55ef)
call Function5636
jr c, Function5613
call Function561b
- callba Function4441 ; same bank
+ farcall Function4441 ; same bank
xor a
ret
Function5606: ; 5606 (1:5606)
call Function5636
jr c, Function5613
- callba Function4441 ; same bank
+ farcall Function4441 ; same bank
xor a
ret
@@ -748,7 +748,7 @@ Function561b: ; 561b (1:561b)
ld hl, $e
add hl, bc
ld [hl], a
- callba UpdateGrassPriority ; same bank
+ farcall UpdateGrassPriority ; same bank
ret
Function5636: ; 5636 (1:5636)
@@ -931,7 +931,7 @@ Function5730:: ; 5730 (1:5730)
ld [wcf39], a
ld [wPlayerObjectStepFrame], a
call Function574f
- callba Function14a44
+ farcall Function14a44
call c, Function5770
call Function5761
ret
@@ -974,7 +974,7 @@ StartFollow::
ret c
ld a, c
call Function57a2
- callba QueueFollowerFirstStep
+ farcall QueueFollowerFirstStep
ret
Function578b: ; 578b (1:578b)
@@ -1015,7 +1015,7 @@ Function57bd: ; 57bd (1:57bd)
cp $ff
ret z
call GetObjectStruct
- callba Function5859 ; same bank
+ farcall Function5859 ; same bank
ld a, $ff
ld [wObjectFollow_Follower], a
ret
diff --git a/engine/overworld/player_movement.asm b/engine/overworld/player_movement.asm
index 1fdec4e2..8af7c726 100755
--- a/engine/overworld/player_movement.asm
+++ b/engine/overworld/player_movement.asm
@@ -576,7 +576,7 @@ Function10341: ; 10341 (4:4341)
add e
ld e, a
ld bc, wPlayerSprite
- callba Function7120
+ farcall Function7120
jr nc, .asm_10369
call Function1036f
jr c, .asm_1036c
diff --git a/engine/overworld/time.asm b/engine/overworld/time.asm
index 7ad065fc..ce847b18 100755
--- a/engine/overworld/time.asm
+++ b/engine/overworld/time.asm
@@ -148,7 +148,7 @@ CheckPokerusTick:
and a
jr z, .asm_118e6
ld b, a
- callba ApplyPokerusTick ; same bank
+ farcall ApplyPokerusTick ; same bank
.asm_118e6
xor a
ret
@@ -217,7 +217,7 @@ Function11934: ; 11934 (4:5934)
ld hl, wCurHPAnimMaxHP
call Function1182e
call CloseSRAM
- callba Function2a4f6
+ farcall Function2a4f6
.asm_1195e
ld a, BANK(sMysteryGiftTimer)
call OpenSRAM
diff --git a/engine/pack.asm b/engine/pack.asm
index b8e4725e..54bd23cc 100755
--- a/engine/pack.asm
+++ b/engine/pack.asm
@@ -115,12 +115,12 @@ Pack_InitTMHMPocket:
ret
Pack_TMHMPocketMenu:
- callba Pack_TMHMPocketMenu_
+ farcall Pack_TMHMPocketMenu_
ld b, $5
ld c, $1
call Function10cef
ret c
- callba CheckTossableItem_
+ farcall CheckTossableItem_
ld a, [wItemAttributeParamBuffer]
and a
jr nz, .asm_1053a
@@ -180,15 +180,15 @@ TMHMPocketSubmenuJumptable_Give:
dw QuitItemSubmenu
UseTMorHM:
- callba AskTeachTMHM
+ farcall AskTeachTMHM
ret c
- callba ChooseMonToLearnTMHM
+ farcall ChooseMonToLearnTMHM
jr c, .asm_105a9
ld hl, wOptions
ld a, [hl]
push af
res 4, [hl]
- callba TeachTMHM
+ farcall TeachTMHM
pop af
ld [wOptions], a
.asm_105a9
@@ -228,29 +228,29 @@ Pack_BallsPocketMenu:
ret
Function105f5: ; 105f5 (4:45f5)
- callba CheckTossableItem_
+ farcall CheckTossableItem_
ld a, [wItemAttributeParamBuffer]
and a
jr nz, .asm_10629
- callba CheckSelectableItem
+ farcall CheckSelectableItem
ld a, [wItemAttributeParamBuffer]
and a
jr nz, .asm_1061b
- callba CheckItemMenu
+ farcall CheckItemMenu
ld a, [wItemAttributeParamBuffer]
and a
jr nz, .asm_10637
jr .asm_10657
.asm_1061b
- callba CheckItemMenu
+ farcall CheckItemMenu
ld a, [wItemAttributeParamBuffer]
and a
jr nz, .asm_1063f
jr .asm_1065f
.asm_10629
- callba CheckSelectableItem
+ farcall CheckSelectableItem
ld a, [wItemAttributeParamBuffer]
and a
jr nz, .asm_10647
@@ -417,7 +417,7 @@ ItemSubmenuJumptable_GiveTossQuit:
dw QuitItemSubmenu
UseItem:
- callba CheckItemMenu
+ farcall CheckItemMenu
ld a, [wItemAttributeParamBuffer]
ld hl, .Jumptable
rst JumpTable
@@ -470,7 +470,7 @@ UseItem:
TossMenu:
ld hl, Text_ThrowAwayHowMany
call Function10cb9
- callba SelectQuantityToToss ; 9:4f20
+ farcall SelectQuantityToToss ; 9:4f20
push af
call ExitMenu
pop af
@@ -521,7 +521,7 @@ Function107cd:
ret
RegisterItem:
- callba CheckSelectableItem
+ farcall CheckSelectableItem
ld a, [wItemAttributeParamBuffer]
and a
jr nz, .asm_10826
@@ -560,16 +560,16 @@ GiveItem:
ld a, $8
ld [wPartyMenuActionText], a
call ClearBGPalettes
- callba LoadPartyMenuGFX
- callba InitPartyMenuWithCancel
- callba InitPartyMenuGFX
+ farcall LoadPartyMenuGFX
+ farcall InitPartyMenuWithCancel
+ farcall InitPartyMenuGFX
.asm_10857
- callba WritePartyMenuTilemap
- callba PrintPartyMenuText
+ farcall WritePartyMenuTilemap
+ farcall PrintPartyMenuText
call WaitBGMap
call SetPalettes
call DelayFrame
- callba PartyMenuSelect
+ farcall PartyMenuSelect
jr c, .asm_108a5
ld a, [wCurPartySpecies]
cp EGG
@@ -609,7 +609,7 @@ Function108b6: ; 108b6 (4:48b6)
ret
Text_AnEggCantHoldAnItem:
- text_jump Text_AnEGGCantHoldAnItem
+ text_far Text_AnEGGCantHoldAnItem
db "@"
QuitItemSubmenu:
@@ -733,7 +733,7 @@ BattlePack_InitTMHMPocket:
ret
BattlePack_TMHMPocketMenu:
- callba Pack_TMHMPocketMenu_ ; b:457a
+ farcall Pack_TMHMPocketMenu_ ; b:457a
ld b, $5
ld c, $1
call Function10cef
@@ -771,7 +771,7 @@ BattlePack_BallsPocketMenu:
ret
Function10a03: ; 10a03 (4:4a03)
- callba CheckItemContext
+ farcall CheckItemContext
ld a, [wItemAttributeParamBuffer]
Function10a0c: ; 10a0c (4:4a0c)
and a
@@ -828,7 +828,7 @@ BattlePackQuitJumptable:
dw BattlePack_QuitSubmenu
BattlePack_UseItem:
- callba CheckItemContext
+ farcall CheckItemContext
ld a, [wItemAttributeParamBuffer]
ld hl, $4a67
rst JumpTable
@@ -972,7 +972,7 @@ DepositOrSell_TMHMPocket:
ld a, $3
call Function10b92
call Function10cca
- callba Pack_TMHMPocketMenu_ ; b:457a
+ farcall Pack_TMHMPocketMenu_ ; b:457a
ld a, [wd002]
ld [wd002], a
ret
@@ -1058,7 +1058,7 @@ TutorialPack:
ld a, [wInputType]
or a
jr z, .asm_10bfa
- callba DudeAutoInput_RightA ; 70:4dee
+ farcall DudeAutoInput_RightA ; 70:4dee
.asm_10bfa
call Function10c07
call Function10b9f
@@ -1125,7 +1125,7 @@ TutorialTMHM:
ld a, $3
call Function10b92
call Function10cca
- callba Pack_TMHMPocketMenu_
+ farcall Pack_TMHMPocketMenu_
ld a, [wd002]
ld [wd002], a
ret
@@ -1278,7 +1278,7 @@ Function10cef: ; 10cef (4:4cef)
ret
.asm_10d3e
- callba SwitchItemsInBag ; 9:4834
+ farcall SwitchItemsInBag ; 9:4834
ld hl, Text_MoveItemWhere
call Function10cb9
scf
@@ -1295,7 +1295,7 @@ Function10cef: ; 10cef (4:4cef)
ret
.asm_10d58
- callba SwitchItemsInBag ; 9:4834
+ farcall SwitchItemsInBag ; 9:4834
ld de, SFX_SWITCH_POKEMON
call WaitPlaySFX
ld de, SFX_SWITCH_POKEMON
@@ -1525,47 +1525,47 @@ PC_Mart_BallsPocketMenuDataHeader:
dba UpdateItemDescription ; 9:43eb
Text_PackNoItems:
- text_jump Text_PackNoItems_
+ text_far Text_PackNoItems_
db "@"
Text_ThrowAwayHowMany:
- text_jump Text_ThrowAwayHowMany_
+ text_far Text_ThrowAwayHowMany_
db "@"
Text_ConfirmThrowAway:
- text_jump Text_ConfirmThrowAway_
+ text_far Text_ConfirmThrowAway_
db "@"
Text_ThrewAway:
- text_jump Text_ThrewAway_
+ text_far Text_ThrewAway_
db "@"
Text_ThisIsntTheTime:
- text_jump Text_ThisIsntTheTime_
+ text_far Text_ThisIsntTheTime_
db "@"
Text_YouDontHaveAPokemon:
- text_jump Text_YouDontHaveAMon
+ text_far Text_YouDontHaveAMon
db "@"
Text_RegisteredTheItem:
- text_jump Text_RegisteredTheItem_
+ text_far Text_RegisteredTheItem_
db "@"
Text_CantRegisterThatItem:
- text_jump Text_CantRegisterThatItem_
+ text_far Text_CantRegisterThatItem_
db "@"
Text_MoveItemWhere:
- text_jump Text_MoveItemWhere_
+ text_far Text_MoveItemWhere_
db "@"
Text_PackEmptyString:
- text_jump Text_PackEmptyString_
+ text_far Text_PackEmptyString_
db "@"
Text_CantUseItInABattle:
- text_jump Text_YouCantUseItInABattle
+ text_far Text_YouCantUseItInABattle
db "@"
PackMenuGFX: INCBIN "gfx/misc/pack_menu.2bpp"
diff --git a/engine/sine.asm b/engine/sine.asm
index 4341e848..9a730219 100644
--- a/engine/sine.asm
+++ b/engine/sine.asm
@@ -37,4 +37,4 @@ Sine_e:: ; 8ac9 (2:4ac9)
ret
.SineWave:
- sine_wave $100
+ sine_table $100
diff --git a/engine/specials.asm b/engine/specials.asm
index b26b6bf1..78d281c0 100755
--- a/engine/specials.asm
+++ b/engine/specials.asm
@@ -157,7 +157,7 @@ GameCornerPrizeMonCheckDex: ; c38a
call FadeToMenu
ld a, [wScriptVar]
ld [wd151], a
- callba NewPokedexEntry
+ farcall NewPokedexEntry
call ExitAllMenus
ret
@@ -170,28 +170,28 @@ UnusedSetSeenMon: ; c3ac
FindPartyMonAboveLevel: ; c3b4
ld a, [wScriptVar]
ld b, a
- callba PartySearch_MaximumLevel ; same bank
+ farcall PartySearch_MaximumLevel ; same bank
jr z, asm_c3f2
jr asm_c3ec
FindPartyMonAtLeastThatHappy: ; c3c2
ld a, [wScriptVar]
ld b, a
- callba PartySearch_MinimumHappiness ; same bank
+ farcall PartySearch_MinimumHappiness ; same bank
jr z, asm_c3f2
jr asm_c3ec
FindPartyMonThatSpecies: ; c3d0
ld a, [wScriptVar]
ld b, a
- callba PartySearch_SameSpecies ; same bank
+ farcall PartySearch_SameSpecies ; same bank
jr z, asm_c3f2
jr asm_c3ec
FindPartyMonThatSpeciesYourTrainerID: ; c3de
ld a, [wScriptVar]
ld b, a
- callba PartySearch_SameSpeciesAndYourID ; same bank
+ farcall PartySearch_SameSpeciesAndYourID ; same bank
jr z, asm_c3f2
jr asm_c3ec
@@ -208,7 +208,7 @@ asm_c3f2
NameRival: ; c3f7
ld b, $2
ld de, wRivalName
- callba NamingScreen_
+ farcall NamingScreen_
ld hl, wRivalName
ld de, .DefaultName
call InitName
@@ -224,31 +224,31 @@ IF DEF(SILVER)
ENDC
NameRater:
- callba _NameRater
+ farcall _NameRater
ret
OverworldTownMap: ; c41a (3:441a)
call FadeToMenu
- callba Function9188a
+ farcall Function9188a
call ExitAllMenus
ret
UnownPrinter: ; c427 (3:4427)
call FadeToMenu
- callba Function16e3a
+ farcall Function16e3a
call ExitAllMenus
ret
DisplayLinkRecord: ; c434 (3:4434)
call FadeToMenu
- callba Function3f55d
+ farcall Function3f55d
call ExitAllMenus
ret
PlayersHousePC: ; c441 (3:4441)
xor a
ld [wScriptVar], a
- callba Function159b0
+ farcall Function159b0
ld a, c
ld [wScriptVar], a
ret
@@ -294,11 +294,11 @@ GetMysteryGiftItem: ; c463 (3:4463)
ret
ReceivedMysteryGiftText:
- text_jump ReceivedMysteryGiftText_
+ text_far ReceivedMysteryGiftText_
db "@"
BugContestJudging: ; c4a4 (3:44a4)
- callba Function13a5f
+ farcall Function13a5f
ld a, b
ld [wScriptVar], a
ret
@@ -306,12 +306,12 @@ BugContestJudging: ; c4a4 (3:44a4)
MapRadio: ; c4af (3:44af)
ld a, [wScriptVar]
ld e, a
- callba Function919c1
+ farcall Function919c1
ret
UnownPuzzle: ; c4ba (3:44ba)
call FadeToMenu
- callba Functione199d
+ farcall Functione199d
ld a, [wFieldMoveSucceeded]
ld [wScriptVar], a
call ExitAllMenus
@@ -380,11 +380,11 @@ Functionc508: ; c508 (3:4508)
ret
.NoCoinsText:
- text_jump NoCoinsText_
+ text_far NoCoinsText_
db "@"
.NoCoinCaseText:
- text_jump NoCoinCaseText_
+ text_far NoCoinCaseText_
db "@"
ClearBGPalettesBufferScreen: ; c535 (3:4535)
@@ -404,7 +404,7 @@ Functionc53c: ; c53c (3:453c)
ret
UnusedCheckUnusedTwoDayTimer: ; c549 (3:4549)
- callba Function118f8
+ farcall Function118f8
ld a, [wUnusedTwoDayTimer]
ld [wScriptVar], a
ret
@@ -440,17 +440,17 @@ Functionc56c:
ret
CheckPokerus: ; c588 (3:4588)
- callba Functionc7a40
+ farcall Functionc7a40
jp Functionc53c
ResetLuckyNumberShowFlag: ; c591 (3:4591)
- callba Function11917
+ farcall Function11917
ClearFlag ENGINE_LUCKY_NUMBER_SHOW
- callba LoadOrRegenerateLuckyIDNumber
+ farcall LoadOrRegenerateLuckyIDNumber
ret
CheckLuckyNumberShowFlag: ; c5a3 (3:45a3)
- callba Function1192e
+ farcall Function1192e
jp Functionc53c
CountUnown: ; c5ac (3:45ac)
@@ -467,7 +467,7 @@ CountUnown: ; c5ac (3:45ac)
ret
SelectApricornForKurt: ; c5bb (3:45bb)
- callba Function24b8d
+ farcall Function24b8d
ld a, c
ld [wScriptVar], a
and a
@@ -554,13 +554,13 @@ FadeOutMusic: ; c628 (3:4628)
Diploma: ; c638 (3:4638)
call FadeToMenu
- callba Functione0002
+ farcall Functione0002
call ExitAllMenus
ret
PrintDiploma: ; c645 (3:4645)
call FadeToMenu
- callba Function84684
+ farcall Function84684
call ExitAllMenus
ret
diff --git a/engine/step_types.asm b/engine/step_types.asm
index 98ae1964..91858f98 100755
--- a/engine/step_types.asm
+++ b/engine/step_types.asm
@@ -560,7 +560,7 @@ Function4ea4: ; 4ea4 (1:4ea4)
add hl, bc
ld a, [hl]
ld b, a
- callba CopyDECoordsToMapObject
+ farcall CopyDECoordsToMapObject
pop bc
ld hl, $5
add hl, bc
diff --git a/engine/title.asm b/engine/title.asm
index 4e9a2d3a..b2546dd2 100755
--- a/engine/title.asm
+++ b/engine/title.asm
@@ -1,7 +1,7 @@
IntroSequence: ; 6241 (1:6241)
- callab Copyright_GFPresents
+ callfar Copyright_GFPresents
jr c, StartTitleScreen
- callab GoldSilverIntro
+ callfar GoldSilverIntro
StartTitleScreen:
call InitTitleScreen
call DelayFrame
@@ -58,7 +58,7 @@ InitTitleScreen: ; 6291 (1:6291)
ld bc, $2000
xor a
call ByteFill
- callba ClearAnimatedObjectBuffer
+ farcall ClearAnimatedObjectBuffer
ld hl, TitleScreenGFX1
ld de, $9000
@@ -237,7 +237,7 @@ TitleScreenFrame: ; 63da (1:63da)
call Function640f
ld a, $1
ld [hOAMUpdate], a
- callba AnimatedObjects_PlayFrame
+ farcall AnimatedObjects_PlayFrame
xor a
ld [hOAMUpdate], a
call Function64b1
@@ -369,11 +369,11 @@ Function648b:
ret
DeleteSaveData:
- callba DeleteSaveData_
+ farcall DeleteSaveData_
jp Init
ResetClock:
- callba ResetClock_
+ farcall ResetClock_
jp Init
Function64b1: ; 64b1 (1:64b1)
diff --git a/home.asm b/home.asm
index 9d4722d2..c715fe56 100644
--- a/home.asm
+++ b/home.asm
@@ -1082,7 +1082,7 @@ GetTMHMName:: ; 36cc (0:36cc)
push de
ld a, [wd151]
ld c, a
- callab GetTMHMNumber
+ callfar GetTMHMNumber
pop de
pop af
ld a, c
@@ -1230,7 +1230,7 @@ StoneQueueWarpAction:: ; 37b9 (0:37b9)
call IsThisObjectInTheStoneTable
jr nc, .asm_37dc
call CallMapScript
- callba EnableScriptMode
+ farcall EnableScriptMode
scf
ret
@@ -1715,7 +1715,7 @@ GetNick::
ld bc, $b
call CopyBytes
pop de
- callab CheckNickErrors
+ callfar CheckNickErrors
pop bc
pop hl
ret
diff --git a/home/battle.asm b/home/battle.asm
index d7d56dda..a29db60f 100644
--- a/home/battle.asm
+++ b/home/battle.asm
@@ -101,8 +101,8 @@ RefreshBattleHuds::
jp WaitBGMap
UpdateBattleHuds:: ; 3bf8 (0:3bf8)
- callba UpdatePlayerHUD
- callba UpdateEnemyHUD
+ farcall UpdatePlayerHUD
+ farcall UpdateEnemyHUD
ret
GetBattleVar::
diff --git a/home/copy.asm b/home/copy.asm
index a3017fd4..50f25e15 100644
--- a/home/copy.asm
+++ b/home/copy.asm
@@ -25,19 +25,19 @@ Functiond70:: ; d70 (0:0d70)
ret
ReplacePlayerSprite::
- callba Function1413c
+ farcall Function1413c
ret
Functiond9e::
- callba Functionf8000
+ farcall Functionf8000
ret
Functionda5::
- callba Functionf8032
+ farcall Functionf8032
ret
LoadFontsExtra::
- callba Functionf800c
+ farcall Functionf800c
ret
DecompressRequest2bpp::
diff --git a/home/flag.asm b/home/flag.asm
index 8f01d8ef..2b455439 100644
--- a/home/flag.asm
+++ b/home/flag.asm
@@ -99,7 +99,7 @@ FlagAction:: ; 2f36 (0:2f36)
CheckReceivedDex::
ld de, ENGINE_POKEDEX
ld b, CHECK_FLAG
- callba EngineFlagAction
+ farcall EngineFlagAction
ld a, c
and a
ret
diff --git a/home/init.asm b/home/init.asm
index cf5c18c9..aaf71bb1 100644
--- a/home/init.asm
+++ b/home/init.asm
@@ -101,14 +101,14 @@ Init:: ; 5d1 (0:05d1)
ld h, $9c
call BlankBGMap
- callab InitCGBPals
+ callfar InitCGBPals
ld a, $9c
ld [hBGMapAddress + 1], a
xor a
ld [hBGMapAddress], a
- callba StartClock
+ farcall StartClock
ld a, SRAM_ENABLE
ld [MBC3SRamEnable], a
diff --git a/home/item.asm b/home/item.asm
index bee5f678..abad27f2 100644
--- a/home/item.asm
+++ b/home/item.asm
@@ -1,12 +1,12 @@
DoItemEffect::
- callba DoItemEffect_
+ farcall DoItemEffect_
ret
CheckTossableItem::
push hl
push de
push bc
- callba CheckTossableItem_
+ farcall CheckTossableItem_
pop bc
pop de
pop hl
diff --git a/home/joypad.asm b/home/joypad.asm
index 3f3a0b43..4f629a9f 100644
--- a/home/joypad.asm
+++ b/home/joypad.asm
@@ -289,7 +289,7 @@ JoyWaitInput:: ; a77 (0:0a77)
ld a, [wInputType]
or a
jr z, .wait_loop
- callba DudeAutoInput_A
+ farcall DudeAutoInput_A
.wait_loop
call JoyBlinkCursor
@@ -318,7 +318,7 @@ JoyBlinkCursor:: ; aa6 (0:0aa6)
.cursor_off
ld a, "─"
.load_cursor_state
- Coorda 18, 17
+ ldcoord_a 18, 17
ret
BlinkCursor:: ; ab6 (0:0ab6)
diff --git a/home/map.asm b/home/map.asm
index ea4b5a26..f2d26b72 100644
--- a/home/map.asm
+++ b/home/map.asm
@@ -187,7 +187,7 @@ endr
ReturnToMapFromSubmenu::
ld a, $fa
ld [hMapEntryMethod], a
- callba RunMapSetupScript
+ farcall RunMapSetupScript
xor a
ld [hMapEntryMethod], a
ret
@@ -199,10 +199,10 @@ Function2086::
call GetCurrentMapTrigger
call ResetBikeFlags
ld a, $5
- call RunMapCallback
- callba Function97c2a
+ call RunMapfarcallck
+ farcall Function97c2a
ld a, $3
- call RunMapCallback
+ call RunMapfarcallck
call GetMapHeaderTimeOfDayNybble
ld [wMapTimeOfDay], a
ret
@@ -210,8 +210,8 @@ Function2086::
Function20ac::
ld a, $1
ld [wRTCEnabled], a
- callba Function8c3e9
- callba UpdateTimeOfDayPal
+ farcall Function8c3e9
+ farcall UpdateTimeOfDayPal
call OverworldTextModeSwitch
call Function20c7
call Function20e6
@@ -224,7 +224,7 @@ Function20c7:: ; 20c7 (0:20c7)
ld [wd05b], a
ld [hSCY], a
ld [hSCX], a
- callba ApplyBGMapAnchorToObjects
+ farcall ApplyBGMapAnchorToObjects
ld a, $60
ld bc, $400
ld hl, $9800
@@ -268,7 +268,7 @@ Function2112::
ld [hMapAnims], a
xor a
ld [hTileAnimFrame], a
- callba Function1416d
+ farcall Function1416d
call LoadFontsExtra
ret
@@ -280,8 +280,8 @@ Function212d::
call ClearSprites
call ResetBGWindow
call GetMovementPermissions
- callba Function5730
- callba Function15612
+ farcall Function5730
+ farcall Function15612
ld hl, wd182
bit 6, [hl]
jr nz, .asm_2151
@@ -484,7 +484,7 @@ Function2293::
call Function22ad
ret nc
push bc
- callba Function14a2d
+ farcall Function14a2d
pop bc
ret nc
call Function2302
@@ -498,7 +498,7 @@ Function22a5::
ret
Function22ad:: ; 22ad (0:22ad)
- callba Function14a18
+ farcall Function14a18
ret nc
ld a, [hROMBank]
push af
@@ -742,7 +742,7 @@ ReadMapScripts:: ; 242e (0:242e)
ld h, [hl]
ld l, a
call ReadMapTriggers
- call ReadMapCallbacks
+ call ReadMapfarcallcks
ret
CopySecondMapHeader:: ; 243b (0:243b)
@@ -811,7 +811,7 @@ ReadMapTriggers:: ; 248b (0:248b)
call AddNTimes
ret
-ReadMapCallbacks:: ; 24a2 (0:24a2)
+ReadMapfarcallcks:: ; 24a2 (0:24a2)
ld a, [hli]
ld c, a
ld [wd954], a
@@ -1035,7 +1035,7 @@ LoadBlockData::
call ChangeMap
call FillMapConnections
ld a, $1
- call RunMapCallback
+ call RunMapfarcallck
ret
ChangeMap:: ; 260d (0:260d)
@@ -1256,24 +1256,24 @@ CallMapScript::
call GetMapScriptHeaderBank
jr CallScript
-RunMapCallback:: ; 2764 (0:2764)
+RunMapfarcallck:: ; 2764 (0:2764)
ld b, a
ld a, [hROMBank]
push af
call SwitchToMapScriptHeaderBank
- call FindCallback
+ call Findfarcallck
jr nc, .asm_2779
call GetMapScriptHeaderBank
ld b, a
ld d, h
ld e, l
- call ExecuteCallbackScript
+ call ExecutefarcallckScript
.asm_2779
pop af
rst Bankswitch
ret
-FindCallback:: ; 277c (0:277c)
+Findfarcallck:: ; 277c (0:277c)
ld a, [wd954]
ld c, a
and a
@@ -1303,16 +1303,16 @@ FindCallback:: ; 277c (0:277c)
scf
ret
-ExecuteCallbackScript:: ; 279d (0:279d)
- callba CallCallback
+ExecutefarcallckScript:: ; 279d (0:279d)
+ farcall Callfarcallck
ld a, [wd15e]
push af
ld hl, wd15b
ld a, [hl]
push af
set 1, [hl]
- callba EnableScriptMode
- callba ScriptEvents
+ farcall EnableScriptMode
+ farcall ScriptEvents
pop af
ld [wd15b], a
pop af
@@ -1389,21 +1389,21 @@ ObjectEvent::
jumptextfaceplayer ObjectEventText
ObjectEventText::
- text_jump _ObjectEventText
+ text_far _ObjectEventText
db "@"
BGEvent::
jumptext BGEventText
BGEventText::
- text_jump BGEventText_
+ text_far BGEventText_
db "@"
CoordinatesEvent::
jumptext CoordinatesEventText
CoordinatesEventText::
- text_jump CoordinatesEventText_
+ text_far CoordinatesEventText_
db "@"
CheckObjectMask::
@@ -1616,7 +1616,7 @@ LoadTileset:: ; 2944 (0:2944)
jr .asm_2966
.asm_2960
- callba LoadMapGroupRoof
+ farcall LoadMapGroupRoof
.asm_2966
xor a
ld [hTileAnimFrame], a
@@ -2098,7 +2098,7 @@ FadeToMenu::
xor a
ld [hBGMapMode], a
call LoadStandardMenuDataHeader
- callba FadeOutPalettes
+ farcall FadeOutPalettes
call ClearSprites
call DisableSpriteUpdates
ret
@@ -2121,7 +2121,7 @@ FinishExitMenu::
ld b, $9
call GetSGBLayout
call Function3456
- callba FadeInPalettes
+ farcall FadeInPalettes
call EnableSpriteUpdates
ret
@@ -2151,7 +2151,7 @@ ReturnToMapWithSpeechTextbox::
ReloadTilesetAndPalettes:: ; 2c87 (0:2c87)
call DisableLCD
call ClearSprites
- callba RefreshSprites
+ farcall RefreshSprites
call Functiond9e
call LoadFontsExtra
ld a, [hROMBank]
@@ -2161,7 +2161,7 @@ ReloadTilesetAndPalettes:: ; 2c87 (0:2c87)
ld a, [wMapNumber]
ld c, a
call SwitchToAnyMapBank
- callba UpdateTimeOfDayPal
+ farcall UpdateTimeOfDayPal
call OverworldTextModeSwitch
call LoadTileset
ld a, $8
diff --git a/home/map_objects.asm b/home/map_objects.asm
index 94fe60f4..8742ed5e 100644
--- a/home/map_objects.asm
+++ b/home/map_objects.asm
@@ -3,7 +3,7 @@ GetSpritePalette:: ; 169c
push de
push bc
ld c, a
- callba GetSpritePalette_
+ farcall GetSpritePalette_
ld a, c
pop bc
pop de
@@ -292,7 +292,7 @@ CopyObjectStruct::
call UnmaskObject
ld a, [hConnectionStripLength]
call GetMapObject
- callba CopyObjectStruct_
+ farcall CopyObjectStruct_
ret
ApplyDeletionToMapObject:: ; 1804 (0:1804)
@@ -308,7 +308,7 @@ ApplyDeletionToMapObject:: ; 1804 (0:1804)
call DeleteOject_CheckStopFollow
pop af
call GetObjectStruct
- callba DeleteMapObject
+ farcall DeleteMapObject
ret
DeleteOject_CheckStopFollow:: ; 1822 (0:1822)
@@ -319,7 +319,7 @@ DeleteOject_CheckStopFollow:: ; 1822 (0:1822)
cp [hl]
ret nz
.asm_182d
- callba StopFollow
+ farcall StopFollow
ld a, $ff
ld [wObjectFollow_Leader], a
ld [wObjectFollow_Follower], a
@@ -368,7 +368,7 @@ Function1855::
.asm_187b
ld a, b
call GetObjectStruct
- callba DeleteMapObject
+ farcall DeleteMapObject
ret
LoadMovementDataPointer::
@@ -556,8 +556,8 @@ UpdateSprites:: ; 196f (0:196f)
ld a, [wVramState]
bit 0, a
ret z
- callba Function557f
- callba UpdateSprites_
+ farcall Function557f
+ farcall UpdateSprites_
ret
GetObjectStruct:: ; 1982 (0:1982)
diff --git a/home/math.asm b/home/math.asm
index 1be69c33..ffa3c282 100644
--- a/home/math.asm
+++ b/home/math.asm
@@ -44,7 +44,7 @@ Multiply::
push hl
push bc
- callab Multiply_ ; 1:67bd
+ callfar Multiply_ ; 1:67bd
pop bc
pop hl
diff --git a/home/rtc.asm b/home/rtc.asm
index ca014e46..afe9028e 100644
--- a/home/rtc.asm
+++ b/home/rtc.asm
@@ -14,9 +14,9 @@ RTC:: ; 343
ret z
TimeOfDayPals:: ; 352
- callab _TimeOfDayPals
+ callfar _TimeOfDayPals
ret
UpdateTimePals:: ; 359
- callab _UpdateTimePals
+ callfar _UpdateTimePals
ret
diff --git a/home/serial.asm b/home/serial.asm
index 645f531f..c57d77ee 100644
--- a/home/serial.asm
+++ b/home/serial.asm
@@ -256,13 +256,13 @@ Function7ec:: ; 7ec
Function813:: ; 813
call BackUpTilesToBuffer
- callab PlaceWaitingText
+ callfar PlaceWaitingText
call WaitLinkTransfer
jp ReloadTilesFromBuffer
Function822:: ; 822
call BackUpTilesToBuffer
- callab PlaceWaitingText
+ callfar PlaceWaitingText
jp WaitLinkTransfer
; One "giant" leap for machinekind
diff --git a/home/text.asm b/home/text.asm
index 994cc7e5..85bda81a 100644
--- a/home/text.asm
+++ b/home/text.asm
@@ -315,7 +315,7 @@ PlaceEnemysName:: ; 10fb (0:10fb)
call PlaceString
push bc
- callab Battle_GetTrainerName
+ callfar Battle_GetTrainerName
pop hl
ld de, wStringBuffer1
@@ -483,7 +483,7 @@ NullChar:: ; 120c (0:120c)
ret
.ErrorText
- deciram hObjectStructIndexBuffer, 1, 2
+ text_decimal hObjectStructIndexBuffer, 1, 2
text "エラー"
done
@@ -525,12 +525,12 @@ Diacritic:: ; 124a (0:124a)
LoadBlinkingCursor:: ; 1255 (0:1255)
ld a, "▼"
- Coorda 18, 17
+ ldcoord_a 18, 17
ret
UnloadBlinkingCursor:: ; 125b (0:125b)
ld a, "─"
- Coorda 18, 17
+ ldcoord_a 18, 17
ret
FarString::
@@ -802,14 +802,14 @@ Text_TX_CRY
pop bc
ret
-TextSFX:: ; 13ad (0:13ad)
- dbw TX_SOUND_0B, SFX_DEX_FANFARE_50_79
- dbw TX_SOUND_12, SFX_FANFARE
- dbw TX_SOUND_0E, SFX_DEX_FANFARE_20_49
- dbw TX_SOUND_0F, SFX_ITEM
- dbw TX_SOUND_10, SFX_CAUGHT_MON
- dbw TX_SOUND_11, SFX_DEX_FANFARE_80_109
- dbw TX_SOUND_13, SFX_SLOT_MACHINE_START
+TextSFX::
+ dbw TX_SOUND_DEX_FANFARE_50_79, SFX_DEX_FANFARE_50_79
+ dbw TX_SOUND_FANFARE, SFX_FANFARE
+ dbw TX_SOUND_DEX_FANFARE_20_49, SFX_DEX_FANFARE_20_49
+ dbw TX_SOUND_ITEM, SFX_ITEM
+ dbw TX_SOUND_CAUGHT_MON, SFX_CAUGHT_MON
+ dbw TX_SOUND_DEX_FANFARE_80_109, SFX_DEX_FANFARE_80_109
+ dbw TX_SOUND_SLOT_MACHINE_START, SFX_SLOT_MACHINE_START
db -1
Text_TX_DOTS:: ; 13c3 (0:13c3)
diff --git a/home/tilemap.asm b/home/tilemap.asm
index 9b2a41da..569cf08a 100644
--- a/home/tilemap.asm
+++ b/home/tilemap.asm
@@ -21,12 +21,12 @@ SetMenuAttributes:: ; 1a4e
ret
StaticMenuJoypad:: ; 1a66 (0:1a66)
- callab StaticMenuJoypad_
+ callfar StaticMenuJoypad_
call GetMenuJoypad
ret
ScrollingMenuJoypad:: ; 1a70 (0:1a70)
- callab ScrollingMenuJoypad_
+ callfar ScrollingMenuJoypad_
call GetMenuJoypad
ret
@@ -62,17 +62,17 @@ HideCursor::
ret
PushWindow:: ; 1a9d (0:1a9d)
- callab PushWindow_
+ callfar PushWindow_
ret
ExitMenu:: ; 1aa4 (0:1aa4)
push af
- callab ExitMenu_
+ callfar ExitMenu_
pop af
ret
InitVerticalMenuCursor:: ; 1aad (0:1aad)
- callab InitVerticalMenuCursor_
+ callfar InitVerticalMenuCursor_
ret
CloseWindow:: ; 1ab4 (0:1ab4)
diff --git a/home/time.asm b/home/time.asm
index fc5cf13d..8acc72d9 100644
--- a/home/time.asm
+++ b/home/time.asm
@@ -12,7 +12,7 @@ UpdateTime:: ; 467 (0:0467)
call GetClock
call FixDays
call FixTime
- callba Function14032
+ farcall Function14032
ret
GetClock:: ; 477 (0:0477)
@@ -136,7 +136,7 @@ SetDayOfWeek::
jr InitTime
InitTime::
- callba Function140ff
+ farcall Function140ff
ret
PanicResetClock::
diff --git a/home/window.asm b/home/window.asm
index d7f1d9df..e4a1e989 100644
--- a/home/window.asm
+++ b/home/window.asm
@@ -32,7 +32,7 @@ CloseText
call SafeUpdateSprites
ld a, $90
ld [hWY], a
- callba Function1415c
+ farcall Function1415c
call ReplacePlayerSprite
ld hl, wd565
res 7, [hl]
diff --git a/items/item_effects.asm b/items/item_effects.asm
index 51523d62..506dc77f 100755
--- a/items/item_effects.asm
+++ b/items/item_effects.asm
@@ -345,7 +345,7 @@ UltraBall: ; e926
ld d, a
push de
- ; BUG: callba overwrites a,
+ ; BUG: farcall overwrites a,
; and GetItemHeldEffect takes b anyway.
; This is probably the reason
@@ -356,7 +356,7 @@ UltraBall: ; e926
ld a, [wBattleMonItem]
; ld b, a
- callba GetItemHeldEffect ; d:7e9b
+ farcall GetItemHeldEffect ; d:7e9b
ld a, b
cp HELD_CATCH_CHANCE
pop de
@@ -450,7 +450,7 @@ UltraBall: ; e926
ld [wCurPartySpecies], a
ld a, [wEnemyMonLevel]
ld [wCurPartyLevel], a
- callba LoadEnemyMon
+ farcall LoadEnemyMon
pop af
ld [wEnemySubStatus5], a
pop hl
@@ -546,7 +546,7 @@ UltraBall: ; e926
xor a
ld [wMonType], a
ld b, $0
- callba NamingScreen
+ farcall NamingScreen
call RotateThreePalettesRight
call Functiond9e
pop hl
@@ -585,7 +585,7 @@ UltraBall: ; e926
ld [wMonType], a
ld de, wMonOrItemNameBuffer
ld b, $0
- callba NamingScreen
+ farcall NamingScreen
ld a, $1
call OpenSRAM
ld hl, wMonOrItemNameBuffer
@@ -611,7 +611,7 @@ UltraBall: ; e926
jr .end_ball_function
.catch_bug_contest_mon
- callba BugContest_SetCaughtContestMon ; same bank
+ farcall BugContest_SetCaughtContestMon ; same bank
jr .end_ball_function
.finish_tutorial
@@ -842,7 +842,7 @@ LoveBallMultiplier:
ld [wMonType], a
ld a, [wCurBattleMon]
ld [wCurPartyMon], a
- callba GetGender ; 14:52f1
+ farcall GetGender ; 14:52f1
jr c, .asm_edba
ld d, $0
jr nz, .asm_ed8d
@@ -853,7 +853,7 @@ LoveBallMultiplier:
ld [wCurPartySpecies], a
ld a, $4
ld [wMonType], a
- callba GetGender ; 14:52f1
+ farcall GetGender ; 14:52f1
jr c, .asm_edb9
ld d, $0
jr nz, .asm_eda6
@@ -940,32 +940,32 @@ LevelBallMultiplier:
; They are not used in gen 2, and are dummied out.
Text_ThisMonCantBeCaught:
- text_jump Text_ThisMonCantBeCaught_
+ text_far Text_ThisMonCantBeCaught_
db "@"
Text_YouMissedThePokemon:
- text_jump Text_YouMissedThePokemon_
+ text_far Text_YouMissedThePokemon_
db "@"
Text_ThePokemonBrokeFree:
- text_jump Text_ThePokemonBrokeFree_
+ text_far Text_ThePokemonBrokeFree_
db "@"
Text_AppearedToBeCaught:
- text_jump Text_AppearedToBeCaught_
+ text_far Text_AppearedToBeCaught_
db "@"
Text_AarghAlmostHadIt:
- text_jump Text_AarghAlmostHadIt_
+ text_far Text_AarghAlmostHadIt_
db "@"
Text_ShootItWasSoCloseToo:
- text_jump Text_ShootItWasSoCloseToo_
+ text_far Text_ShootItWasSoCloseToo_
db "@"
Text_GotchaMonWasCaught:
- text_jump Text_GotchaMonWasCaught_
- start_asm
+ text_far Text_GotchaMonWasCaught_
+ text_asm
call WaitSFX
push bc
ld de, MUSIC_NONE
@@ -978,31 +978,31 @@ Text_GotchaMonWasCaught:
ret
Text_CaughtMonWaitbutton:
- text_jump Text_Waitbutton_2
+ text_far Text_Promptbutton_2
db "@"
Text_SentToBillsPC:
- text_jump Text_SentToBillsPC_
+ text_far Text_SentToBillsPC_
db "@"
Text_MonNewlyAddedToPokedex:
- text_jump Text_MonNewlyAddedToPokedex_
+ text_far Text_MonNewlyAddedToPokedex_
db "@"
Text_AskNicknameNewlyCaughtMon:
- text_jump Text_AskNicknameNewlyCaughtMon_
+ text_far Text_AskNicknameNewlyCaughtMon_
db "@"
ReturnToBattle_UseBall: ; ee4e (3:6e4e)
- callba ReturnToBattle_UseBall_ ; 9:7307
+ farcall ReturnToBattle_UseBall_ ; 9:7307
ret
TownMap: ; ee55 (3:6e55)
- callba TownMap_ ; 24:5a4f
+ farcall TownMap_ ; 24:5a4f
ret
Bicycle: ; ee5c
- callba BicycleFunction ; same bank
+ farcall BicycleFunction ; same bank
ret
FireStone: ; ee63
@@ -1021,7 +1021,7 @@ WaterStone: ; ee63
jr z, .failed
ld a, $1
ld [wd0d2], a
- callba EvolvePokemon ; 10:61db
+ farcall EvolvePokemon ; 10:61db
ld a, [wd154]
and a
jr z, .failed
@@ -1067,7 +1067,7 @@ Protein: ; ee91
ld hl, Text_StatRoseFromVitamin ; $6efa
call PrintText
ld c, HAPPINESS_USEDITEM
- callba ChangeHappiness
+ farcall ChangeHappiness
jp Functionf7dc
Functioneed7:
@@ -1091,7 +1091,7 @@ Functioneef3: ; eef3 (3:6ef3)
jp ClearPalettes
Text_StatRoseFromVitamin:
- text_jump Text_StatRoseFromVitamin_
+ text_far Text_StatRoseFromVitamin_
db "@"
StatStrings:
@@ -1159,7 +1159,7 @@ RareCandy: ; ef68 (3:6f68)
ld [wCurPartyLevel], a
push de
ld d, a
- callba CalcExpAtLevel
+ farcall CalcExpAtLevel
pop de
ld a, $8
call GetPartyParamLocation
@@ -1193,7 +1193,7 @@ RareCandy: ; ef68 (3:6f68)
adc b
ld [hl], a
ld c, $1
- callba ChangeHappiness
+ farcall ChangeHappiness
ld a, PARTYMENUTEXT_LEVEL_UP
call Functionf2a0
xor a
@@ -1214,7 +1214,7 @@ RareCandy: ; ef68 (3:6f68)
predef LearnLevelMoves
xor a
ld [wd0d2], a
- callba EvolvePokemon
+ farcall EvolvePokemon
jp Functionf7dc
HealPowder: ; f003 (3:7003)
@@ -1225,7 +1225,7 @@ HealPowder: ; f003 (3:7003)
cp $0
jr nz, .asm_f01f
ld c, $f
- callba ChangeHappiness
+ farcall ChangeHappiness
call Functionf81d
ld a, $0
.asm_f01f
@@ -1320,7 +1320,7 @@ Functionf086: ; f086 (3:7086)
res 7, [hl]
.asm_f0a5
push bc
- callba CalcPlayerStats ; d:66f6
+ farcall CalcPlayerStats ; d:66f6
pop bc
ret
@@ -1380,7 +1380,7 @@ RevivalHerb: ; f0ff
cp $0
jr nz, .asm_f11b
ld c, $11
- callba ChangeHappiness
+ farcall ChangeHappiness
call Functionf81d
ld a, $0
.asm_f11b
@@ -1510,7 +1510,7 @@ asm_f1e8
pop bc
cp $0
jr nz, .asm_f1fc
- callba ChangeHappiness
+ farcall ChangeHappiness
call Functionf81d
ld a, $0
.asm_f1fc
@@ -1581,15 +1581,15 @@ Functionf261: ; f261 (3:7261)
ret
Functionf272: ; f272 (3:7272)
- callba LoadPartyMenuGFX
- callba InitPartyMenuWithCancel
- callba InitPartyMenuGFX
- callba WritePartyMenuTilemap
- callba PrintPartyMenuText
+ farcall LoadPartyMenuGFX
+ farcall InitPartyMenuWithCancel
+ farcall InitPartyMenuGFX
+ farcall WritePartyMenuTilemap
+ farcall PrintPartyMenuText
call WaitBGMap
call SetPalettes
call DelayFrame
- callba PartyMenuSelect
+ farcall PartyMenuSelect
ret
Functionf2a0: ; f2a0 (3:72a0)
@@ -1601,8 +1601,8 @@ Functionf2a0: ; f2a0 (3:72a0)
push hl
push de
push bc
- callba WritePartyMenuTilemap
- callba PrintPartyMenuActionText
+ farcall WritePartyMenuTilemap
+ farcall PrintPartyMenuActionText
call WaitBGMap
call SetPalettes
call DelayFrame
@@ -1922,13 +1922,13 @@ Functionf46f: ; f46f (3:746f)
jr Functionf46f
Text_MilkDrinkCantBeUsed:
- text_jump Text_MilkDrinkCantBeUsed_
+ text_far Text_MilkDrinkCantBeUsed_
db "@"
EscapeRope: ; f4a5 (3:74a5)
xor a
ld [wFieldMoveSucceeded], a
- callba EscapeRopeFunction ; same bank
+ farcall EscapeRopeFunction ; same bank
ld a, [wFieldMoveSucceeded]
cp $1
call z, Functionf7dc
@@ -1954,7 +1954,7 @@ asm_f4c2
jp Functionf7d0
Text_RepelsEffectsStillLinger:
- text_jump Text_RepelUsedEarlierIsStillInEffect
+ text_far Text_RepelUsedEarlierIsStillInEffect
db "@"
XAccuracy: ; f4d8 (3:74d8)
@@ -2014,14 +2014,14 @@ XSpeed: ; f515
ld [hBattleTurn], a
ld [wcb45], a
ld [wcbeb], a
- callba CheckIfStatCanBeRaised
+ farcall CheckIfStatCanBeRaised
call WaitSFX
- callba BattleCommand_StatUpMessage
- callba BattleCommand_StatUpFailText
+ farcall BattleCommand_StatUpMessage
+ farcall BattleCommand_StatUpFailText
ld a, [wCurBattleMon]
ld [wCurPartyMon], a
ld c, HAPPINESS_USEDXITEM
- callba ChangeHappiness
+ farcall ChangeHappiness
ret
.x_item_table
@@ -2087,16 +2087,16 @@ Functionf5a4: ; f5a4 (3:75a4)
ret
Text_NowThatsACatchyTune:
- text_jump Text_NowThatsACatchyTune_
+ text_far Text_NowThatsACatchyTune_
db "@"
Text_AllSleepingMonWokeUp:
- text_jump Text_AllSleepingMonWokeUp_
+ text_far Text_AllSleepingMonWokeUp_
db "@"
Text_PlayedThePokeFlute:
- text_jump Text_PlayedThePokeFlute_
- start_asm
+ text_far Text_PlayedThePokeFlute_
+ text_asm
ld a, [wBattleMode]
and a
jr nz, .asm_f5dc
@@ -2116,7 +2116,7 @@ CoinCase: ; f5e1 (3:75e1)
jp MenuTextBoxWaitButton
Text_CoinCase:
- text_jump Text_CoinCase_
+ text_far Text_CoinCase_
db "@"
OldRod: ; f5ec (3:75ec)
@@ -2132,11 +2132,11 @@ SuperRod: ; f5f4 (3:75f4)
jr UseRod
UseRod:
- callba FishingRodFunction ; same bank
+ farcall FishingRodFunction ; same bank
ret
Itemfinder: ; f5ff (3:75ff)
- callba ItemfinderFunction
+ farcall ItemfinderFunction
ret
Elixer: ; f606
@@ -2353,39 +2353,39 @@ Functionf72f: ; f72f (3:772f)
ret
Text_RaiseThePPOfWhichMove:
- text_jump Text_RaiseThePPOfWhichMove_
+ text_far Text_RaiseThePPOfWhichMove_
db "@"
Text_RestoreThePPOfWhichMove:
- text_jump Text_RestoreThePPOfWhichMove_
+ text_far Text_RestoreThePPOfWhichMove_
db "@"
Text_PPIsMaxedOut:
- text_jump Text_PPIsMaxedOut_
+ text_far Text_PPIsMaxedOut_
db "@"
Text_PPsIncreased:
- text_jump Text_PPsIncreased_
+ text_far Text_PPsIncreased_
db "@"
Text_PPWasRestored:
- text_jump Text_PPWasRestored_
+ text_far Text_PPWasRestored_
db "@"
Squirtbottle: ; f785 (3:7785)
- callba SquirtbottleFunction ; 14:4763
+ farcall SquirtbottleFunction ; 14:4763
ret
CardKey: ; f78c (3:778c)
- callba CardKeyFunction ; 14:47ac
+ farcall CardKeyFunction ; 14:47ac
ret
BasementKey: ; f793 (3:7793)
- callba BasementKeyFunction ; 14:47e7
+ farcall BasementKeyFunction ; 14:47e7
ret
SacredAsh: ; f79a (3:779a)
- callba SacredAshFunction ; 14:4819
+ farcall SacredAshFunction ; 14:4819
ld a, [wFieldMoveSucceeded]
cp $1
ret nz
@@ -2399,13 +2399,13 @@ NormalBox: ; f7aa (3:77aa)
GorgeousBox: ; f7ae (3:77ae)
ld c, DECOFLAG_GOLD_TROPHY_DOLL
asm_f7b0
- callba ReceiveDecorationC ; 9:70d5
+ farcall ReceiveDecorationC ; 9:70d5
ld hl, Text_TrophyInside ; $77bf
call PrintText
jp Functionf7dc
Text_TrophyInside:
- text_jump Text_TrophyInside_
+ text_far Text_TrophyInside_
db "@"
AmuletCoin: ; f7c4
@@ -2583,55 +2583,55 @@ asm_f84b
jp PrintText
Text_LooksBitter:
- text_jump Text_LooksBitter_
+ text_far Text_LooksBitter_
db "@"
Text_CantUseOnEgg:
- text_jump Text_CantUseOnEgg_
+ text_far Text_CantUseOnEgg_
db "@"
Text_IsntTheTimeToUseThat:
- text_jump Text_IsntTheTimeToUseThat_
+ text_far Text_IsntTheTimeToUseThat_
db "@"
Text_BelongsToSomeoneElse:
- text_jump Text_BelongsToSomeoneElse_
+ text_far Text_BelongsToSomeoneElse_
db "@"
Text_WontHaveAnyEffect:
- text_jump Text_WontHaveAnyEffect_
+ text_far Text_WontHaveAnyEffect_
db "@"
Text_BlockedTheBall:
- text_jump Text_BlockedTheBall_
+ text_far Text_BlockedTheBall_
db "@"
Text_DontBeAThief:
- text_jump Text_DontBeAThief_
+ text_far Text_DontBeAThief_
db "@"
Text_CyclingIsntAllowed:
- text_jump Text_CyclingIsntAllowed_
+ text_far Text_CyclingIsntAllowed_
db "@"
Text_CantGetOnYourItemNow:
- text_jump Text_CantGetOnYourItemNow_
+ text_far Text_CantGetOnYourItemNow_
db "@"
Text_CantUseBallBoxIsFull:
- text_jump Text_CantUseBallBoxIsFull_
+ text_far Text_CantUseBallBoxIsFull_
db "@"
Text_UsedItem:
- text_jump Text_UsedItem_
+ text_far Text_UsedItem_
db "@"
Text_GotOnItem:
- text_jump Text_GotOnItem_
+ text_far Text_GotOnItem_
db "@"
Text_GotOffItem:
- text_jump Text_GotOffItem_
+ text_far Text_GotOffItem_
db "@"
Functionf893: ; f893 (3:7893)
diff --git a/macros.asm b/macros.asm
index f3070d40..530e417b 100644
--- a/macros.asm
+++ b/macros.asm
@@ -1,23 +1,28 @@
INCLUDE "macros/enum.asm"
-INCLUDE "macros/basestats.asm"
+INCLUDE "macros/predef.asm"
+INCLUDE "macros/rst.asm"
+INCLUDE "macros/data.asm"
INCLUDE "macros/code.asm"
+INCLUDE "macros/gfx.asm"
+INCLUDE "macros/coords.asm"
INCLUDE "macros/scripts/audio.asm"
INCLUDE "macros/scripts/maps.asm"
INCLUDE "macros/scripts/events.asm"
-INCLUDE "macros/text.asm"
-INCLUDE "macros/charmap.asm"
+INCLUDE "macros/scripts/text.asm"
+INCLUDE "macros/scripts/movement.asm"
+INCLUDE "macros/scripts/trade_anims.asm"
+INCLUDE "macros/scripts/gfx_anims.asm"
+
INCLUDE "macros/move_effect.asm"
INCLUDE "macros/move_anim.asm"
-INCLUDE "macros/movement.asm"
INCLUDE "macros/pic.asm"
-INCLUDE "macros/predef.asm"
-INCLUDE "macros/rst.asm"
INCLUDE "macros/mobile.asm"
-INCLUDE "macros/trade_anim.asm"
INCLUDE "macros/pals.asm"
INCLUDE "macros/flag.asm"
+;INCLUDE "macros/legacy.asm"
+
dr: macro
IF DEF(GOLD)
INCBIN "baserom-gold.gbc", \1, \2 +- \1
@@ -27,257 +32,3 @@ INCBIN "baserom-silver.gbc", \1, \2 +- \1
ENDC
ENDC
ENDM
-
-RGB: MACRO
- dw ((\3) << 10) + ((\2) << 5) + (\1)
- ENDM
-
-
-percent EQUS "* $ff / 100"
-
-
-dwb: MACRO
- dw \1
- db \2
- ENDM
-
-dbw: MACRO
- db \1
- dw \2
- ENDM
-
-dbbw: MACRO
- db \1, \2
- dw \3
- ENDM
-
-dbww: MACRO
- db \1
- dw \2, \3
- ENDM
-
-dbwww: MACRO
- db \1
- dw \2, \3, \4
- ENDM
-
-dn: MACRO
- rept _NARG / 2
- db (\1) << 4 + (\2)
- shift
- shift
- endr
- ENDM
-
-dx: MACRO
-x = 8 * ((\1) - 1)
- rept \1
- db ((\2) >> x) & $ff
-x = x + -8
- endr
- ENDM
-
-dt: MACRO ; three-byte (big-endian)
- dx 3, \1
- ENDM
-
-dd: MACRO ; four-byte (big-endian)
- dx 4, \1
- ENDM
-
-bigdw: MACRO ; big-endian word
- dx 2, \1
- ENDM
-
-dba: MACRO ; dbw bank, address
- rept _NARG
- dbw BANK(\1), \1
- shift
- endr
- ENDM
-
-dab: MACRO ; dwb address, bank
- rept _NARG
- dwb \1, BANK(\1)
- shift
- endr
- ENDM
-
-bccoord equs "coord bc,"
-decoord equs "coord de,"
-hlcoord equs "coord hl,"
-
-coord: MACRO
-; register, x, y[, origin]
- if _NARG < 4
- ld \1, wTileMap + SCREEN_WIDTH * (\3) + (\2)
- else
- ld \1, \4 + SCREEN_WIDTH * (\3) + (\2)
- endc
- ENDM
-
-dwcoord: MACRO
- rept _NARG / 2
- dw wTileMap + SCREEN_WIDTH * (\2) + (\1)
- shift
- shift
- endr
- ENDM
-
-Coorda: MACRO
- if _NARG < 3
- ld [wTileMap + SCREEN_WIDTH * (\2) + (\1)], a
- else
- ld [\3 + SCREEN_WIDTH * (\2) + (\1)], a
- endc
- ENDM
-
-aCoord: MACRO
- if _NARG < 3
- ld a, [wTileMap + SCREEN_WIDTH * (\2) + (\1)]
- else
- ld a, [\3 + SCREEN_WIDTH * (\2) + (\1)]
- endc
- ENDM
-
-; pic animations
-frame: MACRO
- db \1
-x = \2
-IF _NARG > 2
-rept _NARG +- 2
-x = x | (1 << (\3 + 1))
- shift
-endr
-endc
- db x
- ENDM
-setrepeat: MACRO
- db $fe
- db \1
- ENDM
-dorepeat: MACRO
- db $fd
- db \1
- ENDM
-endanim: MACRO
- db $ff
- ENDM
-
-
-delanim: MACRO
- db $fc
- ENDM
-dorestart: MACRO
- db $fe
- ENDM
-
-sine_wave: MACRO
-; \1: amplitude
-
-x = 0
- rept $20
- ; Round up.
- dw (sin(x) + (sin(x) & $ff)) >> 8
-x = x + (\1) * $40000
- endr
-ENDM
-
-
-bcd: MACRO
- rept _NARG
- dn ((\1) % 100) / 10, (\1) % 10
- shift
- endr
-ENDM
-
-tiles EQUS "* $10"
-tile EQUS "+ $10 *"
-
-partymon: MACRO
- db \1
- db \2
- db \3, \4, \5, \6
- dw \7
- dt \8
-rept 8
- shift
-endr
-rept 5
- bigdw \1
- shift
-endr
- db \1, \2
- db \3, \4, \5, \6
-rept 6
- shift
-endr
- db \1
- db \2, \3, \4
- db \5
- db \6, \7
-rept 7
- shift
-endr
-rept 7
- bigdw \1
- shift
-endr
- db \1
-ENDM
-
-palettes EQUS "* 8"
-
-dbpixel: MACRO
-if _NARG >= 4
- db \1 * 8 + \3, \2 * 8 + \4
-else
- db \1 * 8, \2 * 8
-endc
-endm
-
-bgcoord: MACRO
-IF _NARG >= 4
- ld \1, \3 * $20 + \2 + \4
-ELSE
- ld \1, \3 * $20 + \2 + VBGMap0
-ENDC
-ENDM
-
-hlbgcoord EQUS "bgcoord hl,"
-debgcoord EQUS "bgcoord de,"
-bcbgcoord EQUS "bgcoord bc,"
-bgrows EQUS "* $20"
-
-palred EQUS "$0001 *"
-palgreen EQUS "$0020 *"
-palblue EQUS "$0400 *"
-
-dsprite: MACRO
-; conditional segment is there because not every instance of
-; this macro is directly OAM
-if _NARG >= 7 ; y tile, y pxl, x tile, x pxl, vtile offset, flags, palette
- db (\1 * 8) % $100 + \2, (\3 * 8) % $100 + \4, \5, (\6 << 3) + (\7 & 7)
-else
- db (\1 * 8) % $100 + \2, (\3 * 8) % $100 + \4, \5, \6
-endc
-endm
-
-menu_coords: MACRO
-; x1, y1, x2, y2
- db \2, \1 ; start coords
- db \4, \3 ; end coords
-ENDM
-
-homecall: MACRO
- ld a, [hROMBank]
- push af
- ld a, BANK(\1)
- rst Bankswitch
-
- call \1
-
- pop af
- rst Bankswitch
-ENDM
-
diff --git a/macros/basestats.asm b/macros/basestats.asm
deleted file mode 100644
index f2fbbee9..00000000
--- a/macros/basestats.asm
+++ /dev/null
@@ -1,30 +0,0 @@
-define: macro
-if !def(\1)
-\1 equs \2
-endc
-endm
-
-const_value = 0
-
-add_tm: MACRO
-if !def(TM01)
-TM01 = const_value
- enum_start 1
-endc
- define _\@_1, "TM_\1"
- const _\@_1
- enum \1_TMNUM
-ENDM
-
-add_hm: MACRO
-if !def(HM01)
-HM01 = const_value
-endc
- define _\@_1, "HM_\1"
- const _\@_1
- enum \1_TMNUM
-ENDM
-
-add_mt: MACRO
- enum \1_TMNUM
-ENDM
diff --git a/macros/coords.asm b/macros/coords.asm
new file mode 100755
index 00000000..0833c242
--- /dev/null
+++ b/macros/coords.asm
@@ -0,0 +1,52 @@
+hlcoord EQUS "coord hl,"
+bccoord EQUS "coord bc,"
+decoord EQUS "coord de,"
+
+coord: MACRO
+; register, x, y[, origin]
+ if _NARG < 4
+ ld \1, (\3) * SCREEN_WIDTH + (\2) + wTileMap
+ else
+ ld \1, (\3) * SCREEN_WIDTH + (\2) + \4
+ endc
+ENDM
+
+hlbgcoord EQUS "bgcoord hl,"
+bcbgcoord EQUS "bgcoord bc,"
+debgcoord EQUS "bgcoord de,"
+
+bgcoord: MACRO
+; register, x, y[, origin]
+ if _NARG < 4
+ ld \1, (\3) * BG_MAP_WIDTH + (\2) + vBGMap0
+ else
+ ld \1, (\3) * BG_MAP_WIDTH + (\2) + \4
+ endc
+ENDM
+
+dwcoord: MACRO
+; x, y
+rept _NARG / 2
+ dw (\2) * SCREEN_WIDTH + (\1) + wTileMap
+ shift
+ shift
+endr
+ENDM
+
+ldcoord_a: MACRO
+; x, y[, origin]
+ if _NARG < 3
+ ld [(\2) * SCREEN_WIDTH + (\1) + wTileMap], a
+ else
+ ld [(\2) * SCREEN_WIDTH + (\1) + \3], a
+ endc
+ENDM
+
+lda_coord: MACRO
+; x, y[, origin]
+ if _NARG < 3
+ ld a, [(\2) * SCREEN_WIDTH + (\1) + wTileMap]
+ else
+ ld a, [(\2) * SCREEN_WIDTH + (\1) + \3]
+ endc
+ENDM
diff --git a/macros/data.asm b/macros/data.asm
new file mode 100755
index 00000000..32903b0f
--- /dev/null
+++ b/macros/data.asm
@@ -0,0 +1,126 @@
+; Value macros
+
+percent EQUS "* $ff / 100"
+
+; Constant data (db, dw, dl) macros
+
+dwb: MACRO
+ dw \1
+ db \2
+ENDM
+
+dbw: MACRO
+ db \1
+ dw \2
+ENDM
+
+dbbw: MACRO
+ db \1, \2
+ dw \3
+ENDM
+
+dbww: MACRO
+ db \1
+ dw \2, \3
+ENDM
+
+dbwww: MACRO
+ db \1
+ dw \2, \3, \4
+ENDM
+
+dn: MACRO ; nybbles
+rept _NARG / 2
+ db ((\1) << 4) | (\2)
+ shift
+ shift
+endr
+ENDM
+
+dc: MACRO ; "crumbs"
+rept _NARG / 4
+ db ((\1) << 6) | ((\2) << 4) | ((\3) << 2) | (\4)
+ shift
+ shift
+ shift
+ shift
+endr
+ENDM
+
+dx: MACRO
+x = 8 * ((\1) - 1)
+rept \1
+ db ((\2) >> x) & $ff
+x = x + -8
+endr
+ENDM
+
+dt: MACRO ; three-byte (big-endian)
+ dx 3, \1
+ENDM
+
+dd: MACRO ; four-byte (big-endian)
+ dx 4, \1
+ENDM
+
+bigdw: MACRO ; big-endian word
+ dx 2, \1 ; db HIGH(\1), LOW(\1)
+ENDM
+
+dba: MACRO ; dbw bank, address
+rept _NARG
+ dbw BANK(\1), \1
+ shift
+endr
+ENDM
+
+dab: MACRO ; dwb address, bank
+rept _NARG
+ dwb \1, BANK(\1)
+ shift
+endr
+ENDM
+
+dba_pic: MACRO ; dbw bank, address
+ db BANK(\1) - PICS_FIX
+ dw \1
+ENDM
+
+dbpixel: MACRO
+if _NARG >= 4
+; x tile, x pxl, y tile, y pxl
+ db \1 * 8 + \3, \2 * 8 + \4
+else
+; x, y
+ db \1 * 8, \2 * 8
+endc
+ENDM
+
+dsprite: MACRO
+; y tile, y pxl, x tile, x pxl, vtile offset, attributes
+ db (\1 * 8) % $100 + \2, (\3 * 8) % $100 + \4, \5, \6
+ENDM
+
+menu_coords: MACRO
+; x1, y1, x2, y2
+ db \2, \1 ; start coords
+ db \4, \3 ; end coords
+ENDM
+
+bcd: MACRO
+rept _NARG
+ dn ((\1) % 100) / 10, (\1) % 10
+ shift
+endr
+ENDM
+
+sine_table: MACRO
+; \1: amplitude
+
+x = 0
+ rept $20
+ ; Round up.
+ dw (sin(x) + (sin(x) & $ff)) >> 8
+x = x + (\1) * $40000
+ endr
+ENDM
diff --git a/macros/enum.asm b/macros/enum.asm
index 4830c339..003445be 100644..100755
--- a/macros/enum.asm
+++ b/macros/enum.asm
@@ -1,6 +1,6 @@
; Enumerate variables
-enum_start: macro
+enum_start: MACRO
if _NARG >= 1
__enum__ = \1
else
@@ -11,16 +11,16 @@ __enumdir__ = \2
else
__enumdir__ = +1
endc
-endm
+ENDM
-enum: macro
-\1 = __enum__
+enum: MACRO
+\1 EQU __enum__
__enum__ = __enum__ + __enumdir__
-endm
+ENDM
-enum_set: macro
+enum_set: MACRO
__enum__ = \1
-endm
+ENDM
; Enumerate constants
@@ -41,3 +41,11 @@ shift_const: MACRO
\1 EQU (1 << const_value)
const_value = const_value + 1
ENDM
+
+; Enumerate strings
+
+define: MACRO
+if !DEF(\1)
+\1 EQUS \2
+endc
+ENDM
diff --git a/macros/gfx.asm b/macros/gfx.asm
new file mode 100755
index 00000000..2753373e
--- /dev/null
+++ b/macros/gfx.asm
@@ -0,0 +1,24 @@
+RGB: MACRO
+rept _NARG / 3
+ dw palred (\1) + palgreen (\2) + palblue (\3)
+ shift
+ shift
+ shift
+endr
+ENDM
+
+palred EQUS "(1 << 0) *"
+palgreen EQUS "(1 << 5) *"
+palblue EQUS "(1 << 10) *"
+
+palettes EQUS "* PALETTE_SIZE"
+palette EQUS "+ PALETTE_SIZE *"
+color EQUS "+ PAL_COLOR_SIZE *"
+
+tiles EQUS "* LEN_2BPP_TILE"
+tile EQUS "+ LEN_2BPP_TILE *"
+
+; extracts the middle two colors from a 2bpp binary palette
+; example usage:
+; INCBIN "foo.gbcpal", middle_colors
+middle_colors EQUS "PAL_COLOR_SIZE, PAL_COLOR_SIZE * 2"
diff --git a/macros/legacy.asm b/macros/legacy.asm
new file mode 100755
index 00000000..7192195f
--- /dev/null
+++ b/macros/legacy.asm
@@ -0,0 +1,244 @@
+; Legacy support for old pokecrystal.
+; Allows porting scripts with as few edits as possible.
+; Legacy support not in this file can be found by looking for the keyword: "LEGACY"
+
+; macros/rst.asm
+callba EQUS "farcall"
+callab EQUS "callfar"
+
+; macros/scripts/audio.asm
+unknownmusic0xde EQUS "sound_duty"
+
+; macros/scripts/events.asm
+
+checkmorn EQUS "checktime MORN"
+checkday EQUS "checktime DAY"
+checknite EQUS "checktime NITE"
+
+jump EQUS "sjump"
+farjump EQUS "farsjump"
+priorityjump EQUS "prioritysjump"
+ptcall EQUS "memcall"
+ptjump EQUS "memjump"
+ptpriorityjump EQUS "stopandsjump"
+ptcallasm EQUS "memcallasm"
+
+if_equal EQUS "ifequal"
+if_not_equal EQUS "ifnotequal"
+if_greater_than EQUS "ifgreater"
+if_less_than EQUS "ifless"
+end_all EQUS "endall"
+
+checkmaptriggers EQUS "checkmapscene"
+domaptrigger EQUS "setmapscene"
+checktriggers EQUS "checkscene"
+dotrigger EQUS "setscene"
+
+faceperson EQUS "faceobject"
+moveperson EQUS "moveobject"
+writepersonxy EQUS "writeobjectxy"
+spriteface EQUS "turnobject"
+objectface EQUS "turnobject"
+applymovement2 EQUS "applymovementlasttalked"
+
+writebyte EQUS "setval"
+addvar EQUS "addval"
+copybytetovar EQUS "readmem"
+copyvartobyte EQUS "writemem"
+checkcode EQUS "readvar"
+writevarcode EQUS "writevar"
+writecode EQUS "loadvar"
+
+MEM_BUFFER_0 EQUS "STRING_BUFFER_3"
+MEM_BUFFER_1 EQUS "STRING_BUFFER_4"
+MEM_BUFFER_2 EQUS "STRING_BUFFER_5"
+
+vartomem EQUS "getnum"
+mapnametotext EQUS "getcurlandmarkname"
+readcoins EQUS "getcoins"
+
+pokenamemem: MACRO
+ getmonname \2, \1
+ENDM
+
+itemtotext: MACRO
+ getitemname \2, \1
+ENDM
+
+landmarktotext: MACRO
+ getlandmarkname \2, \1
+ENDM
+
+trainertotext: MACRO
+ gettrainername \3, \1, \2
+ENDM
+
+trainerclassname: MACRO
+ gettrainerclassname \2, \1
+ENDM
+
+name: MACRO
+ getname \3, \1, \2
+ENDM
+
+stringtotext: MACRO
+ getstring \2, \1
+ENDM
+
+readmoney: MACRO
+ getmoney \2, \1
+ENDM
+
+RAM2MEM EQUS "getnum"
+loadfont EQUS "opentext"
+loadmenudata EQUS "loadmenu"
+loadmenuheader EQUS "loadmenu"
+writebackup EQUS "closewindow"
+interpretmenu EQUS "_2dmenu"
+interpretmenu2 EQUS "verticalmenu"
+buttonsound EQUS "promptbutton"
+battlecheck EQUS "randomwildmon"
+loadtrainerdata EQUS "loadtemptrainer"
+loadpokedata EQUS "loadwildmon"
+returnafterbattle EQUS "reloadmapafterbattle"
+trainerstatus EQUS "trainerflagaction"
+talkaftercancel EQUS "endifjustbattled"
+talkaftercheck EQUS "checkjustbattled"
+playrammusic EQUS "encountermusic"
+reloadmapmusic EQUS "dontrestartmapmusic"
+resetfuncs EQUS "endall"
+storetext EQUS "battletowertext"
+displaylocation EQUS "landmarktotext"
+givepokeitem EQUS "givepokemail"
+checkpokeitem EQUS "checkpokemail"
+passtoengine EQUS "autoinput"
+verbosegiveitem2 EQUS "verbosegiveitemvar"
+loadbytec2cf EQUS "writeunusedbytebuffer"
+
+; macros/scripts/maps.asm
+
+mapconst: MACRO
+ map_const \1, \3, \2
+ENDM
+
+maptrigger EQUS "scene_script"
+
+warp_def: MACRO
+ warp_event \2, \1, \4, \3
+ENDM
+
+xy_trigger: MACRO
+ coord_event \3, \2, \1, \5
+ENDM
+
+signpost: MACRO
+ bg_event \2, \1, \3, \4
+ENDM
+
+person_event: MACRO
+; object_event \3, \2, \1, \4, \5, \6, \7, \8, \9, \10, \11, \12, \13
+ db \1, \2 + 4, \3 + 4, \4
+ dn \6, \5
+ db \7, \8
+ shift
+ dn \8, \9
+ shift
+ db \9
+ shift
+ dw \9
+ shift
+ dw \9
+ENDM
+
+PERSONTYPE_SCRIPT EQUS "OBJECTTYPE_SCRIPT"
+PERSONTYPE_ITEMBALL EQUS "OBJECTTYPE_ITEMBALL"
+PERSONTYPE_TRAINER EQUS "OBJECTTYPE_TRAINER"
+
+; macros/scripts/movement.asm
+
+show_person EQUS "show_object"
+hide_person EQUS "hide_object"
+remove_person EQUS "remove_object"
+
+turn_head_down EQUS "turn_head DOWN"
+turn_head_up EQUS "turn_head UP"
+turn_head_left EQUS "turn_head LEFT"
+turn_head_right EQUS "turn_head RIGHT"
+turn_step_down EQUS "turn_step DOWN"
+turn_step_up EQUS "turn_step UP"
+turn_step_left EQUS "turn_step LEFT"
+turn_step_right EQUS "turn_step RIGHT"
+slow_step_down EQUS "slow_step DOWN"
+slow_step_up EQUS "slow_step UP"
+slow_step_left EQUS "slow_step LEFT"
+slow_step_right EQUS "slow_step RIGHT"
+step_down EQUS "step DOWN"
+step_up EQUS "step UP"
+step_left EQUS "step LEFT"
+step_right EQUS "step RIGHT"
+big_step_down EQUS "big_step DOWN"
+big_step_up EQUS "big_step UP"
+big_step_left EQUS "big_step LEFT"
+big_step_right EQUS "big_step RIGHT"
+slow_slide_step_down EQUS "slow_slide_step DOWN"
+slow_slide_step_up EQUS "slow_slide_step UP"
+slow_slide_step_left EQUS "slow_slide_step LEFT"
+slow_slide_step_right EQUS "slow_slide_step RIGHT"
+slide_step_down EQUS "slide_step DOWN"
+slide_step_up EQUS "slide_step UP"
+slide_step_left EQUS "slide_step LEFT"
+slide_step_right EQUS "slide_step RIGHT"
+fast_slide_step_down EQUS "fast_slide_step DOWN"
+fast_slide_step_up EQUS "fast_slide_step UP"
+fast_slide_step_left EQUS "fast_slide_step LEFT"
+fast_slide_step_right EQUS "fast_slide_step RIGHT"
+turn_away_down EQUS "turn_away DOWN"
+turn_away_up EQUS "turn_away UP"
+turn_away_left EQUS "turn_away LEFT"
+turn_away_right EQUS "turn_away RIGHT"
+turn_in_down EQUS "turn_in DOWN"
+turn_in_up EQUS "turn_in UP"
+turn_in_left EQUS "turn_in LEFT"
+turn_in_right EQUS "turn_in RIGHT"
+turn_waterfall_down EQUS "turn_waterfall DOWN"
+turn_waterfall_up EQUS "turn_waterfall UP"
+turn_waterfall_left EQUS "turn_waterfall LEFT"
+turn_waterfall_right EQUS "turn_waterfall RIGHT"
+slow_jump_step_down EQUS "slow_jump_step DOWN"
+slow_jump_step_up EQUS "slow_jump_step UP"
+slow_jump_step_left EQUS "slow_jump_step LEFT"
+slow_jump_step_right EQUS "slow_jump_step RIGHT"
+jump_step_down EQUS "jump_step DOWN"
+jump_step_up EQUS "jump_step UP"
+jump_step_left EQUS "jump_step LEFT"
+jump_step_right EQUS "jump_step RIGHT"
+fast_jump_step_down EQUS "fast_jump_step DOWN"
+fast_jump_step_up EQUS "fast_jump_step UP"
+fast_jump_step_left EQUS "fast_jump_step LEFT"
+fast_jump_step_right EQUS "fast_jump_step RIGHT"
+
+step_sleep_1 EQUS "step_sleep 1"
+step_sleep_2 EQUS "step_sleep 2"
+step_sleep_3 EQUS "step_sleep 3"
+step_sleep_4 EQUS "step_sleep 4"
+step_sleep_5 EQUS "step_sleep 5"
+step_sleep_6 EQUS "step_sleep 6"
+step_sleep_7 EQUS "step_sleep 7"
+step_sleep_8 EQUS "step_sleep 8"
+
+; macros/scripts/text.asm
+text_from_ram EQUS "text_ram"
+start_asm EQUS "text_asm"
+deciram EQUS "text_decimal"
+interpret_data EQUS "text_pause"
+limited_interpret_data EQUS "text_dots"
+text_waitbutton EQUS "text_promptbutton"
+link_wait_button EQUS "text_linkpromptbutton"
+text_linkwaitbutton EQUS "text_linkpromptbutton"
+current_day EQUS "text_today"
+text_jump EQUS "text_far"
+
+; macros/scripts/battle_anims.asm
+anim_enemyfeetobj EQUS "anim_battlergfx_2row"
+anim_playerheadobj EQUS "anim_battlergfx_1row"
+anim_clearsprites EQUS "anim_keepsprites"
diff --git a/macros/rst.asm b/macros/rst.asm
index 23c821d9..773a5c60 100644..100755
--- a/macros/rst.asm
+++ b/macros/rst.asm
@@ -6,7 +6,7 @@ farcall: MACRO ; bank, address
ld a, BANK(\1)
ld hl, \1
rst FarCall
- ENDM
+ENDM
callfar: MACRO ; address, bank
ld hl, \1
@@ -14,10 +14,12 @@ callfar: MACRO ; address, bank
rst FarCall
ENDM
-callba EQUS "farcall"
-
-callab: MACRO ; address, bank
- ld hl, \1
+homecall: MACRO
+ ldh a, [hROMBank]
+ push af
ld a, BANK(\1)
- rst FarCall
- ENDM
+ rst Bankswitch
+ call \1
+ pop af
+ rst Bankswitch
+ENDM
diff --git a/macros/scripts/gfx_anims.asm b/macros/scripts/gfx_anims.asm
new file mode 100755
index 00000000..3756481d
--- /dev/null
+++ b/macros/scripts/gfx_anims.asm
@@ -0,0 +1,53 @@
+; pic + oam animations
+
+frame: MACRO
+ db \1
+x = \2
+if _NARG > 2
+rept _NARG + -2
+x = x | (1 << (\3 + 1))
+ shift
+endr
+endc
+ db x
+ENDM
+
+ enum_start $fc
+
+ enum delanim_command ; $fc
+delanim: MACRO
+; Removes the object from the screen, as opposed to `endanim` which just stops all motion
+ db delanim_command
+ENDM
+
+ enum dowait_command ; $fd
+dowait: MACRO
+ db dowait_command
+ db \1 ; frames
+ENDM
+
+ enum dorestart_command ; $fe
+dorestart: MACRO
+ db dorestart_command
+ENDM
+
+ enum endanim_command ; $ff
+endanim: MACRO
+ db endanim_command
+ENDM
+
+
+; Used for pic animations
+__enum__ = $fd
+
+ enum dorepeat_command ; $fd
+dorepeat: MACRO
+ db dorepeat_command
+ db \1 ; command offset to jump to
+ENDM
+
+ enum setrepeat_command ; $fe
+setrepeat: MACRO
+ db setrepeat_command
+ db \1 ; amount of times to repeat
+ENDM
diff --git a/macros/movement.asm b/macros/scripts/movement.asm
index 49d95f82..49d95f82 100644
--- a/macros/movement.asm
+++ b/macros/scripts/movement.asm
diff --git a/macros/scripts/text.asm b/macros/scripts/text.asm
new file mode 100755
index 00000000..bb1701f8
--- /dev/null
+++ b/macros/scripts/text.asm
@@ -0,0 +1,145 @@
+text EQUS "db TX_START," ; Start writing text.
+next EQUS "db \"<NEXT>\"," ; Move a line down.
+line EQUS "db \"<LINE>\"," ; Start writing at the bottom line.
+page EQUS "db \"@\"," ; Start a new Pokédex page.
+para EQUS "db \"<PARA>\"," ; Start a new paragraph.
+cont EQUS "db \"<CONT>\"," ; Scroll to the next line.
+done EQUS "db \"<DONE>\"" ; End a text box.
+prompt EQUS "db \"<PROMPT>\"" ; Prompt the player to end a text box (initiating some other event).
+
+; TextCommands indexes (see home/text.asm)
+ enum_start
+
+ enum TX_START ; $00
+text_start: MACRO
+ db TX_START
+ENDM
+
+ enum TX_RAM ; $01
+text_ram: MACRO
+ db TX_RAM
+ dw \1
+ENDM
+
+ enum TX_BCD ; $02
+text_bcd: MACRO
+ db TX_BCD
+ dw \1
+ db \2
+ENDM
+
+ enum TX_MOVE ; $03
+text_move: MACRO
+ db TX_MOVE
+ dw \1
+ENDM
+
+ enum TX_BOX ; $04
+text_box: MACRO
+ db TX_BOX
+ dw \1
+ db \2, \3
+ENDM
+
+ enum TX_LOW ; $05
+text_low: MACRO
+ db TX_LOW
+ENDM
+
+ enum TX_PROMPT_BUTTON ; $06
+text_promptbutton: MACRO
+ db TX_PROMPT_BUTTON
+ENDM
+
+ enum TX_SCROLL ; $07
+text_scroll: MACRO
+ db TX_SCROLL
+ENDM
+
+ enum TX_START_ASM ; $08
+text_asm: MACRO
+ db TX_START_ASM
+ENDM
+
+ enum TX_NUM ; $09
+text_decimal: MACRO
+ db TX_NUM
+ dw \1 ; address
+ dn \2, \3 ; bytes, digits
+ENDM
+
+ enum TX_PAUSE ; $0a
+text_pause: MACRO
+ db TX_PAUSE
+ENDM
+
+ enum TX_SOUND_DEX_FANFARE_50_79 ; $0b
+sound_dex_fanfare_50_79: MACRO
+ db TX_SOUND_DEX_FANFARE_50_79
+ENDM
+
+ enum TX_DOTS ; $0c
+text_dots: MACRO
+ db TX_DOTS
+ db \1
+ENDM
+
+ enum TX_LINK_PROMPT_BUTTON ; $0d
+text_linkpromptbutton: MACRO
+ db TX_LINK_PROMPT_BUTTON
+ENDM
+
+ enum TX_SOUND_DEX_FANFARE_20_49 ; $0e
+sound_dex_fanfare_20_49: MACRO
+ db TX_SOUND_DEX_FANFARE_20_49
+ENDM
+
+ enum TX_SOUND_ITEM ; $0f
+sound_item: MACRO
+ db TX_SOUND_ITEM
+ENDM
+
+ enum TX_SOUND_CAUGHT_MON ; $10
+sound_caught_mon: MACRO
+ db TX_SOUND_CAUGHT_MON
+ENDM
+
+ enum TX_SOUND_DEX_FANFARE_80_109 ; $11
+sound_dex_fanfare_80_109: MACRO
+ db TX_SOUND_DEX_FANFARE_80_109
+ENDM
+
+ enum TX_SOUND_FANFARE ; $12
+sound_fanfare: MACRO
+ db TX_SOUND_FANFARE
+ENDM
+
+ enum TX_SOUND_SLOT_MACHINE_START ; $13
+sound_slot_machine_start: MACRO
+ db TX_SOUND_SLOT_MACHINE_START
+ENDM
+
+ enum TX_STRINGBUFFER ; $14
+text_buffer: MACRO
+ db TX_STRINGBUFFER
+ db \1
+ENDM
+
+ enum TX_DAY ; $15
+text_today: MACRO
+ db TX_DAY
+ENDM
+
+ enum TX_FAR ; $16
+text_far: MACRO
+ db TX_FAR
+ dw \1
+ db BANK(\1)
+ENDM
+
+ enum_set $50
+
+ enum TX_END ; $50
+text_end: MACRO
+ db TX_END
+ENDM
diff --git a/macros/trade_anim.asm b/macros/scripts/trade_anims.asm
index c590cb62..c590cb62 100755
--- a/macros/trade_anim.asm
+++ b/macros/scripts/trade_anims.asm
diff --git a/macros/text.asm b/macros/text.asm
deleted file mode 100644
index 8cda714a..00000000
--- a/macros/text.asm
+++ /dev/null
@@ -1,143 +0,0 @@
-text EQUS "db $00," ; Start writing text.
-next EQUS "db $4e," ; Move a line down.
-line EQUS "db $4f," ; Start writing at the bottom line.
-para EQUS "db $51," ; Start a new paragraph.
-cont EQUS "db $55," ; Scroll to the next line.
-done EQUS "db $57" ; End a text box.
-prompt EQUS "db $58" ; Prompt the player to end a text box (initiating some other event).
-
-; Pokedex text commands are only used with pokered.
-; They are included for compatibility.
-page EQUS "db $50," ; Start a new Pokedex page.
-dex EQUS "db $e8, $50" ; End a Pokedex entry.
-
-; TX_RAM EQU $01
-; TX_FAR EQU $16
- enum_start
-
- enum TX_START
-text_start: MACRO ; 00
- db TX_START
-ENDM
-
- enum TX_RAM
-text_from_ram: MACRO ; 01
- db TX_RAM
- dw \1
- ENDM
-
- enum TX_BCD
-text_bcd: macro ; 02
- db TX_BCD
- dw \1
- db \2
- ENDM
-
- enum TX_MOVE
-text_move: macro ; 03
- db TX_MOVE
- dw \1
- ENDM
-
- enum TX_BOX
-text_box: macro ; 04
- db TX_BOX
- dw \1
- db \2, \3
- ENDM
-
- enum TX_LOW
-text_low: macro ; 05
- db TX_LOW
- endm
-
- enum WAIT_BUTTON
-text_waitbutton: macro ; 06
- db WAIT_BUTTON
- endm
-
- enum TX_SCROLL
-text_scroll: macro ; 07
- db TX_SCROLL
- endm
-
- enum START_ASM
-start_asm: macro ; 08
- db START_ASM
- endm
-
- enum TX_NUM
-deciram: macro ; 09
- db TX_NUM
- dw \1 ; address
- dn \2, \3 ; bytes, digits
- endm
-
- enum TX_EXIT
-interpret_data: macro ; 0a
- db TX_EXIT
- endm
-
- enum TX_SOUND_0B
-sound_dex_fanfare_50_79: macro ; 0b
- db TX_SOUND_0B
- endm
-
- enum TX_DOTS
-limited_interpret_data: macro ; 0c
- db TX_DOTS
- db \1
- endm
-
- enum TX_LINK_WAIT_BUTTON
-link_wait_button: macro ; 0d
- db TX_LINK_WAIT_BUTTON
- endm
-
- enum TX_SOUND_0E
-sound_dex_fanfare_20_49: macro ; 0e
- db TX_SOUND_0E
- endm
-
- enum TX_SOUND_0F
-sound_item: macro ; 0f
- db TX_SOUND_0F
- endm
-
- enum TX_SOUND_10
-sound_caught_mon: macro ; 10
- db TX_SOUND_10
- endm
-
- enum TX_SOUND_11
-sound_dex_fanfare_80_109: macro ; 11
- db TX_SOUND_11
- endm
-
- enum TX_SOUND_12
-sound_fanfare: macro ; 12
- db TX_SOUND_12
- endm
-
- enum TX_SOUND_13
-sound_slot_machine_start: macro ; 13
- db TX_SOUND_13
- endm
-
- enum TX_STRINGBUFFER
-text_buffer: macro ; 14
- db TX_STRINGBUFFER
- db \1
- endm
-
- enum TX_DAY
-current_day: macro ; 15
- db TX_DAY
- endm
-
- enum TX_FAR
-text_jump: MACRO ; 16
- db TX_FAR
- dw \1
- db BANK(\1)
- ENDM
diff --git a/main.asm b/main.asm
index 00d272f9..bb092c9a 100644
--- a/main.asm
+++ b/main.asm
@@ -420,7 +420,7 @@ GetBreedMon1LevelGrowth:
ld de, wTempMonSpecies
ld bc, $20
call CopyBytes
- callab CalcLevel
+ callfar CalcLevel
ld a, [wBreedMon1Level]
ld b, a
ld a, d
@@ -434,7 +434,7 @@ GetBreedMon2LevelGrowth:
ld de, wTempMon
ld bc, $20
call CopyBytes
- callab CalcLevel
+ callfar CalcLevel
ld a, [wBreedMon2Level]
ld b, a
ld a, d
@@ -573,8 +573,8 @@ BugContest_SetCaughtContestMon:
and a
jr z, .asm_e76e
ld [wd151], a
- callba DisplayAlreadyCaughtText
- callba DisplayCaughtContestMonStats
+ farcall DisplayAlreadyCaughtText
+ farcall DisplayCaughtContestMonStats
lb bc, 14, 7
call PlaceYesNoBox
ret c
@@ -603,7 +603,7 @@ GenerateBugContestMonStats: ; e781 (3:6781)
Text_CaughtBugMon:
; Caught @ !
- text_jump Text_CaughtBugMon_
+ text_far Text_CaughtBugMon_
db "@"
INCLUDE "items/item_effects.asm"
@@ -630,7 +630,7 @@ KnowsMove:
ret
Text_KnowsMove:
- text_jump Text_KnowsMove_
+ text_far Text_KnowsMove_
db "@"
SECTION "bank4", ROMX, BANK[$4]
@@ -1288,7 +1288,7 @@ EnableScriptMode:: ; 96b89
ScriptEvents:: ; 96b91
dr $96b91, $97365
-CallCallback:: ; 97365
+Callfarcallck:: ; 97365
dr $97365, $97a59
WarpToSpawnPoint:
diff --git a/maps/BillsHouse.asm b/maps/BillsHouse.asm
index ff83b797..69a7fda7 100644
--- a/maps/BillsHouse.asm
+++ b/maps/BillsHouse.asm
@@ -239,7 +239,7 @@ BillsGrandpaYouDontHaveItTextText:
BillsGrandpaShownPokemonText:
text "Ah, so that is"
line "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "?"
para "Isn't it cute!"
diff --git a/maps/BluesHouse.asm b/maps/BluesHouse.asm
index e402d0c9..27d46e07 100644
--- a/maps/BluesHouse.asm
+++ b/maps/BluesHouse.asm
@@ -104,7 +104,7 @@ DaisyAlrightText:
done
GroomedMonLooksContentText:
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text " looks"
line "content."
done
diff --git a/maps/CeladonCafe.asm b/maps/CeladonCafe.asm
index 90e655d2..77227fbe 100644
--- a/maps/CeladonCafe.asm
+++ b/maps/CeladonCafe.asm
@@ -196,7 +196,7 @@ EatathonContestPosterText:
FoundLeftoversText:
text "<PLAYER> found a"
line "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "."
done
diff --git a/maps/CeladonDeptStore6F.asm b/maps/CeladonDeptStore6F.asm
index d30f23f1..80c810f9 100644
--- a/maps/CeladonDeptStore6F.asm
+++ b/maps/CeladonDeptStore6F.asm
@@ -102,7 +102,7 @@ CeladonClangText:
text "Clang!"
para "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text_start
line "popped out."
done
diff --git a/maps/CeladonGameCornerPrizeRoom.asm b/maps/CeladonGameCornerPrizeRoom.asm
index 0ddca0a0..82642f83 100644
--- a/maps/CeladonGameCornerPrizeRoom.asm
+++ b/maps/CeladonGameCornerPrizeRoom.asm
@@ -233,7 +233,7 @@ CeladonPrizeRoom_AskWhichPrizeText:
CeladonPrizeRoom_ConfirmPurchaseText:
text "OK, so you wanted"
line "a @"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "?"
done
diff --git a/maps/DragonsDenB1F.asm b/maps/DragonsDenB1F.asm
index 13d20b01..0496893a 100644
--- a/maps/DragonsDenB1F.asm
+++ b/maps/DragonsDenB1F.asm
@@ -259,7 +259,7 @@ SilverText_Training2:
Text_FoundDragonFang:
text "<PLAYER> found a"
line "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "!"
done
diff --git a/maps/ElmsLab.asm b/maps/ElmsLab.asm
index a74212f4..4f7ef7b5 100644
--- a/maps/ElmsLab.asm
+++ b/maps/ElmsLab.asm
@@ -754,7 +754,7 @@ ChoseStarterText:
ReceivedStarterText:
text "<PLAYER> received"
line "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "!"
done
diff --git a/maps/GoldenrodDeptStore6F.asm b/maps/GoldenrodDeptStore6F.asm
index e718b4ee..b11be1ed 100644
--- a/maps/GoldenrodDeptStore6F.asm
+++ b/maps/GoldenrodDeptStore6F.asm
@@ -100,7 +100,7 @@ GoldenrodVendingText:
GoldenrodClangText:
text "Clang! A can of"
line "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text_start
cont "popped out!"
done
diff --git a/maps/GoldenrodGameCorner.asm b/maps/GoldenrodGameCorner.asm
index 89e9c0c9..ea87b115 100644
--- a/maps/GoldenrodGameCorner.asm
+++ b/maps/GoldenrodGameCorner.asm
@@ -374,7 +374,7 @@ GoldenrodGameCornerPrizeVendorWhichPrizeText:
done
GoldenrodGameCornerPrizeVendorConfirmPrizeText:
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "."
line "Is that right?"
done
diff --git a/maps/GoldenrodHappinessRater.asm b/maps/GoldenrodHappinessRater.asm
index 2b2093a2..0918b6b7 100644
--- a/maps/GoldenrodHappinessRater.asm
+++ b/maps/GoldenrodHappinessRater.asm
@@ -78,7 +78,7 @@ GoldenrodHappinessRaterTeacherText:
para "Oh? Let me see"
line "your @"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "…"
done
diff --git a/maps/GoldenrodUnderground.asm b/maps/GoldenrodUnderground.asm
index 1e629348..eaecc1c5 100644
--- a/maps/GoldenrodUnderground.asm
+++ b/maps/GoldenrodUnderground.asm
@@ -617,19 +617,19 @@ UnknownText_0x7c87b:
done
HaircutBrosText_SlightlyHappier:
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text " looks a"
line "little happier."
done
HaircutBrosText_Happier:
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text " looks"
line "happy."
done
HaircutBrosText_MuchHappier:
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text " looks"
line "delighted!"
done
diff --git a/maps/LakeOfRageMagikarpHouse.asm b/maps/LakeOfRageMagikarpHouse.asm
index 52c5a1e0..4731ec48 100644
--- a/maps/LakeOfRageMagikarpHouse.asm
+++ b/maps/LakeOfRageMagikarpHouse.asm
@@ -199,10 +199,10 @@ LakeOfRageMagikarpHouseUnusedRecordText:
text "CURRENT RECORD"
para "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text " caught by"
line "@"
- text_from_ram wStringBuffer4
+ text_ram wStringBuffer4
db "@@"
LakeOfRageMagikarpHouse_MapEvents:
diff --git a/maps/Pokecenter2F.asm b/maps/Pokecenter2F.asm
index 82b63a39..4d3d7413 100644
--- a/maps/Pokecenter2F.asm
+++ b/maps/Pokecenter2F.asm
@@ -499,7 +499,7 @@ Text_PleaseEnter:
Text_RejectNewMon:
text "Sorry--@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text_start
line "can't be taken."
prompt
@@ -507,17 +507,17 @@ Text_RejectNewMon:
Text_RejectMonWithNewMove:
text "You can't take the"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " with a"
cont "@"
- text_from_ram wStringBuffer2
+ text_ram wStringBuffer2
text "."
prompt
Text_RejectMonWithMail:
text "You can't take the"
line "@"
- text_from_ram wStringBuffer1
+ text_ram wStringBuffer1
text " that"
cont "has MAIL with you."
prompt
diff --git a/maps/RadioTower1F.asm b/maps/RadioTower1F.asm
index 7caa1e5d..0350ae51 100644
--- a/maps/RadioTower1F.asm
+++ b/maps/RadioTower1F.asm
@@ -237,7 +237,7 @@ UnknownText_0x5ceba:
UnknownText_0x5cf3a:
text "This week's ID"
line "number is @"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "."
done
diff --git a/maps/Route35NationalParkGate.asm b/maps/Route35NationalParkGate.asm
index 35040564..18520fdd 100644
--- a/maps/Route35NationalParkGate.asm
+++ b/maps/Route35NationalParkGate.asm
@@ -224,7 +224,7 @@ MovementData_0x6a2e9:
UnknownText_0x6a2eb:
text "Today's @"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "."
line "That means the"
@@ -287,7 +287,7 @@ UnknownText_0x6a4c6:
para "You'll have to use"
line "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text ", the"
para "first #MON in"
@@ -371,7 +371,7 @@ UnknownText_0x6a71f:
UnknownText_0x6a79a:
text "You still have @"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text_start
line "minute(s) left."
diff --git a/maps/Route36NationalParkGate.asm b/maps/Route36NationalParkGate.asm
index 52fc9ac2..8e967b6c 100644
--- a/maps/Route36NationalParkGate.asm
+++ b/maps/Route36NationalParkGate.asm
@@ -475,7 +475,7 @@ MovementData_0x6add1:
UnknownText_0x6add5:
text "Today's @"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text "."
line "That means the"
@@ -538,7 +538,7 @@ UnknownText_0x6afb0:
para "You'll have to use"
line "@"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text ", the"
para "first #MON in"
@@ -622,7 +622,7 @@ UnknownText_0x6b209:
UnknownText_0x6b284:
text "You still have @"
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text_start
line "minutes left."
diff --git a/maps/TrainerHouseB1F.asm b/maps/TrainerHouseB1F.asm
index 00de895a..1380d805 100644
--- a/maps/TrainerHouseB1F.asm
+++ b/maps/TrainerHouseB1F.asm
@@ -119,7 +119,7 @@ TrainerHouseB1FIntroText:
done
TrainerHouseB1FYourOpponentIsText:
- text_from_ram wStringBuffer3
+ text_ram wStringBuffer3
text " is your"
line "opponent today."
done