Hello,
In my game, I have a tutorial that loop until a certain action has been done, but I want it to only appear once in the history and rollback (aka you don't have to back for a year to get to the line before the tutorial). Is that possible, and how would I do that?
[Solved] Keeping text loop out of history/rollback
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.
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.
- nature1996
- Regular
- Posts: 62
- Joined: Wed Jun 21, 2017 10:35 am
- Contact:
[Solved] Keeping text loop out of history/rollback
Last edited by nature1996 on Tue May 07, 2019 8:53 am, edited 1 time in total.
Je parle aussi français
- Matalla
- Veteran
- Posts: 202
- Joined: Wed Mar 06, 2019 6:22 pm
- Completed: The Lost Smile
- itch: matalla-interactive
- Location: Spain
- Contact:
Re: Keeping text loop out of history/rollback
I'm not sure if this is exactly what you want, but you can deactivate history before the tutorial with this
https://www.renpy.org/doc/html/store_va ... r-_history
Then, after the tutorial is finished, manually add the entry as you want with something like this and reactivate history afterwards.
Or, if you know exactly how and when the user make the proper choice, activate history then without the need to manually add the entry.
I don't know exactly how to deal with the rollback thing, sorry. Maybe using this?
https://www.renpy.org/doc/html/save_loa ... d_rollback
https://www.renpy.org/doc/html/store_va ... r-_history
Then, after the tutorial is finished, manually add the entry as you want with something like this and reactivate history afterwards.
Code: Select all
$ narrator.add_history(kind="adv", who=None, what="whatever")I don't know exactly how to deal with the rollback thing, sorry. Maybe using this?
https://www.renpy.org/doc/html/save_loa ... d_rollback
- nature1996
- Regular
- Posts: 62
- Joined: Wed Jun 21, 2017 10:35 am
- Contact:
Re: Keeping text loop out of history/rollback
For the history, I ended up using the variable just under it:https://www.renpy.org/doc/html/store_va ... story_list
By doing history.pop() for each statement before the jump, I can remove the double before they happens.
Doesn't work for the rollback though... Still no solution.
By doing history.pop() for each statement before the jump, I can remove the double before they happens.
Doesn't work for the rollback though... Still no solution.
Je parle aussi français
- nature1996
- Regular
- Posts: 62
- Joined: Wed Jun 21, 2017 10:35 am
- Contact:
Re: Keeping text loop out of history/rollback
Finally, upon reconsideration, I made this out:
Code: Select all
label tutorial_1:
tutorial "Describe the game mechanic."
if not test_to_continue:
$ _history = False
$ renpy.suspend_rollback(True)
jump tutorial_1
$ renpy.suspend_rollback(False)
$ _history = True
#the rest of the storyJe parle aussi français
Who is online
Users browsing this forum: No registered users