Page 1 of 1
An aaction that activates or deactivates auto-forward
Posted: Wed Jan 19, 2022 11:30 am
by abeplaga
Hi, I see that there's a value called preferences.afm_enable that activates auto-forward (
https://www.renpy.org/doc/html/preferences.html).
I would like to deactivate the auto-forward (if the player has previously activated it) when entering a screen, but I can't get it.
I have tried this with some variations but it gives me error.
Code: Select all
action Preference("afm_enable", "False")
I have set "preferences.afm_enable", I have removed the " " around the False value.... but nothing...
I have seen in old threads that there is a similar action...
Code: Select all
action Preference("auto-forward", "toggle")
but what it does is to change to the opposite value and I would like the value to be changed to False.
Can anyone help me? Thanks!
Re: An aaction that activates or deactivates auto-forward
Posted: Wed Jan 19, 2022 11:52 am
by Ocelot
A good start would be to read documentation on
Preference() action and see which preference names and values can be used.
Re: An aaction that activates or deactivates auto-forward
Posted: Wed Jan 19, 2022 12:50 pm
by plastiekk
abeplaga wrote: ↑Wed Jan 19, 2022 11:30 am
Hi, I see that there's a value called preferences.afm_enable that activates auto-forward (
https://www.renpy.org/doc/html/preferences.html).
I would like to deactivate the auto-forward (if the player has previously activated it) when entering a screen, but I can't get it.
I have tried this with some variations but it gives me error.
Code: Select all
action Preference("afm_enable", "False")
I have set "preferences.afm_enable", I have removed the " " around the False value.... but nothing...
I have seen in old threads that there is a similar action...
Code: Select all
action Preference("auto-forward", "toggle")
but what it does is to change to the opposite value and I would like the value to be changed to False.
Can anyone help me? Thanks!
Try:
in your script to deactivate skipping and the opposite
to allow it.
Or study the manual, like Ocelot said.
Edit: Forget the above, i copied/pasted the wrong line, haha.
its:
$ preferences.afm_enable True/False of course.
Your action should look like this:
Code: Select all
action ToggleVariable('preferences.afm_enable', True, False)
Re: An aaction that activates or deactivates auto-forward
Posted: Thu Jan 20, 2022 9:47 am
by plastiekk
abeplaga wrote: ↑Wed Jan 19, 2022 11:30 am
Can anyone help me? Thanks!
Edited my post above.
Re: An aaction that activates or deactivates auto-forward
Posted: Fri Jan 21, 2022 7:49 pm
by strayerror
Think this is the one you're looking for:
Code: Select all
Preference("auto-forward", "disable")
src:
https://www.renpy.org/doc/html/screen_a ... Preference