Code: Select all
init:
$ strength = 40
$ fatigue = 10
$ pct = 100 - strength + fatigue
label start:
scene black
menu:
"Attack(success chance: \%[pct].":
$ d100 = renpy.random.randint(1,100) + strength - fatigue
if d100 >= 60:
$ strength += 5
jump a
if d100 <= 60:
$ strength += 3
jump b
label a:
"Win"
$ strength += 10
$ pct = 100 - strength + fatigue
menu:
"Attack(success chance: \%[pct].":
$ d100 = renpy.random.randint(1,100) + strength - fatigue
if d100 >= 60:
$ strength += 5
jump c
if d100 <= 60:
$ strength += 5
jump d
return
label b:
"Loss"
$ strength -= 10
$ pct = 100 - strength + fatigue
menu:
"Attack(success chance: \%[pct].":
$ d100 = renpy.random.randint(1,100) + strength - fatigue
if d100 >= 60:
$ strength += 5
jump c
if d100 <= 60:
$ strength += 3
jump d
Thank you