From 34d7cbb8b7c55f1a1b09f83d74a8c427592674b6 Mon Sep 17 00:00:00 2001 From: yenatch Date: Wed, 5 Mar 2014 22:49:09 -0500 Subject: Text macros. UnknownText_0x1aa0dc: ; 0x1aa0dc db $0, "Nihihi! This GYM", $4f db "is great! Only", $51 db "girls are allowed", $4f db "here!", $57 ; 0x1aa115 is now UnknownText_0x1aa0dc: ; 0x1aa0dc text "Nihihi! This GYM" line "is great! Only" para "girls are allowed" line "here!" done ; 0x1aa115 --- macros.asm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/macros.asm b/macros.asm index 531ead5b5..a35b833df 100644 --- a/macros.asm +++ b/macros.asm @@ -1,4 +1,16 @@ -; rgbds macros + +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. ; macros require rst vectors to be defined -- cgit v1.2.3