Search found 232 matches

by rames44
Thu Jun 28, 2018 6:03 pm
Forum: Ren'Py Questions and Announcements
Topic: SetScreenVariable doesn't work in a "used" screen?
Replies: 3
Views: 1399

Re: SetScreenVariable doesn't work in a "used" screen?

After some experimentation, what @xavimat and @Remix said is correct. To put it in my own vernacular, calls to SetScreenVariable and variable evaluation within a screen have different "visibility" rules. Tests of variable values, such as: if state == 1: or text "The current state is [state]" behave ...
by rames44
Thu Jun 28, 2018 11:45 am
Forum: Ren'Py Questions and Announcements
Topic: Expected Statement
Replies: 1
Views: 226

Re: Expected Statement

Missing a dollar sign at the beginning of the line?
by rames44
Tue Jun 26, 2018 1:11 pm
Forum: Ren'Py Questions and Announcements
Topic: SetScreenVariable doesn't work in a "used" screen?
Replies: 3
Views: 1399

SetScreenVariable doesn't work in a "used" screen?

I'm using Renpy 7.0.0.196. I have a screen that I plan to re-use in several places that makes use of an internal screen variable, which changes based on actions the player takes and, in turn, allows the screen to alter itself. Using a SetScreenVariable action works just fine if I call the screen dir...
by rames44
Sat Jun 23, 2018 11:51 am
Forum: Ren'Py Questions and Announcements
Topic: I need help with the script
Replies: 3
Views: 469

Re: I need help with the script

You can see how to implement a “Continue” button that loads the most recent save here
viewtopic.php?f=8&t=50032&p=486679&hili ... e”#p486679
by rames44
Thu Jun 14, 2018 12:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Show menu animation only if game is starting up
Replies: 9
Views: 759

Re: Show menu animation only if game is starting up

Another possibility - set a variable to True in the splashscreen area. Modify the main menu screen to set that variable to False before starting a new one or loading one. (I.e. insert a SetVariable action). Only do your animations in the main menu if that variable is True. This way, you only do the ...
by rames44
Sun Jun 10, 2018 4:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Non Repeating Random without Infinite Loop Error
Replies: 7
Views: 1111

Re: Non Repeating Random without Infinite Loop Error

As a suggestion, why not create an array of the cards you haven’t issued. (Or just their indices) This is your “yet to be used deck.” Pick a random number between 0 and “current length of the array.” Remove the card (or card index) at that index in the array, shrinking the array. (And thus reducing ...
by rames44
Mon Jun 04, 2018 11:43 am
Forum: Ren'Py Questions and Announcements
Topic: ATL statement contains two expressions in a row; is one of them a misspelled property?
Replies: 4
Views: 932

Re: ATL statement contains two expressions in a row; is one of them a misspelled property?

Well, you’re missing a colon after “start”. Past that, we would need more context.