Search found 786 matches

by kivik
Sat Apr 07, 2018 1:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Having some "choices" problems
Replies: 10
Views: 844

Re: Having some "choices" problems

I had a go at this, though the code's quite messy and confusing so I just took a stab at what you intended, starting from the start label. I'm assuming you're basically choosing to either speak to Lauren or Jess, then end the game. label start: # missing colon scene evening "I decided to take a look...
by kivik
Sat Apr 07, 2018 12:44 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] no blank character name
Replies: 4
Views: 1592

Re: no blank character name

Oh I see! Sorry I misunderstood! Try something like this instead then: python: protag = "" warning = "" while not protag: protag = renpy.input("Name?"+warning).strip() warning = " Name cannot be empty!" Haven't tested this but it should work. I added a warning message variable as well which you can ...
by kivik
Sat Apr 07, 2018 9:08 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] no blank character name
Replies: 4
Views: 1592

Re: no blank character name

I assume your indentation is correct in your code - as python: along with everything inside needs to be one level indented from the label. Now try this code for the python block: python: protag = renpy.input("Name?").strip() if protag == "": protag = "Mister NoName" .strip() removes leading or trail...
by kivik
Sat Apr 07, 2018 7:32 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] ValueError: generator already executing on exit (Ren'py doesn't seem to like deepcopy)
Replies: 5
Views: 1247

Re: ValueError: generator already executing on exit

I never saw the copy button before, thought I'd have to type all of it up! Here it is below. I didn't have this problem when I was purely testing the call screen schedule before, but maybe I've changed some code that I didn't remember. The screen also calls additional screens in loops as well, I've ...
by kivik
Sat Apr 07, 2018 7:07 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] ValueError: generator already executing on exit (Ren'py doesn't seem to like deepcopy)
Replies: 5
Views: 1247

[Solved] ValueError: generator already executing on exit (Ren'py doesn't seem to like deepcopy)

A bit of a strange one and I struggle to reproduce this, but when I use CMD-Q to quit my game (pre-compiled), I sometimes get the following message: ValueError: generator already executing It started happening since I've hooked my loops together, and it doesn't happen all the time. Google is suggest...
by kivik
Sat Apr 07, 2018 6:48 am
Forum: Ren'Py Questions and Announcements
Topic: Strange AF bug
Replies: 9
Views: 683

Re: Strange AF bug

Just for info: extend is the same as using += or + in very basic list syntax (python/not renpy code) >>> l = [1,2] >>> m = [3,4] >>> n = l+m >>> n [1, 2, 3, 4] >>> n += m >>> n [1, 2, 3, 4, 3, 4] Cool! I've seen that used, but on stack overflow someone gave me the impression that += would append in...
by kivik
Fri Apr 06, 2018 4:34 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Identify character during callback
Replies: 5
Views: 1545

Re: [SOLVED] Identify character during callback

If you want to use callbacks: https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=48870#p482245 This was meant to remember the last character who spoke and do something with the image. Look at how I pass the parameter to the callback. This is probably the third or fourth time I reuse this answer,...
by kivik
Fri Apr 06, 2018 4:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Strange AF bug
Replies: 9
Views: 683

Re: Strange AF bug

Hm, I currently have exactly the same problem (my list is not named 'chain'). I have no clue what I'm doing wrong. I got Ren'Py with lists working now. My problem was: Two or three ideas that flashed through my mind, a quick and dirty script to test if the ideas could be realized, loss of overview,...
by kivik
Fri Apr 06, 2018 4:21 pm
Forum: Ren'Py Questions and Announcements
Topic: About Atom editor and Ren'Py
Replies: 10
Views: 5344

Re: About Atom editor and Ren'Py

I just chip in again, I forget that I've paid for my copy of Sublime Text so I don't get the random pop ups upon saving. I can understand why PyTom would go for something that's intended to be free :)
by kivik
Fri Apr 06, 2018 9:24 am
Forum: Ren'Py Questions and Announcements
Topic: About Atom editor and Ren'Py
Replies: 10
Views: 5344

Re: About Atom editor and Ren'Py

I just downloaded Atom from the official site and it's 145MB, so I guess there has been a significant change. You can see the release notes here but without knowing what version you had it's hard to know for sure: https://atom.io/releases Personally I'd sticking with what you're happy with. I'm also...
by kivik
Thu Apr 05, 2018 5:02 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Identify character during callback
Replies: 5
Views: 1545

Re: Identify character during callback

config speaking attribute would do it... define config.speaking_attribute = None If not None, this should be a string giving the name of an image attribute. The image attribute is added to the image when the character is speaking, and removed when the character stops. init python config.speaking_at...
by kivik
Thu Apr 05, 2018 4:46 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Identify character during callback
Replies: 5
Views: 1545

[SOLVED] Identify character during callback

Hi there I'd like to add emphasis on the speaking character, so I figured using character callback's event == "begin" and event == "end" I can achieve this effect. The only problem I have now is I don't know how to identify the character speaking right now. My Google search is fruitless at the momen...
by kivik
Tue Apr 03, 2018 2:06 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Nested Screens / Screen refreshing
Replies: 2
Views: 1415

Re: Nested Screens / Screen refreshing

That's DannX! I found out that I can use SetField as well which allows me to set object variables, although I found out what the real problem was: I realised the screen wasn't changing for me due to the game loop ending, as I skipped the game menu screen by jumping to the start label so it looks lik...
by kivik
Sun Apr 01, 2018 11:52 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Nested Screens / Screen refreshing
Replies: 2
Views: 1415

[SOLVED] Nested Screens / Screen refreshing

Hi there, I'm struggling a bit with the screen language, and I'm hoping someone can help me. I'm trying to create several nested screens that allows me to set some variables. Basically it's a scheduling screen where I have a timetable of what my character will do. The actions are stored in the chara...
by kivik
Thu Sep 01, 2016 5:13 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Can You Trigger Flags for Multiple Things?
Replies: 16
Views: 2734

Re: Can You Trigger Flags for Multiple Things?

I wrote a reply whilst trooper6 wrote the above, and I agree with what he said. Even if you have a fixed set of choices for different situations (fight encounters, conversations, idle options), if you build the menus in a label block and just call it - you'll be able to increment the time accordingl...