
label	title_gohan_loop

layerLoad			0,"parts\title\title_back.png",0,-348
layerMove			0,1000,0,-100
layerLoad			1,"parts\title\title_front.png",0,-509
layerMove			1,1000,0,-75

layerLoad			2,"parts\title\logo_under.png",0,662
layerLoad			3,"parts\title\logo.png",837,514
layerLoad			4,"parts\title\logo_dc.png",11,12
layerLoad			5,"parts\title\copyright.png",1153,701

label	title_gohan
wait	30
layerload	60,"Parts\gohan\select_whatday.png",200,10
layerFadein	60,60

addbutton 1,250,150,"Parts\gohan\select_gohan.png","Parts\gohan\select_gohan_over.png"
addbutton 2,650,150,"Parts\gohan\select_birthday.png","Parts\gohan\select_birthday_over.png"
addbutton 3,250,330,"Parts\gohan\select_valentine.png","Parts\gohan\select_valentine_over.png"
addbutton 4,650,330,"Parts\gohan\select_xmas.png","Parts\gohan\select_xmas_over.png"
	addButton 0,520,580,"parts\Schedule\select_quit.png","parts\Schedule\select_quit_over.png"
	getbutton sel
	se	"sound\se\NCb.wav"
layerFadeout	60,30
wait	30
if sel=0 then goto title_loop2


sel1=sel

layerload	60,"Parts\gohan\\select_who.png",200,10
layerFadein	60,60

if GLOBAL(100)=0 then addDisablebutton 1,250,150,"Parts\gohan\select_mikan.png","Parts\gohan\select_mikan_over.png"
if GLOBAL(101)=0 then addDisablebutton 2,650,150,"Parts\gohan\select_ichigo.png","Parts\gohan\select_ichigo_over.png"
if GLOBAL(102)=0 then addDisablebutton 3,250,330,"Parts\gohan\select_karin.png","Parts\gohan\select_karin_over.png"
if GLOBAL(107)=0 then addDisablebutton 4,650,330,"Parts\gohan\select_hikari.png","Parts\gohan\select_hikari_over.png"
if GLOBAL(100)=1 then addbutton 1,250,150,"Parts\gohan\select_mikan.png","Parts\gohan\select_mikan_over.png"
if GLOBAL(101)=1 then addbutton 2,650,150,"Parts\gohan\select_ichigo.png","Parts\gohan\select_ichigo_over.png"
if GLOBAL(102)=1 then addbutton 3,250,330,"Parts\gohan\select_karin.png","Parts\gohan\select_karin_over.png"
if GLOBAL(107)=1 then addbutton 4,650,330,"Parts\gohan\select_hikari.png","Parts\gohan\select_hikari_over.png"
	addButton 0,520,580,"parts\Schedule\select_quit.png","parts\Schedule\select_quit_over.png"
	getbutton sel
	se	"sound\se\NCb.wav"

sel2=sel
layerFadeout	60,30
wait	30
if sel=0 then goto title_gohan

screenwhiteoutms	1000
waitms	1000
bgm	""
screenwhiteinms	1000
rnd1=GLOBAL(50)
rnd2=GLOBAL(51)
rnd3=GLOBAL(52)
rnd4=GLOBAL(53)

	layerRelease 0
	layerRelease 1
	layerRelease 2
	layerRelease 3
	layerRelease 4
	layerRelease 5
	layerRelease 6


#a
if sel1=2 and sel2=1 then gosub musugoha_mik_bir
if sel1=2 and sel2=2 then gosub musugoha_ich_bir
if sel1=2 and sel2=3 then gosub musugoha_kar_bir
if sel1=2 and sel2=4 then gosub musugoha_hik_bir

#o^C
if sel1=3 and sel2=1 then gosub musugoha_mik_val
if sel1=3 and sel2=2 then gosub musugoha_ich_val
if sel1=3 and sel2=3 then gosub musugoha_kar_val
if sel1=3 and sel2=4 then gosub musugoha_hik_val

#NX}X
if sel1=4 and sel2=1 then gosub musugoha_mik_cri
if sel1=4 and sel2=2 then gosub musugoha_ich_cri
if sel1=4 and sel2=3 then gosub musugoha_kar_cri
if sel1=4 and sel2=4 then gosub musugoha_hik_cri

#ʂ̐H
if sel1=1 and sel2=1 and rnd1=0 then gosub musugoha_mik_mea1
if sel1=1 and sel2=1 and rnd1=1 then gosub musugoha_mik_mea2
if sel1=1 and sel2=1 and rnd1=2 then gosub musugoha_mik_mea3
if sel1=1 and sel2=2 and rnd2=0 then gosub musugoha_ich_mea1
if sel1=1 and sel2=2 and rnd2=1 then gosub musugoha_ich_mea2
if sel1=1 and sel2=2 and rnd2=2 then gosub musugoha_ich_mea3
if sel1=1 and sel2=3 and rnd3=0 then gosub musugoha_kar_mea1
if sel1=1 and sel2=3 and rnd3=1 then gosub musugoha_kar_mea2
if sel1=1 and sel2=3 and rnd3=2 then gosub musugoha_kar_mea3
if sel1=1 and sel2=4 and rnd4=0 then gosub musugoha_hik_mea1
if sel1=1 and sel2=4 and rnd4=1 then gosub musugoha_hik_mea2
if sel1=1 and sel2=4 and rnd4=2 then gosub musugoha_hik_mea3

rnd1=rnd1+1
if rnd1>2 then rnd1=0
rnd2=rnd2+1
if rnd2>2 then rnd2=0
rnd3=rnd3+1
if rnd3>2 then rnd3=0
rnd4=rnd4+1
if rnd4>2 then rnd4=0


GLOBAL(50)=rnd1
GLOBAL(51)=rnd2
GLOBAL(52)=rnd3
GLOBAL(53)=rnd4

@bgm03

goto	title_gohan_loop


