shithub: pokered

ref: 3e572b6f48b81e5340980c13b1b37b2907942713
dir: /scripts/CeladonMart3F.asm/

View raw version
CeladonMart3F_Script:
	jp EnableAutoTextBoxDrawing

CeladonMart3F_TextPointers:
	dw CeladonMart3Text1
	dw CeladonMart3Text2
	dw CeladonMart3Text3
	dw CeladonMart3Text4
	dw CeladonMart3Text5
	dw CeladonMart3Text6
	dw CeladonMart3Text7
	dw CeladonMart3Text8
	dw CeladonMart3Text9
	dw CeladonMart3Text10
	dw CeladonMart3Text11
	dw CeladonMart3Text12
	dw CeladonMart3Text13
	dw CeladonMart3Text14
	dw CeladonMart3Text15
	dw CeladonMart3Text16
	dw CeladonMart3Text17

CeladonMart3Text1:
	text_asm
	CheckEvent EVENT_GOT_TM18
	jr nz, .asm_a5463
	ld hl, TM18PreReceiveText
	call PrintText
	lb bc, TM_COUNTER, 1
	call GiveItem
	jr nc, .BagFull
	SetEvent EVENT_GOT_TM18
	ld hl, ReceivedTM18Text
	jr .asm_81359
.BagFull
	ld hl, TM18NoRoomText
	jr .asm_81359
.asm_a5463
	ld hl, TM18ExplanationText
.asm_81359
	call PrintText
	jp TextScriptEnd

TM18PreReceiveText:
	text_far _TM18PreReceiveText
	text_end

ReceivedTM18Text:
	text_far _ReceivedTM18Text
	sound_get_item_1
	text_end

TM18ExplanationText:
	text_far _TM18ExplanationText
	text_end

TM18NoRoomText:
	text_far _TM18NoRoomText
	text_end

CeladonMart3Text2:
	text_far _CeladonMart3Text2
	text_end

CeladonMart3Text3:
	text_far _CeladonMart3Text3
	text_end

CeladonMart3Text4:
	text_far _CeladonMart3Text4
	text_end

CeladonMart3Text5:
	text_far _CeladonMart3Text5
	text_end

CeladonMart3Text12:
CeladonMart3Text10:
CeladonMart3Text8:
CeladonMart3Text6:
	text_far _CeladonMart3Text6
	text_end

CeladonMart3Text7:
	text_far _CeladonMart3Text7
	text_end

CeladonMart3Text9:
	text_far _CeladonMart3Text9
	text_end

CeladonMart3Text11:
	text_far _CeladonMart3Text11
	text_end

CeladonMart3Text13:
	text_far _CeladonMart3Text13
	text_end

CeladonMart3Text14:
	text_far _CeladonMart3Text14
	text_end

CeladonMart3Text17:
CeladonMart3Text16:
CeladonMart3Text15:
	text_far _CeladonMart3Text15
	text_end