shithub: pokecrystal

Download patch

ref: 34d7cbb8b7c55f1a1b09f83d74a8c427592674b6
parent: 1fe2560a368d4a18de7cf95c536b05dc729c4b23
author: yenatch <[email protected]>
date: Wed Mar 5 17:49:09 EST 2014

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

--- 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