Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
I need some part of my story to behave like user already read it.
i.e be skippable with 'skip' feature right away on the first run, even if 'skip unseen text' preference is off.
I think something like "register" these lines as already seen, would be ideal solution. Can I do it?
#this text should be always skippable
label boring_part:
'lines of boring text which you can skip'
'more lines of boring text which you can skip'
'even more lines of boring text which you can skip'
#dozens of boring lines but we skipped them
#this text shouldn't be skippable if unseen and not opted to skip unseen
label resume_good_story:
'wow a story!'
'such plot'
'very great'
Lena_Borodach wrote: ↑Wed Feb 13, 2019 5:25 pm
I need some part of my story to behave like user already read it.
i.e be skippable with 'skip' feature right away on the first run, even if 'skip unseen text' preference is off.
I think something like "register" these lines as already seen, would be ideal solution. Can I do it?
#this text should be always skippable
label boring_part:
'lines of boring text which you can skip'
'more lines of boring text which you can skip'
'even more lines of boring text which you can skip'
#dozens of boring lines but we skipped them
#this text shouldn't be skippable if unseen and not opted to skip unseen
label resume_good_story:
'wow a story!'
'such plot'
'very great'
label boring_part:
$ _skipping = True
'lines of boring text which you can skip'
'more lines of boring text which you can skip'
'even more lines of boring text which you can skip'
#dozens of boring lines but we skipped them
#this text shouldn't be skippable if unseen and not opted to skip unseen
label resume_good_story:
$ _skipping = False
'wow a story!'
'such plot'
'very great'
This works for me, found it from Pytom answer sonewhere..
I am a friendly user, please respect and have a good day.
label boring_part:
$ _skipping = True
'lines of boring text which you can skip'
'more lines of boring text which you can skip'
'even more lines of boring text which you can skip'
#dozens of boring lines but we skipped them
#this text shouldn't be skippable if unseen and not opted to skip unseen
label resume_good_story:
$ _skipping = False
'wow a story!'
'such plot'
'very great'
This works for me, found it from Pytom answer sonewhere..
Doesn't work for me. But here is working solution for this approach:
1) in screens.rpy
1.1) in screen preferences:
replace
#this text should be always skippable
label boring_part:
$mode_skipping = True
'lines of boring text which you can skip'
'more lines of boring text which you can skip'
'even more lines of boring text which you can skip'
#dozens of boring lines but we skipped them
#this text shouldn't be skippable if unseen and not opted to skip unseen
label resume_good_story:
$mode_skipping = False
'wow a story!'
'such plot'
'very great'
But i'm not a fan of this approach because of potential flaw - if the mode_skipping toggle is somehow evaded, the whole skip_unseen preference will be broken for entire game. So i keep it to the last resort.