Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
7.1 kB
25
Indexable
Never
label attackrng:
$ rng = renpy.random.randint(9,23)
if rng == 9:
    $ enemyhealth -= 9
    call attackanimationenemyatttack from _call_attackanimationenemyatttack
    jump combatscreen
elif rng == 10:
    $ enemyhealth -= 10
    call attackanimationenemyatttack from _call_attackanimationenemyatttack_1
    jump combatscreen
elif rng == 11:
    $ enemyhealth -= 11
    call attackanimationenemyatttack from _call_attackanimationenemyatttack_2
    jump combatscreen
elif rng == 12:
    $ enemyhealth -= 12
    call attackanimationenemyatttack from _call_attackanimationenemyatttack_3
    jump combatscreen
elif rng == 13:
    $ enemyhealth -= 13
    call attackanimationenemyatttack from _call_attackanimationenemyatttack_4
    jump combatscreen
elif rng == 14:
    $ enemyhealth -= 14
    call attackanimationenemyatttack from _call_attackanimationenemyatttack_5
    jump combatscreen
elif rng == 15:
    $ enemyhealth -= 15
    call attackanimationenemyatttack from _call_attackanimationenemyatttack_6
    jump combatscreen
elif rng == 16:
    $ enemyhealth -= 16
    call attackanimationenemyatttack from _call_attackanimationenemyatttack_7
    jump combatscreen
elif rng == 17:
    $ enemyhealth -= 17
    call attackanimationenemyatttack from _call_attackanimationenemyatttack_8
    jump combatscreen
elif rng == 18:
    $ enemyhealth -= 18
    call attackanimationenemyatttack from _call_attackanimationenemyatttack_9
    jump combatscreen
elif rng == 19:
    $ enemyhealth -= 19
    call attackanimationenemyatttack from _call_attackanimationenemyatttack_10
    jump combatscreen
elif rng == 20:
    $ enemyhealth -= 20
    call attackanimationenemyatttack from _call_attackanimationenemyatttack_11
    jump combatscreen
elif rng == 21:
    $ enemyhealth -= 21
    call attackanimationenemyatttack from _call_attackanimationenemyatttack_12
    jump combatscreen
elif rng == 22:
    $ enemyhealth -= 22
    call attackanimationenemyatttack from _call_attackanimationenemyatttack_13
    jump combatscreen
elif rng == 23:
    $ enemyhealth -= 23
    call attackanimationenemyatttack from _call_attackanimationenemyatttack_14
    jump combatscreen

label defendrng:
hide mccombat1
show mccombat4
pause 0.3
$ rng = renpy.random.randint(1,5)
if rng == 5:
    $ enemymiss = 2
    call enemyatttack from _call_enemyatttack
    jump combatscreen
elif rng <= 4:
    pass
if enemymiss >= 3:
    $ enemymiss = 2
    call enemyatttack from _call_enemyatttack_1
    jump combatscreen
else:
    $ enemymiss = 1
    call enemyatttack from _call_enemyatttack_2
    jump combatscreen


label heal25:
hide mccombat1
show mccombat5
pause 0.3
hide mccombat5
show mccombat6
pause 0.3
if mchealth >= 75:
    $ mchealth = 100
    call enemyatttack from _call_enemyatttack_3
    jump combatscreen
else:
    $ mchealth += 25
    call enemyatttack from _call_enemyatttack_4
    jump combatscreen

label enemyatttack:
if enemymiss == 2:
    $ enemymiss -= 1
    jump combatscreen
elif enemymiss == 1:
    $ enemymiss -= 1
    jump combatscreen
elif enemymiss == 0:
    pass
call enemycombatanimation from _call_enemycombatanimation
$ rng = renpy.random.randint(9,23)
if rng == 9:
    $ mchealth -= 9
    return
elif rng == 10:
    $ mchealth -= 10
    return
elif rng == 11:
    $ mchealth -= 11
    return
elif rng == 12:
    $ mchealth -= 12
    return
elif rng == 13:
    $ mchealth -= 13
    return
elif rng == 14:
    $ mchealth -= 14
    return
elif rng == 15:
    $ mchealth -= 15
    return
elif rng == 16:
    $ mchealth -= 16
    return
elif rng == 17:
    $ mchealth -= 17
    return
elif rng == 18:
    $ mchealth -= 18
    return
elif rng == 19:
    $ mchealth -= 19
    return
elif rng == 20:
    $ mchealth -= 20
    return
elif rng == 21:
    $ mchealth -= 21
    return
elif rng == 22:
    $ mchealth -= 22
    return
elif rng == 23:
    $ mchealth -= 23
    return

label attackanimationenemyatttack:
hide mccombat1
show mccombat2
pause 0.3
hide mccombat2
show mccombat3
pause 0.3
if enemymiss == 2:
    $ enemymiss -= 1
    hide mccombat1
    show mccombat4
    pause 0.3
    jump combatscreen
elif enemymiss == 1:
    $ enemymiss -= 1
    hide mccombat1
    show mccombat4
    pause 0.3
    jump combatscreen
elif enemymiss == 0:
    pass
call enemycombatanimation from _call_enemycombatanimation_1
$ rng = renpy.random.randint(9,23)
if rng == 9:
    $ mchealth -= 9
    return
elif rng == 10:
    $ mchealth -= 10
    return
elif rng == 11:
    $ mchealth -= 11
    return
elif rng == 12:
    $ mchealth -= 12
    return
elif rng == 13:
    $ mchealth -= 13
    return
elif rng == 14:
    $ mchealth -= 14
    return
elif rng == 15:
    $ mchealth -= 15
    return
elif rng == 16:
    $ mchealth -= 16
    return
elif rng == 17:
    $ mchealth -= 17
    return
elif rng == 18:
    $ mchealth -= 18
    return
elif rng == 19:
    $ mchealth -= 19
    return
elif rng == 20:
    $ mchealth -= 20
    return
elif rng == 21:
    $ mchealth -= 21
    return
elif rng == 22:
    $ mchealth -= 22
    return
elif rng == 23:
    $ mchealth -= 23
    return


label combatscreenmusic:
play music "audio/fightmusic.mp3"
label combatscreen:
if combatscene == 0:
    jump testcombat
elif combatscene == 1:
    jump combateilir
else:
    return

label combateilir:
call clearmaster from _call_clearmaster_11
show insidecave
call exitscreens from _call_exitscreens_48
show mccombat1
show eilircombat1
if enemyhealth <= 0:
    jump eilircombatwin
elif mchealth <= 0:
    jump eilircombatlose
call screen combat

label testcombat:
call clearmaster from _call_clearmaster_12
show blackscreen
call exitscreens from _call_exitscreens_49
show mccombat1
show eilircombat1
if enemyhealth <= 0:
    jump combatwin
elif mchealth <= 0:
    jump combatlose
call screen combat

label combatwin:
fenn "Win!"
$ mchealth = 100
$ enemyhealth = 150
jump combatoff

label combatlose:
fenn "Lose :("
$ mchealth = 100
$ enemyhealth = 150
jump combatoff

label combatoff:
if combatscene == 0:
    jump combatofftest
elif combatscene == 1:
    jump combateiliroff
else:
    jump krisaptscreen

label combateiliroff:
call clearmaster from _call_clearmaster_13
call layersclear from _call_layersclear_1
show blackscreen
show eilircombat1
play music "audio/cavemusic.mp3"
jump caveinside

label combatofftest:
call clearmaster from _call_clearmaster_14
call layersclear from _call_layersclear_2
show blackscreen
show eilircombat1
play music "audio/aptmusic.mp3"
jump krisaptscreen

label enemycombatanimation:
if combatscene == 0:
    hide eilircombat1
    show eilircombat2
    pause 0.3
    hide eilircombat2
    show eilircombat3
    pause 0.3
    return
elif combatscene == 1:
        hide eilircombat1
        show eilircombat2
        pause 0.3
        hide eilircombat2
        show eilircombat3
        pause 0.3
else:
    return

return