@cin_b_syokika_000
;ꂠۂAP΂P̂qofB
;IɂďĂ蕉肷B
;ƃxAbvBĐDxオB
;ƔƂB

;Gl~[̏oݒ
if ste[12]==1 and tane==0 then gosub @cin_enemy_01_001:goto @sin_battle_syoki_24	;gosub ς

;Gl~[̐ݒ---------------------------------------------
@cin_enemy_01_001
enemy[-1]="O"
enemy[-2]="摜t@C"	;"enemy/001.png"Ȃ
enemy[1]=10		;̗
enemy[2]=3		;U
enemy[3]=2		;ol
enemy[4]=5		;ro
enemy[5]=1		;ACeID
enemy[100]=1		;GID
return
;----------------------------------------------------------

@sin_battle_syoki_24
;GB
tankyo=10	;퓬̋BPO
%m=10	;́iŕϓj
spset "title",10
gosub @sin_textw_btn_kakusi	;{^\

text_name[2]=enemy[-1]
G̖OꂽI
spset "e",1001
;sp "e:enemy",{name=enemy[-2],x=0,y=0,z=10}	;ɓGŒ肳ĂGL摜

@sin_battle_24_lp
;iViI̓rƂłˁj
spdelete "window:nametext" ;Õ^O
spfill "window:text",0,#00000000:print #C	;oOƂB^񒆂ɐlȂƃ_
;GƂ̋
%kyori=STR(tankyo):sp "e:kyo",{name="?GƂ̋@"+%kyori+",text_a",x=50,y=50,z=0}:print #C

gosub @sin_ste	;Xe[^X



;98.txt̉ϑIďo
;Oɐݒ肵ĂI
sel_x=50
sel_y=410+40+70
sin_ssl_kazu=4	;I̐
;sin_sei[1]`	;I̓e
;sin_return[1]`	;߂w
for %0=1 to 6
sin_sei[%0]=""
next
sin_sei[1]="l߂`UɁAGɋ߂Â"
sin_sei[2]="@U@@`ɂĖ͏ς܂"
sin_sei[3]="h@@@@`͂񕜂܂"
;if item[22]==1 and item[23]==1 then sin_sei[4]="KEZ@@@`lōU܂"
sin_sei[4]="sk@@`킴ƕĂrol܂"
sin_return[1]="@sin_b_1a_03"
sin_return[2]="@sin_b_2a_03"
sin_return[3]="@sin_b_3a_03"
:sin_return[4]="@sin_b_4a_03"	;͋ẐƂ̂
sin_return[4]="@sin_b_4b_03"	;
gosub @sin_select_001	;IĂяo

;퓬͂ǂ炩BŏɍUƂ򂳂ĂB

@sin_b_1a_03
;OȂIɖ߂
if tankyo==0 then
	ȏ߂ÂKv͂ȂI
	goto @sin_battle_24_lp
endif

;ʁBPOB
tankyo=tankyo-2
Q߂I
if tankyo<0 then tankyo=0
endif

;ϊ
%kyori=STR(tankyo):sp "e:kyo",{name="?GƂ̋@"+%kyori+",text_a",x=50,y=50,z=0}:print #C

;G̃^[
goto @sin_battke_enemy_02

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@sin_ba_03_ma10
;͂ȂȂ܂I
͂߂܂B
;if sin_02_chr==1 then ste[32]=ste[32]+10
;if sin_02_chr==2 then ste[37]=ste[37]+10
;if ste[32]>ste[33] then ste[32]=ste[33]
;if ste[37]>ste[38] then ste[37]=ste[38]
ste[3]=ste[3]+10
if ste[3]>ste[4] then ste[3]=ste[4]
;G̃^[
goto @sin_battke_enemy_02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@sin_b_2a_03
;@U
;͂Ȃ΍UłȂ
if ste[3]>10 then
	;͂Ȃ̂ŁAsB
	͂sĂI
	goto @sin_ba_03_ma10	;͉񕜂ցB
endif
if ste[3]>5 then
	;͂Ȃ̂ŁAsB
	͂sĂI
	goto @sin_ba_03_ma10	;͉񕜂ցB
endif
if ste[3]>0 then
	;͂Ȃ̂ŁAsB
	͂sĂI
	goto @sin_ba_03_ma10	;͉񕜂ցB
endif
if tankyo==10 then ste[3]=ste[3]-10:goto @sin_b_2a_03a
if tankyo>=5 then ste[3]=ste[3]-5:goto @sin_b_2a_03a
if tankyo>=0 then ste[3]=ste[3]-1:goto @sin_b_2a_03a
@sin_b_2a_03a

;|ƁA\̓Abv邩ro擾̂߂ɐsׂ邩IׂB
%k=ste[1]+ste[3]	;݂̗̑͂ƍU͂Ń_[WŒB
enemy[1]=enemy[1]-%k	;G̗̑͂U͂ň
;G̗̑͂}CiXȂ珟B
text_name[3]=str(%k)	;_[W
;h炷B
quake 300,3,1	;ԁAKATCY
;U
seplay 1,"rpg_sozai/se/player_a_ma.ogg"	;@U
G̖OɁ_[W_[W^I
;G|Ɣ\̓AbvAsׂ邩B|ȂG̃^[B
if enemy[-1]<=0 then goto @sin_b_24_03_winsel
goto @sin_enemy_dame_03a

@sin_b_3a_03
;͂߂\\B
goto @sin_ba_03_ma10

@sin_b_4a_03
ӂr\\B
goto @sin_b_24_03_losesel	;sk󂯓BroA\̓_E

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@sin_enemy_dame_03a
;G̃^[Bǂ邩Ń_[WςB

sel_x=50
sel_y=410+40+70
sin_ssl_kazu=4	;I̐
;sin_sei[1]`	;I̓e
;sin_return[1]`	;߂w
for %0=1 to 6
sin_sei[%0]=""
next
sin_sei[1]="h䂷@@`_[Wy܂"
sin_sei[2]="@@`ɂă_[Wy"
sin_sei[3]="@@`_[W󂯂邪U܂"
;if item[22]==1 and item[23]==1 then sin_sei[4]="KEZ@@@`lōU܂"
sin_sei[4]="sk@@`킴ƕĂrol܂"
sin_return[1]="@sin_b_1a_03ene"
sin_return[2]="@sin_b_2a_03ene"
sin_return[3]="@sin_b_3a_03ene"
:sin_return[4]="@sin_b_4a_03"	;͋ẐƂ̂
sin_return[4]="@sin_b_4b_03"	;
gosub @sin_select_001	;IĂяo

@sin_b_1a_03ene
;h䂷
%k=enemy[1]+enemy[2]	;G̍U
ste[1]=ste[1]-%k	;̗̑͂U͂ň
text_name[3]=str(%k)	;_[W
;h炷B
quake 300,3,1	;ԁAKATCY
;U
seplay 1,"rpg_sozai/se/player_a_ma.ogg"	;@U
G̖O灔_[W_[W󂯂I
;G|Ɣ\̓AbvAsׂ邩B|ȂG̃^[B
if ste[1]<=0 then goto @sin_b_24_03_losesel
goto @sin_battle_24_lp

@sin_b_2a_03ene
;
%k=enemy[1]+enemy[2]	;G̍U
;Ń_[WB
if tankyo==10 then ste[1]=ste[1]-%k
if tankyo>=5 then %k=%k-ste[3]+ste[1];ste[1]=ste[1]-%k
if tankyo>=0 then ste[1]=ste[1]-1
;ste[1]=ste[1]-%k	;̗̑͂U͂ň
if %k<0 then %k=1	;_[WOȉȂPɁB
text_name[3]=str(%k)	;_[W
;h炷B
quake 300,3,1	;ԁAKATCY
;U
seplay 1,"rpg_sozai/se/player_a_ma.ogg"	;@U
G̖O灔_[W_[W󂯂I
;G|Ɣ\̓AbvAsׂ邩B|ȂG̃^[B
if ste[1]<=0 then goto @sin_b_24_03_losesel
goto @sin_battle_24_lp

@sin_b_3a_03ene
;B_[W󂯂ĂUȂ̂łB
%k=enemy[1]+enemy[2]	;G̍U
ste[1]=ste[1]-%k	;̗̑͂U͂ň
text_name[3]=str(%k)	;_[W
;h炷B
quake 300,3,1	;ԁAKATCY
;U
seplay 1,"rpg_sozai/se/player_a_ma.ogg"	;@U
G̖O灔_[W_[W󂯂I
;G|Ɣ\̓AbvAsׂ邩B|ȂG̃^[B
if ste[1]<=0 then goto @sin_b_24_03_losesel
;͖͂ȂB
%k=ste[1]+ste[3]
;|ƁA\̓Abv邩ro擾̂߂ɐsׂ邩IׂB
%k=ste[1]+ste[3]	;݂̗̑͂ƍU͂Ń_[WŒB
enemy[1]=enemy[1]-%k	;G̗̑͂U͂ň
;G̗̑͂}CiXȂ珟B
text_name[3]=str(%k)	;_[W
;h炷B
quake 300,3,1	;ԁAKATCY
;U
seplay 1,"rpg_sozai/se/player_a_ma.ogg"	;@U
G̖OɁ_[W_[W^I
;G|Ɣ\̓AbvAsׂ邩B|ȂG̃^[B
if enemy[-1]<=0 then goto @sin_b_24_03_winsel

goto @sin_battle_24_lp

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;ꍇB
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@sin_b_24_03_winsel
G̖Oǂ܂H
;98.txt̉ϑIďo
;Oɐݒ肵ĂI
sel_x=50
sel_y=410+40+70
sin_ssl_kazu=2	;I̐
;sin_sei[1]`	;I̓e
;sin_return[1]`	;߂w
for %0=1 to 6
sin_sei[%0]=""
next
sin_sei[1]="|@@@@`\͒lSAbv"
sin_sei[2]="sׂ@`ro肵܂"
sin_return[1]="@sin_b_1a_03win1"
sin_return[2]="@sin_b_2a_03win2"
gosub @sin_select_001	;IĂяo
@sin_b_1a_03win1
;|
S\͂オI
ste[2]=ste[2]+1
ste[4]=ste[4]+1
ste[5]=ste[5]+1
gosub @sin_ste	;Xe[^X
S\͒lPAbvI
goto @cin_danzyon_40	;Tɖ߂

;ro
ste[20]=ste[20]+enemy[4]
text_name[3]=str(enemy[4])
G̖O灔_[WroDI
if enemy[100]==1 then gosub @sin_story_004:goto @sin_s_001	;ił͂WPɃXg[[˂ŁA߂B̌łS

goto @cin_danzyon_40	;Tɖ߂

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;ꍇB
@sin_b_24_03_losesel
S\͂I
ste[2]=ste[2]-1
ste[4]=ste[4]-1
ste[5]=ste[5]-1
if ste[2]>50 then
	ȏ͉ȂccB
endif
if ste[4]>20 then
	ȏ͉ȂccB
endif
if ste[5]>5 then
	ȏ͉ȂccB
endif
;ȉGɂĕςBSPQbg܂B͂B
ste[20]=ste[20]+enemy[5]
if enemy[100]==1 then gosub @sin_story_003:goto @sin_s_001	;ił͂WPɃXg[[˂ŁA߂B̌łS


