;

@omake
kaisou=1

spset "title",100
bg "bg/black.png",#f,500

;------ڌ㏑ɔ(̌)
;bg "bg/00_ato.png",#f,500
;gosub @sin_novel_01
;goto @atogaki
;--------܂

;sp "title:start",{name={"?bf{,menu2","?bf{,menu1"},x=360,y=100,z=0}
;sp "title:s",{name={"?V[z,menu2","?V[z,menu1"},x=360,y=100+30*1,z=0}
;sp "title:t",{name={"?㏑,menu2","?㏑,menu1"},x=360,y=100+30*2,z=0}
;sp "title:start",{name={"sin_system\006.png","sin_system\006_.png"},x=100,y=100,z=0}
sp "title:cg",{name={"sin_system/title_sel_005/Cgmode_off.png","sin_system/title_sel_005/Cgmode_on.png"},x=100,y=100+75*0,z=0}
sp "title:s",{name={"sin_system/title_sel_005/Scenemode_off.png","sin_system/title_sel_005/Scenemode_on.png"},x=100,y=100+75*1,z=0}
sp "title:t",{name={"sin_system/title_sel_005/Comment_off.png","sin_system/title_sel_005/Comment_on.png"},x=100,y=100+75*2,z=0}
sp "title:cr",{name={"sin_system/title_sel_005/Credit_off.png","sin_system/title_sel_005/Credit_on.png"},x=100,y=100+75*3,z=0}
sp "title:re",{name={"?߂,menu2","?߂,menu1"},x=1280-100,y=720-100,z=0}



print #c
btnclear "title"
btn "title:cg"
btn "title:s"
btn "title:t"
btn "title:cr"
btn "title:re"

@omake_lp
btnexec %ret,"title"
;CG[h
if %ret=="cg" then spsetdelete "title" : goto @cg
;V[z
if %ret=="s" then spsetdelete "title" : goto @log
;㏑
if %ret=="t" then spsetdelete "title" : kaisou=0 : gosub @sin_novel_00 : goto @atogaki	;adv`
;if %ret=="t" then spsetdelete "title" : kaisou=0 : gosub @sin_novel_01 : goto @atogaki	;mx`
;NWbg
if %ret=="cr" then spsetdelete "title" : goto @cr


if %ret=="#R" or %ret=="re" then goto @title	;^Cgɖ߂

goto @omake_lp

@cr
;GłȂłB
click
goto @omake

@atogaki
;㏑
;`cu[hɕύXi98.txtj
gosub @sin_novel_00
bg "bg/black.png",#f,500

Ƃ肠AȂ񂾂~jqof̂ɂȂĂ܂AƃmxQ[܂I
RtBOʂɕ\ƂڂꂻłA킽̓vO~OłȂB
Ƃ肠AXVXɂĂ̂ŁA낢ł̂łJ܂B
ԍ₷ǁAuEUΉ͂Ȃ߂ccB
ł́[B
QOQTNPPP@[[[[

;EBhEBcc͂BĂȂ[II
window 0
;̂ŏ
spsetdelete "window"
print #c
;`cu[hɕύXi98.txtj
gosub @sin_novel_00


;ڌ㏑ɂꍇ̓^Cg֖߂
;goto @title
;܂łȊÓ

goto @omake






















;		bf[h

@cg
spset "title",100
;wi摜ݒ
;bg "bg\00_ato.png",#f,500

;y[W
sin_cg_page=1
;bg "bg\00_awa.png",#f,500
sp "title:start",{name="?bf{,menu2",x=600,y=100,z=0}
;y[WړpBKvȂΏB
sin_cg_page_max=2	;őy[Ww
;sp "title:dn",{name="?,text",x=800-40,y=500-30,z=96}
;sp "title:up",{name="?,text",x=800-40,y=500-60,z=96}

;y[W
@sin_cg_page_1
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;y[W̖BKvȂΏ
;sp "title:page",{name="?P^Q,text",x=500+50,y=600-30,z=96}
%sin_cg_page_max=str(sin_cg_page_max)
%sin_cg_page=str(sin_cg_page)
;sp "title:page",{name="?"+%sin_cg_page+"^"+%sin_cg_page_max+",text",x=500+50,y=600-30,z=96}
bg "bg/00/sin_.png",#f,500
spset "title",100
sp "title:start",{name="?bf{,text",x=1280-300,y=50,z=0}
sp "title:re",{name={"?߂,menu2","?߂,menu1"},x=1280-100,y=720-100,z=0}

;NS2bg\01,bg/01g܂Aǂݍݎ̓Q[ŎgpĂقłȂƋL^Ȃ̂ŒӁI
	%fileflag[1]=FCHK("bg/ev/001_a.jpg")
	%fileflag[2]=FCHK("bg/ev/004_d.jpg")
	%fileflag[3]=FCHK("bg/ev/004_f.jpg")
	%fileflag[4]=FCHK("bg/ev/007_b.jpg")
	%fileflag[5]=FCHK("bg/ev/007_e.jpg")
	%fileflag[6]=FCHK("bg/ev/008_e.jpg")
	%fileflag[7]=FCHK("bg/ev/009_c.jpg")
	%fileflag[8]=FCHK("bg/ev/009_g.jpg")
	%fileflag[9]=FCHK("bg/ev/010_a.jpg")
	%fileflag[10]=FCHK("bg/ev/013_e.jpg")
	%fileflag[11]=FCHK("bg/ev/014_a.jpg")
	%fileflag[12]=FCHK("bg/ev/014_b.jpg")
;	%fileflag[13]=FCHK("bg/ev/013_e.jpg")
;	%fileflag[14]=FCHK("bg/ev/014_b.jpg")

;ĂȂǌƂɂꍇ́AV[zƓlinsertlchkŎƊyB
;finsertfchkłB
;fchkł͈xłĂȂƌƂɂȂȂ̂ŁB
spset "title",100
;bg "bg/00/omake.jpg",#f,500
sp "title:start",{name="?bf{,text",x=1280-300,y=50,z=0}
sp "title:re",{name={"?߂,menu2","?߂,menu1"},x=1280-100,y=720-100,z=0}
;sp "title:start",{name="?bf{,menu2",x=600,y=100,z=0}
;bg "sin_system\title_t.png",#f,500	;^Cg

;𖞂ĂȂꍇ̉摜
samx=0
samy=0
for %0=1 to 12
cg_name="title:"
cg_name_2=STR(%0)
cg_name_1=cg_name+cg_name_2
	sp cg_name_1,{name="bg\00_sam.png",x=50+160*samx,y=150+123*samy,z=0}
samx=samx+1
if samx==5 then samx=0:samy=samy+1
next
;𖞂ꍇ̉摜
if %fileflag[1]==1 then %name="title:1" : sp %name,{name="bg/cg/cg_on/001_a.jpg",x=50+160*0,y=150+123*0,z=0}
if %fileflag[2]==1 then %name="title:2" : sp %name,{name="bg/cg/cg_on/004_a.jpg",x=50+160*1,y=150+123*0,z=0}
if %fileflag[3]==1 then %name="title:3" : sp %name,{name="bg/cg/cg_on/004_e.jpg",x=50+160*2,y=150+123*0,z=0}
if %fileflag[4]==1 then %name="title:4" : sp %name,{name="bg/cg/cg_on/007_a.jpg",x=50+160*3,y=150+123*0,z=0}
if %fileflag[5]==1 then %name="title:5" : sp %name,{name="bg/cg/cg_on/007_c.jpg",x=50+160*4,y=150+123*0,z=0}

if %fileflag[6]==1 then %name="title:6" : sp %name,{name="bg/cg/cg_on/008_a.jpg",x=50+160*0,y=150+123*1,z=0}
if %fileflag[7]==1 then %name="title:7" : sp %name,{name="bg/cg/cg_on/009_a.jpg",x=50+160*1,y=150+123*1,z=0}
if %fileflag[8]==1 then %name="title:8" : sp %name,{name="bg/cg/cg_on/009_d.jpg",x=50+160*2,y=150+123*1,z=0}
if %fileflag[9]==1 then %name="title:9" : sp %name,{name="bg/cg/cg_on/010_a.jpg",x=50+160*3,y=150+123*1,z=0}
if %fileflag[10]==1 then %name="title:10" : sp %name,{name="bg/cg/cg_on/013_a.jpg",x=50+160*4,y=150+123*1,z=0}

if %fileflag[11]==1 then %name="title:11" : sp %name,{name="bg/cg/cg_on/014_a.jpg",x=50+160*0,y=150+123*2,z=0}
if %fileflag[12]==1 then %name="title:12" : sp %name,{name="bg/cg/cg_on/014_b.jpg",x=50+160*1,y=150+123*2,z=0}
;if %fileflag[13]==1 then %name="title:13" : sp %name,{name="bg/cg/cg_on/013_a.jpg",x=50+160*0,y=150+123*1,z=0}
;if %fileflag[14]==1 then %name="title:14" : sp %name,{name="bg/cg/cg_on/014_a.jpg",x=50+160*1,y=150+123*1,z=0}
;y[W
sin_cg_page=1
%r=str(sin_cg_page)
;߂̃xݒ
sin_cg_l="@sin_cg_page_"+%r
;\܂Ŕ
goto @sin_cg_hyouzi
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;y[W
@sin_cg_page_2
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;y[W̖BKvȂΏ
;sp "title:page",{name="?P^Q,text",x=500+50,y=600-30,z=96}
%sin_cg_page_max=str(sin_cg_page_max)
%sin_cg_page=str(sin_cg_page)
sp "title:page",{name="?"+%sin_cg_page+"^"+%sin_cg_page_max+",text",x=500+50,y=600-30,z=96}

;NS2bg\01,bg/01g܂Aǂݍݎ̓Q[ŎgpĂقłȂƋL^Ȃ̂ŒӁI
	%fileflag[1]=FCHK("bg/ev/09/01.png")
	%fileflag[2]=FCHK("bg/ev/10/01.png")
	%fileflag[3]=FCHK("bg/ev/11/01.png")
	%fileflag[4]=FCHK("bg/ev/12/01.png")
	%fileflag[5]=FCHK("bg/ev/13/01.png")
	%fileflag[6]=FCHK("bg/ev/14/01.png")
	%fileflag[7]=FCHK("bg/ev/15/01.png")
	%fileflag[8]=FCHK("bg/ev/16/01.png")

;ĂȂǌƂɂꍇ́AV[zƓlinsertlchkŎƊyB
;finsertfchkłB
;fchkł͈xłĂȂƌƂɂȂȂ̂ŁB
spset "title",100
sp "title:start",{name="?bf{,menu2",x=600,y=100,z=0}
bg "sin_system\title_t.png",#f,500	;^Cg

;𖞂ĂȂꍇ̉摜
samx=0
samy=0
for %0=1 to 8
cg_name="title:"
cg_name_2=STR(%0)
cg_name_1=cg_name+cg_name_2
	sp cg_name_1,{name="bg\00_sam.png",x=50+160*samx,y=150+123*samy,z=0}
samx=samx+1
if samx==4 then samx=0:samy=samy+1
next
;𖞂ꍇ̉摜
if %fileflag[1]==1 then %name="title:1" : sp %name,{name="bg/cg/cg_09.png",x=50+160*0,y=150+123*0,z=0}
if %fileflag[2]==1 then %name="title:2" : sp %name,{name="bg/cg/cg_10.png",x=50+160*1,y=150+123*0,z=0}
if %fileflag[3]==1 then %name="title:3" : sp %name,{name="bg/cg/cg_11.png",x=50+160*2,y=150+123*0,z=0}
if %fileflag[4]==1 then %name="title:4" : sp %name,{name="bg/cg/cg_12.png",x=50+160*3,y=150+123*0,z=0}
if %fileflag[5]==1 then %name="title:5" : sp %name,{name="bg/cg/cg_13.png",x=50+160*0,y=150+123*1,z=0}
if %fileflag[6]==1 then %name="title:6" : sp %name,{name="bg/cg/cg_14.png",x=50+160*1,y=150+123*1,z=0}
if %fileflag[7]==1 then %name="title:7" : sp %name,{name="bg/cg/cg_15.png",x=50+160*2,y=150+123*1,z=0}
if %fileflag[8]==1 then %name="title:8" : sp %name,{name="bg/cg/cg_16.png",x=50+160*3,y=150+123*1,z=0}
;y[W
sin_cg_page=2
%r=str(sin_cg_page)
;߂̃xݒ
sin_cg_l="@sin_cg_page_"+%r
;\܂Ŕ
goto @sin_cg_hyouzi
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------

@sin_cg_hyouzi
print #c
btnclear "title"

;y[WړBKvȂΏ
btn "title:dn"
btn "title:up"
;---------------------------------
if %fileflag[1]==1 then btn "title:1"
if %fileflag[2]==1 then btn "title:2"
if %fileflag[3]==1 then btn "title:3"
if %fileflag[4]==1 then btn "title:4"
if %fileflag[5]==1 then btn "title:5"
if %fileflag[6]==1 then btn "title:6"
if %fileflag[7]==1 then btn "title:7"
if %fileflag[8]==1 then btn "title:8"
if %fileflag[9]==1 then btn "title:9"
if %fileflag[10]==1 then btn "title:10"
if %fileflag[11]==1 then btn "title:11"
if %fileflag[12]==1 then btn "title:12"
btn "title:re"

@cg_lp
btnexec %ret,"title"
if %ret=="#R" or %ret=="re" then goto @omake	;^Cgɖ߂
;y[WړpBKvȂΏB
if %ret=="dn" then
	sin_cg_page=sin_cg_page-1
	if sin_cg_page==0 then sin_cg_page=1
	%0="@sin_cg_page_"+str(sin_cg_page)
	goto %0
endif
if %ret=="up" then
	sin_cg_page=sin_cg_page+1
	if sin_cg_page>sin_cg_page_max then sin_cg_page=sin_cg_page_max
	%0="@sin_cg_page_"+str(sin_cg_page)
	goto %0
endif
;-----------------------------------------
;sin_cg_page̓y[WB
					if %ret=="1" and sin_cg_page==1 then
spsetdelete "title"
bg "bg/ev/001_a.jpg",#f,500
click
;bg "bg/ev/001b.jpg",#f,500
;click
goto sin_cg_l
					endif
;------------------------------------------------------------
					if %ret=="2"  and sin_cg_page==1 then
spsetdelete "title"
bg "bg/ev/004_a.jpg",#f,500
click
bg "bg/ev/004_b.jpg",#f,500
click
bg "bg/ev/004_c.jpg",#f,500
click
goto sin_cg_l
					endif
;------------------------------------------------------------
					if %ret=="3"  and sin_cg_page==1 then
spsetdelete "title"
bg "bg/ev/004_e.jpg",#f,500
click
bg "bg/ev/004_f.jpg",#f,500
click
;S
goto sin_cg_l
					endif
;------------------------------------------------------------
					if %ret=="4"  and sin_cg_page==1 then
spsetdelete "title"
bg "bg/ev/007_a.jpg",#f,500
click
bg "bg/ev/007_b.jpg",#f,500
click
goto sin_cg_l
					endif

;------------------------------------------------------------
					if %ret=="5"  and sin_cg_page==1 then
spsetdelete "title"
;5
bg "bg/ev/007_c.jpg",#f,500
click
bg "bg/ev/007_d.jpg",#f,500
click
bg "bg/ev/007_e.jpg",#f,500
click
goto sin_cg_l
					endif
;------------------------------------------------------------
					if %ret=="6"  and sin_cg_page==1 then
spsetdelete "title"
;6
bg "bg/ev/008_a.jpg",#f,500
click
bg "bg/ev/008_b.jpg",#f,500
click
bg "bg/ev/008_c.jpg",#f,500
click
bg "bg/ev/008_d.jpg",#f,500
click
bg "bg/ev/008_e.jpg",#f,500
click
goto sin_cg_l
					endif
;------------------------------------------------------------
					if %ret=="7"  and sin_cg_page==1 then
spsetdelete "title"
;7
bg "bg/ev/009_a.jpg",#f,500
click
bg "bg/ev/009_b.jpg",#f,500
click
bg "bg/ev/009_c.jpg",#f,500
click
goto sin_cg_l
					endif
;------------------------------------------------------------
					if %ret=="8"  and sin_cg_page==1 then
spsetdelete "title"
bg "bg/ev/009_d.jpg",#f,500
click
bg "bg/ev/009_e.jpg",#f,500
click
bg "bg/ev/009_f.jpg",#f,500
click
bg "bg/ev/009_g.jpg",#f,500
click
goto sin_cg_l
					endif
;------------------------------------------------------------
					if %ret=="9"  and sin_cg_page==1 then
spsetdelete "title"
bg "bg/ev/010_a.jpg",#f,500
click
goto sin_cg_l
					endif
;------------------------------------------------------------
					if %ret=="10"  and sin_cg_page==1 then
spsetdelete "title"
bg "bg/ev/013_a.jpg",#f,500
click
bg "bg/ev/013_b.jpg",#f,500
click
bg "bg/ev/013_c.jpg",#f,500
click
bg "bg/ev/013_d.jpg",#f,500
click
bg "bg/ev/013_e.jpg",#f,500
click
goto sin_cg_l
					endif
;------------------------------------------------------------
					if %ret=="11"  and sin_cg_page==1 then
spsetdelete "title"
bg "bg/ev/014_a.jpg",#f,500
click
goto sin_cg_l
					endif
;------------------------------------------------------------
					if %ret=="12"  and sin_cg_page==1 then
spsetdelete "title"
bg "bg/ev/014_b.jpg",#f,500
click
goto sin_cg_l
					endif

;ʏ
goto @cg_lp



























;		V[z[h


@log
goto @log_text_01	;eLXgOցB
spset "title",100

;wi摜ݒ
;bg "bg/00_ato.png",#f,500


;y[W
sin_log_page=1

;sp "title:start",{name="?V[z,menu2",x=50,y=50,z=0}
;y[WړpBKvȂΏB
sin_log_page_max=3	;őy[Ww
sp "title:dn",{name="?,text",x=1280-40,y=640-30,z=96}
sp "title:up",{name="?,text",x=1280-40,y=640-60,z=96}

;y[W
@sin_log_page_1
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;y[W̖BKvȂΏ
sp "title:page",{name="?P^R,text",x=1280-200,y=720-50,z=96}
%sin_log_page_max=str(sin_log_page_max)
%sin_log_page=str(sin_log_page)
sp "title:page",{name="?"+%sin_log_page+"^"+%sin_log_page_max+",text",x=1280-200,y=720-50,z=96}
sp "title:start",{name="?V[z,text",x=1280-300,y=50,z=0}
bg "bg/00/sin_.png",#f,500

	%fileflag[1]=lchk(@sin_story_001_end)
	%fileflag[2]=lchk(@sin_story_002_end)
	%fileflag[3]=lchk(@sin_story_003_end)
	%fileflag[4]=lchk(@sin_story_004_end)
	
	%fileflag[5]=lchk(@sin_story_005_end)
	%fileflag[6]=lchk(@sin_story_006_end)
	%fileflag[7]=lchk(@sin_story_007_end)
	%fileflag[8]=lchk(@sin_story_008_end)

	%fileflag[9]=lchk(@sin_story_009_end)
	%fileflag[10]=lchk(@sin_story_010_end)
	%fileflag[11]=lchk(@sin_story_011_end)
	%fileflag[12]=lchk(@sin_story_012_end)
;	if _floorc>=1 then %fileflag[2]=1

samx=0
samy=0
sp "title:1",{name="bg/00_sam.png",x=50+200*samx,y=150+123*samy,z=0}
samx=1
sp "title:2",{name="bg/00_sam.png",x=100+200*samx,y=150+123*samy,z=0}
samx=2
sp "title:3",{name="bg/00_sam.png",x=150+200*samx,y=150+123*samy,z=0}
samx=3
sp "title:4",{name="bg/00_sam.png",x=200+200*samx,y=150+123*samy,z=0}
samx=0
samy=1
sp "title:5",{name="bg/00_sam.png",x=50+200*samx,y=150+123*samy,z=0}
samx=1
sp "title:6",{name="bg/00_sam.png",x=100+200*samx,y=150+123*samy,z=0}
samx=2
sp "title:7",{name="bg/00_sam.png",x=150+200*samx,y=150+123*samy,z=0}
samx=3
sp "title:8",{name="bg/00_sam.png",x=200+200*samx,y=150+123*samy,z=0}
samx=0
samy=2
sp "title:9",{name="bg/00_sam.png",x=50+200*samx,y=150+123*samy,z=0}
samx=1
sp "title:10",{name="bg/00_sam.png",x=100+200*samx,y=150+123*samy,z=0}
samx=2
sp "title:11",{name="bg/00_sam.png",x=150+200*samx,y=150+123*samy,z=0}
samx=3
sp "title:12",{name="bg/00_sam.png",x=200+200*samx,y=150+123*samy,z=0}


if %fileflag[1]==1 then %name="title:1" : sp %name,{name="bg/log/log_01.png",x=50+200*0,y=150+123*0,z=0}
if %fileflag[2]==1 then %name="title:2" : sp %name,{name="bg/log/log_02.png",x=100+200*1,y=150+123*0,z=0}
if %fileflag[3]==1 then %name="title:3" : sp %name,{name="bg/log/log_03.png",x=150+200*2,y=150+123*0,z=0}
if %fileflag[4]==1 then %name="title:4" : sp %name,{name="bg/log/log_04.png",x=200+200*3,y=150+123*0,z=0}
if %fileflag[5]==1 then %name="title:5" : sp %name,{name="bg/log/log_05.png",x=50+200*0,y=150+123*1,z=0}
if %fileflag[6]==1 then %name="title:6" : sp %name,{name="bg/log/log_06.png",x=100+200*1,y=150+123*1,z=0}
if %fileflag[7]==1 then %name="title:7" : sp %name,{name="bg/log/log_07.png",x=150+200*2,y=150+123*1,z=0}
if %fileflag[8]==1 then %name="title:8" : sp %name,{name="bg/log/log_08.png",x=200+200*3,y=150+123*1,z=0}
if %fileflag[9]==1 then %name="title:8" : sp %name,{name="bg/log/log_08.png",x=50+200*3,y=150+123*1,z=0}
if %fileflag[10]==1 then %name="title:8" : sp %name,{name="bg/log/log_08.png",x=100+200*3,y=150+123*1,z=0}
if %fileflag[11]==1 then %name="title:8" : sp %name,{name="bg/log/log_08.png",x=150+200*3,y=150+123*1,z=0}
if %fileflag[12]==1 then %name="title:8" : sp %name,{name="bg/log/log_08.png",x=200+200*3,y=150+123*1,z=0}
;y[W
sin_log_page=1
%r=str(sin_log_page)
;߂̃xݒ
sin_log_l="@sin_log_page_"+%r
;\܂Ŕ
goto @sin_log_hyouzi
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;y[W
@sin_log_page_2
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;y[W̖BKvȂΏ
sp "title:page",{name="?Q^R,text",x=1280-200,y=720-50,z=96}
%sin_log_page_max=str(sin_log_page_max)
%sin_log_page=str(sin_log_page)
sp "title:page",{name="?"+%sin_log_page+"^"+%sin_log_page_max+",text",x=1280-200,y=720-50,z=96}
sp "title:start",{name="?V[z,text",x=1280-300,y=50,z=0}
bg "bg/00/sin_.png",#f,500

	%fileflag[1]=lchk(@sin_story_013_end)
	%fileflag[2]=lchk(@sin_story_014_end)
	%fileflag[3]=lchk(@sin_story_015_end)
	%fileflag[4]=lchk(@sin_story_016_end)
	
	%fileflag[5]=lchk(@sin_story_027_end)
	%fileflag[6]=lchk(@sin_story_006_end)
	%fileflag[7]=lchk(@sin_story_007_end)
	%fileflag[8]=lchk(@sin_story_008_end)

	%fileflag[9]=lchk(@sin_story_009_end)
	%fileflag[10]=lchk(@sin_story_010_end)
	%fileflag[11]=lchk(@sin_story_011_end)
	%fileflag[12]=lchk(@sin_story_012_end)
;	if _floorc>=1 then %fileflag[2]=1

samx=0
samy=0
sp "title:1",{name="bg/00_sam.png",x=50+200*samx,y=150+123*samy,z=0}
samx=1
sp "title:2",{name="bg/00_sam.png",x=100+200*samx,y=150+123*samy,z=0}
samx=2
sp "title:3",{name="bg/00_sam.png",x=150+200*samx,y=150+123*samy,z=0}
samx=3
sp "title:4",{name="bg/00_sam.png",x=200+200*samx,y=150+123*samy,z=0}
samx=0
samy=1
sp "title:5",{name="bg/00_sam.png",x=50+200*samx,y=150+123*samy,z=0}
samx=1
sp "title:6",{name="bg/00_sam.png",x=100+200*samx,y=150+123*samy,z=0}
samx=2
sp "title:7",{name="bg/00_sam.png",x=150+200*samx,y=150+123*samy,z=0}
samx=3
sp "title:8",{name="bg/00_sam.png",x=200+200*samx,y=150+123*samy,z=0}
samx=0
samy=2
sp "title:9",{name="bg/00_sam.png",x=50+200*samx,y=150+123*samy,z=0}
samx=1
sp "title:10",{name="bg/00_sam.png",x=100+200*samx,y=150+123*samy,z=0}
samx=2
sp "title:11",{name="bg/00_sam.png",x=150+200*samx,y=150+123*samy,z=0}
samx=3
sp "title:12",{name="bg/00_sam.png",x=200+200*samx,y=150+123*samy,z=0}


if %fileflag[1]==1 then %name="title:1" : sp %name,{name="bg/log/log_01.png",x=50+200*0,y=150+123*0,z=0}
if %fileflag[2]==1 then %name="title:2" : sp %name,{name="bg/log/log_02.png",x=100+200*1,y=150+123*0,z=0}
if %fileflag[3]==1 then %name="title:3" : sp %name,{name="bg/log/log_03.png",x=150+200*2,y=150+123*0,z=0}
if %fileflag[4]==1 then %name="title:4" : sp %name,{name="bg/log/log_04.png",x=200+200*3,y=150+123*0,z=0}
if %fileflag[5]==1 then %name="title:5" : sp %name,{name="bg/log/log_05.png",x=50+200*0,y=150+123*1,z=0}
if %fileflag[6]==1 then %name="title:6" : sp %name,{name="bg/log/log_06.png",x=100+200*1,y=150+123*1,z=0}
if %fileflag[7]==1 then %name="title:7" : sp %name,{name="bg/log/log_07.png",x=150+200*2,y=150+123*1,z=0}
if %fileflag[8]==1 then %name="title:8" : sp %name,{name="bg/log/log_08.png",x=200+200*3,y=150+123*1,z=0}
if %fileflag[9]==1 then %name="title:8" : sp %name,{name="bg/log/log_08.png",x=50+200*3,y=150+123*1,z=0}
if %fileflag[10]==1 then %name="title:8" : sp %name,{name="bg/log/log_08.png",x=100+200*3,y=150+123*1,z=0}
if %fileflag[11]==1 then %name="title:8" : sp %name,{name="bg/log/log_08.png",x=150+200*3,y=150+123*1,z=0}
if %fileflag[12]==1 then %name="title:8" : sp %name,{name="bg/log/log_08.png",x=200+200*3,y=150+123*1,z=0}
;y[W
sin_log_page=2
%r=str(sin_log_page)
;߂̃xݒ
sin_log_l="@sin_log_page_"+%r
;\܂Ŕ
goto @sin_log_hyouzi
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;y[W
@sin_log_page_3
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;y[W̖BKvȂΏ
sp "title:page",{name="?R^R,text",x=1280-200,y=720-50,z=96}
%sin_log_page_max=str(sin_log_page_max)
%sin_log_page=str(sin_log_page)
sp "title:page",{name="?"+%sin_log_page+"^"+%sin_log_page_max+",text",x=1280-200,y=720-50,z=96}
sp "title:start",{name="?V[z,text",x=1280-300,y=50,z=0}
bg "bg/00/sin_.png",#f,500

	%fileflag[1]=lchk(@sin_story_001_end)
	%fileflag[2]=lchk(@sin_story_002_end)
	%fileflag[3]=lchk(@sin_story_003_end)
	%fileflag[4]=lchk(@sin_story_004_end)
	
	%fileflag[5]=lchk(@sin_story_005_end)
	%fileflag[6]=lchk(@sin_story_006_end)
	%fileflag[7]=lchk(@sin_story_007_end)
	%fileflag[8]=lchk(@sin_story_008_end)

	%fileflag[9]=lchk(@sin_story_009_end)
	%fileflag[10]=lchk(@sin_story_010_end)
	%fileflag[11]=lchk(@sin_story_011_end)
	%fileflag[12]=lchk(@sin_story_012_end)
;	if _floorc>=1 then %fileflag[2]=1
;]ȉ摜폜
for %0=4 to 12
	%1=str(%0)
	name="title:"+%1:spdelete name:print #C
next

samx=0
samy=0
sp "title:1",{name="bg/00_sam.png",x=50+200*samx,y=150+123*samy,z=0}
samx=1
sp "title:2",{name="bg/00_sam.png",x=100+200*samx,y=150+123*samy,z=0}
samx=2
sp "title:3",{name="bg/00_sam.png",x=150+200*samx,y=150+123*samy,z=0}
samx=3
sp "title:4",{name="bg/00_sam.png",x=200+200*samx,y=150+123*samy,z=0}
samx=0
samy=1
sp "title:5",{name="bg/00_sam.png",x=50+200*samx,y=150+123*samy,z=0}
samx=1
sp "title:6",{name="bg/00_sam.png",x=100+200*samx,y=150+123*samy,z=0}
samx=2
sp "title:7",{name="bg/00_sam.png",x=150+200*samx,y=150+123*samy,z=0}
samx=3
sp "title:8",{name="bg/00_sam.png",x=200+200*samx,y=150+123*samy,z=0}
samx=0
samy=2
sp "title:9",{name="bg/00_sam.png",x=50+200*samx,y=150+123*samy,z=0}
samx=1
sp "title:10",{name="bg/00_sam.png",x=100+200*samx,y=150+123*samy,z=0}
samx=2
sp "title:11",{name="bg/00_sam.png",x=150+200*samx,y=150+123*samy,z=0}
samx=3
sp "title:12",{name="bg/00_sam.png",x=200+200*samx,y=150+123*samy,z=0}


if %fileflag[1]==1 then %name="title:1" : sp %name,{name="bg/log/log_01.png",x=50+200*0,y=150+123*0,z=0}
if %fileflag[2]==1 then %name="title:2" : sp %name,{name="bg/log/log_02.png",x=100+200*1,y=150+123*0,z=0}
if %fileflag[3]==1 then %name="title:3" : sp %name,{name="bg/log/log_03.png",x=150+200*2,y=150+123*0,z=0}
if %fileflag[4]==1 then %name="title:4" : sp %name,{name="bg/log/log_04.png",x=200+200*3,y=150+123*0,z=0}
if %fileflag[5]==1 then %name="title:5" : sp %name,{name="bg/log/log_05.png",x=50+200*0,y=150+123*1,z=0}
if %fileflag[6]==1 then %name="title:6" : sp %name,{name="bg/log/log_06.png",x=100+200*1,y=150+123*1,z=0}
if %fileflag[7]==1 then %name="title:7" : sp %name,{name="bg/log/log_07.png",x=150+200*2,y=150+123*1,z=0}
if %fileflag[8]==1 then %name="title:8" : sp %name,{name="bg/log/log_08.png",x=200+200*3,y=150+123*1,z=0}
if %fileflag[9]==1 then %name="title:8" : sp %name,{name="bg/log/log_08.png",x=50+200*3,y=150+123*1,z=0}
if %fileflag[10]==1 then %name="title:8" : sp %name,{name="bg/log/log_08.png",x=100+200*3,y=150+123*1,z=0}
if %fileflag[11]==1 then %name="title:8" : sp %name,{name="bg/log/log_08.png",x=150+200*3,y=150+123*1,z=0}
if %fileflag[12]==1 then %name="title:8" : sp %name,{name="bg/log/log_08.png",x=200+200*3,y=150+123*1,z=0}
;y[W
sin_log_page=3
%r=str(sin_log_page)
;߂̃xݒ
sin_log_l="@sin_log_page_"+%r
;\܂Ŕ
goto @sin_log_hyouzi
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------

@sin_log_hyouzi


print #c
btnclear "title"
btn "title:dn"
btn "title:up"


if %fileflag[1]==1 then btn "title:1"
if %fileflag[2]==1 then btn "title:2"
if %fileflag[3]==1 then btn "title:3"
if %fileflag[4]==1 then btn "title:4"
if %fileflag[5]==1 then btn "title:5"
if %fileflag[6]==1 then btn "title:6"
if %fileflag[7]==1 then btn "title:7"
if %fileflag[8]==1 then btn "title:8"
if %fileflag[9]==1 then btn "title:9"
if %fileflag[10]==1 then btn "title:10"
if %fileflag[11]==1 then btn "title:11"
if %fileflag[12]==1 then btn "title:12"


@log_lp
btnexec %ret,"title"
if %ret=="#R" or %ret=="re" then goto @omake	;^Cgɖ߂
;y[WړpBKvȂΏB
if %ret=="dn" then
	sin_log_page=sin_log_page-1
	if sin_log_page==0 then sin_log_page=1
	%0="@sin_log_page_"+str(sin_log_page)
	goto %0
endif
if %ret=="up" then
	sin_log_page=sin_log_page+1
	if sin_log_page>sin_log_page_max then sin_log_page=sin_log_page_max
	%0="@sin_log_page_"+str(sin_log_page)
	goto %0
endif
;-----------------------------------------
;sin_log_page̓y[WB

if %ret=="1" and sin_log_page==1 then spsetvisible "title",0 : gosub @sin_story_001 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="2" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_002 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="3" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_003 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="4" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_004 : gosub @sin_window_kesu : print #c : goto sin_log_l

if %ret=="5" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_005 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="6" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_006 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="7" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_007 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="8" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_008 : gosub @sin_window_kesu : print #c : goto sin_log_l

if %ret=="9" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_009 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="10" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_010 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="11" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_011 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="12" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_012 : gosub @sin_window_kesu : print #c : goto sin_log_l

;--------------------------------------------------------------------

if %ret=="1" and sin_log_page==2 then spsetvisible "title",0 : gosub @sin_story_013 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="2" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_014 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="3" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_015 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="4" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_016 : gosub @sin_window_kesu : print #c : goto sin_log_l

if %ret=="5" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_017 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="6" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_018 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="7" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_019 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="8" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_020 : gosub @sin_window_kesu : print #c : goto sin_log_l

if %ret=="9" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_021 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="10" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_022 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="11" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_023 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="12" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_024 : gosub @sin_window_kesu : print #c : goto sin_log_l

;---------------------------------------------------------------------

if %ret=="1" and sin_log_page==2 then spsetvisible "title",0 : gosub @sin_story_025 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="2" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_026 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="3" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_027 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="4" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_016 : gosub @sin_window_kesu : print #c : goto sin_log_l

if %ret=="5" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_017 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="6" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_018 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="7" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_019 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="8" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_020 : gosub @sin_window_kesu : print #c : goto sin_log_l

if %ret=="9" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_021 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="10" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_022 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="11" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_023 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="12" and sin_log_page==2 then  spsetvisible "title",0 : gosub @sin_story_024 : gosub @sin_window_kesu : print #c : goto sin_log_l


;ʏ
goto @log_lp







;eLXgEBhE
@sin_window_kesu
spsetdelete "window"	;EBhE
;`cu[hɕύXi98.txtj
gosub @sin_novel_00
return





@log_text_01

spset "title",100

;wi摜ݒ
;bg "bg/00_ato.png",#f,500


;y[W
sin_log_page=1
spset "title",100
sp "title:start",{name="?V[z,menu2",x=600,y=100,z=0}
sp "title:re",{name={"?߂,menu2","?߂,menu1"},x=1280-100,y=720-100,z=0}
;y[WړpBKvȂΏB
sin_log_page_max=2	;őy[Ww
;sp "title:dn",{name="?,text",x=800-40,y=500-30,z=96}
;sp "title:up",{name="?,text",x=800-40,y=500-60,z=96}

;y[W
@sin_log_t_page_1
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;y[W̖BKvȂΏ
;sp "title:page",{name="?P^Q,text",x=500+50,y=600-30,z=96}
;%sin_log_page_max=str(sin_log_page_max)
;%sin_log_page=str(sin_log_page)
;sp "title:page",{name="?"+%sin_log_page+"^"+%sin_log_page_max+",text",x=500+50,y=600-30,z=96}
spset "title",100
sp "title:re",{name={"?߂,menu2","?߂,menu1"},x=1280-100,y=720-100,z=0}
sp "title:start",{name="?V[z,text",x=1280-300,y=50,z=0}
bg "bg/00/sin_.png",#f,500


	%fileflag[1]=lchk(@sin_story_001_end)
	%fileflag[2]=lchk(@sin_story_002_end)
	%fileflag[3]=lchk(@sin_story_003_end)
	%fileflag[4]=lchk(@sin_story_004_end)
	%fileflag[5]=lchk(@sin_story_005_end)
	%fileflag[6]=lchk(@sin_story_006_end)
	%fileflag[7]=lchk(@sin_story_007_end)
	%fileflag[8]=lchk(@sin_story_008_end)
	%fileflag[9]=lchk(@sin_story_009_end)
	%fileflag[10]=lchk(@sin_story_010_end)
	%fileflag[11]=lchk(@sin_story_011_end)
	%fileflag[12]=lchk(@sin_story_012_end)
	%fileflag[13]=lchk(@sin_story_013_end)
	%fileflag[14]=lchk(@sin_story_014_kaisoyou)
	%fileflag[15]=lchk(@sin_story_015_end_kaihou)

;nE摜
%x=50
%y=50
%1=1
for %0=1 to 15
;%name10="title:bg"+str(%0)
;sp %name10,{name={"bg/log/log_bg.jpg"},x=%x,y=%y+70*%1,z=0}
;܂ĂȂꍇ
%name="title:"+str(%0):sp %name,{name={"?HHHHH,menu0"},x=%x+10,y=%y+20+70*%1,z=0}
%1=%1+1
;؂Ȃ̐؂蕪
if %1==9 then %x=1280/2:%1=1
next



if %fileflag[1]==1 then %name="̓^Cg" 
if %fileflag[1]==1 then sp "title:1",{name={"?"+%name+",menu0","?"+%name+",menu1"},x=55,y=50+70*1,z=0}

if %fileflag[2]==1 then %name="̓^Cg" 
if %fileflag[2]==1 then sp "title:2",{name={"?"+%name+",menu0","?"+%name+",menu1"},x=55,y=50+70*2,z=0}

if %fileflag[3]==1 then %name="̓^Cg" 
if %fileflag[3]==1 then sp "title:3",{name={"?"+%name+",menu0","?"+%name+",menu1"},x=55,y=50+70*3,z=0}

if %fileflag[4]==1 then %name="̓^Cg" 
if %fileflag[4]==1 then sp "title:4",{name={"?"+%name+",menu0","?"+%name+",menu1"},x=55,y=50+70*4,z=0}

if %fileflag[5]==1 then %name="̓^Cg" 
if %fileflag[5]==1 then sp "title:5",{name={"?"+%name+",menu0","?"+%name+",menu1"},x=55,y=50+70*5,z=0}

if %fileflag[6]==1 then %name="̓^Cg" 
if %fileflag[6]==1 then sp "title:6",{name={"?"+%name+",menu0","?"+%name+",menu1"},x=55,y=50+70*6,z=0}

if %fileflag[7]==1 then %name="̓^Cg" 
if %fileflag[7]==1 then sp "title:7",{name={"?"+%name+",menu0","?"+%name+",menu1"},x=55,y=50+70*7,z=0}

if %fileflag[8]==1 then %name="̓^Cg" 
if %fileflag[8]==1 then sp "title:8",{name={"?"+%name+",menu0","?"+%name+",menu1"},x=55,y=50+70*8,z=0}

if %fileflag[9]==1 then %name="̓^Cg" 
if %fileflag[9]==1 then sp "title:9",{name={"?"+%name+",menu0","?"+%name+",menu1"},x=1280/2,y=50+70*1,z=0}

if %fileflag[10]==1 then %name="̓^Cg" 
if %fileflag[10]==1 then sp "title:10",{name={"?"+%name+",menu0","?"+%name+",menu1"},x=1280/2,y=50+70*2,z=0}

if %fileflag[11]==1 then %name="̓^Cg" 
if %fileflag[11]==1 then sp "title:11",{name={"?"+%name+",menu0","?"+%name+",menu1"},x=1280/2,y=50+70*3,z=0}

if %fileflag[12]==1 then %name="̓^Cg" 
if %fileflag[12]==1 then sp "title:12",{name={"?"+%name+",menu0","?"+%name+",menu1"},x=1280/2,y=50+70*4,z=0}

if %fileflag[13]==1 then %name="̓^Cg" 
if %fileflag[13]==1 then sp "title:13",{name={"?"+%name+",menu0","?"+%name+",menu1"},x=1280/2,y=50+70*5,z=0}

if %fileflag[14]==1 then %name="̓^Cg" 
if %fileflag[14]==1 then sp "title:14",{name={"?"+%name+",menu0","?"+%name+",menu1"},x=1280/2,y=50+70*6,z=0}

if %fileflag[15]==1 then %name="̓^Cg" 
if %fileflag[15]==1 then sp "title:15",{name={"?"+%name+",menu0","?"+%name+",menu1"},x=1280/2,y=50+70*7,z=0}


;y[W
sin_log_page=1
%r=str(sin_log_page)
;߂̃xݒ
sin_log_l="@sin_log_t_page_"+%r
;\܂Ŕ
goto @sin_log_text_hyouzi
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;y[W
@sin_log_t_page_2
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;y[W̖BKvȂΏ
;sp "title:page",{name="?Q^Q,text",x=500+50,y=600-30,z=96}
%sin_log_page_max=str(sin_log_page_max)
%sin_log_page=str(sin_log_page)
sp "title:page",{name="?"+%sin_log_page+"^"+%sin_log_page_max+",text",x=500+50,y=600-30,z=96}
sp "title:start",{name="?V[z,text",x=1280-300,y=50,z=0}

	%fileflag[1]=lchk(@sin_story_op)
	%fileflag[2]=lchk(@sisyou_story_01)
	%fileflag[3]=lchk(@otoko_story_01)
	%fileflag[4]=lchk(@tabibito_story_01)
	
	%fileflag[5]=lchk(@sisyou_end_001)
	%fileflag[6]=lchk(@sisyou_end_002)
	%fileflag[7]=lchk(@otoko_end_001)
	%fileflag[8]=lchk(@otoko_end_002)

	%fileflag[9]=lchk(@sisyou_ero_01_story)
	%fileflag[10]=lchk(@sisyou_ero_02_story)
	%fileflag[11]=lchk(@sisyou_ero_03_story)
	%fileflag[12]=lchk(@sisyou_ero_04_story)

	%fileflag[13]=lchk(@otoko_ero_01_story)
	%fileflag[14]=lchk(@otoko_ero_02_story)
	%fileflag[15]=lchk(@otoko_ero_03_story)
	%fileflag[16]=lchk(@otoko_ero_04_story)
	
	%fileflag[17]=lchk(@tabibito_ero_01_story)
	%fileflag[18]=lchk(@tabibito_ero_02_story)
	%fileflag[19]=lchk(@tabibito_ero_03_story)
	%fileflag[20]=lchk(@tabibito_ero_04_story)

if %fileflag[1]==1 then sp "title:1",{name={"?I[vjO,menu0","?I[vjO,menu1"},x=50,y=50,z=0}
if %fileflag[2]==1 then sp "title:2",{name={"?t,menu0","?t,menu1"},x=50,y=50+25*1,z=0}
if %fileflag[3]==1 then sp "title:3",{name={"?j,menu0","?j,menu1"},x=50,y=50+25*2,z=0}
if %fileflag[4]==1 then sp "title:4",{name={"?l,menu0","?l,menu1"},x=50,y=50+25*3,z=0}
if %fileflag[5]==1 then sp "title:5",{name={"?tƓl,menu0","?tƓl,menu1"},x=50,y=50+25*4,z=0}
if %fileflag[6]==1 then sp "title:6",{name={"?soȒq,menu0","?soȒq,menu1"},x=50,y=50+25*5,z=0}
if %fileflag[7]==1 then sp "title:7",{name={"?ς킩Ȃ֌W,menu0","?ς킩Ȃ֌W,menu1"},x=50,y=50+25*6,z=0}
if %fileflag[8]==1 then sp "title:8",{name={"?ʂ,menu0","?ʂ,menu1"},x=50,y=50+25*7,z=0}
;y[W
sin_log_page=2
%r=str(sin_log_page)
;߂̃xݒ
sin_log_l="@sin_log_t_page_"+%r
;\܂Ŕ
goto @sin_log_text_hyouzi
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------------------

@sin_log_text_hyouzi



print #c
btnclear "title"
btn "title:up"
btn "title:dn"
btn "title:re"

for %0=1 to 15
;if %fileflag[1]==1 then btn "title:1"
;if %fileflag[2]==1 then btn "title:2"
;if %fileflag[3]==1 then btn "title:3"
;if %fileflag[4]==1 then btn "title:4"
;if %fileflag[5]==1 then btn "title:5"
;if %fileflag[6]==1 then btn "title:6"
;if %fileflag[7]==1 then btn "title:7"
	%r=STR(%0)
	%name="title:"+%r
	if %fileflag[%0]==1 then btn %name
next

@log_text_01_lp
btnexec %ret,"title"
if %ret=="#R" or %ret=="re" then goto @omake	;^Cgɖ߂
;y[WړpBKvȂΏB
;if %ret=="dn" then
;	sin_log_page=sin_log_page-1
;	if sin_log_page==0 then sin_log_page=1
;	%0="@sin_log_t_page_"+str(sin_log_page)
;	goto %0
;endif
;if %ret=="up" then
;	sin_log_page=sin_log_page+1
;	if sin_log_page>sin_log_page_max then sin_log_page=sin_log_page_max
;	%0="@sin_log_t_page_"+str(sin_log_page)
;	goto %0
;endif
;-----------------------------------------
;sin_log_page̓y[WB

if %ret=="1" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_001 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="2" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_002 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="3" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_003 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="4" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_004 : gosub @sin_window_kesu : print #c : goto sin_log_l

if %ret=="5" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_005 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="6" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_006 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="7" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_007 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="8" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_008 : gosub @sin_window_kesu : print #c : goto sin_log_l

if %ret=="9" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_009 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="10" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_010 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="11" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_011 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="12" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_012 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="13" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_013 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="14" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_014 : gosub @sin_window_kesu : print #c : goto sin_log_l
if %ret=="15" and sin_log_page==1 then  spsetvisible "title",0 : gosub @sin_story_015 : gosub @sin_window_kesu : print #c : goto sin_log_l



;ʏ
goto @log_text_01_lp
