- Aug 12, 2017
- 3,896
- 3,372
i didn't mess with DM's scriptsI see you replace "return False" with "return True". So in that case can't you also just remove the unneeded logic? I'm no python expert but still
def check_achievement(str):
return True
def get_achievement(achLabel):
return True
i just found out that i could replace false with true
in 1 place in eps1 and eps2
and
2 places in eps3 and eps4
the last line in eps4 i just added true to the line
but i haven't testet that video yet
cos i don't want to spoil myself
and i don't know which gallery picture there are a video
this is how the original file looks
init python:
if persistent.achievements is None:
persistent.achievements = {}
def check_achievement(str):
if str in achievements_labels:
achLabel = achievements_labels[str]
if (achLabel in persistent.achievements) == False:
persistent.achievements[achLabel] = True
# renpy.save_persistent()
print "Achievement reached!"
return True
return False
def get_achievement(achLabel):
if (achLabel in persistent.achievements and persistent.achievements[achLabel] == True) or debugMode == True:
return True
return False
def check_shake_achievement(video_filename):
shake_img = re.search(r'shake\_(\d+)', video_filename)
if shake_img != None:
check_achievement("img_" + shake_img.group(1))
return
#