Search found 15 matches
- Mon Apr 06, 2020 3:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: Dictionary with characters
- Replies: 4
- Views: 396
Re: Dictionary with characters
Hmm, then the corresponding problem. If I want to change the name of a character using a function, then I come across a stupid problem init python: def change_name (old_name, new_name): global chara for i in chara: if (i.name == old_name): # time of comparison i.name = new_name return label start: e...
- Sun Apr 05, 2020 3:10 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Dictionary with characters
- Replies: 4
- Views: 396
Re: Dictionary with characters
It looks like I solved the main problem using formatted output: default Eileen = Character("{0}".format (Heroes ["Eileen "].name), color="#c8ffc8") But still I would be glad to advice. upd: Nope. Then the value of the variable enters the character renpy, but is not tied...
- Sun Apr 05, 2020 1:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Dictionary with characters
- Replies: 4
- Views: 396
Dictionary with characters
Hello. I'm stuck trying to create a dictionary with characters (objects of my classes) and bind it to characters created by renpy. Actually, the idea consisted in organizing a structure interacting with which it would be convenient to change the parameters of the characters, including names. And the...
- Wed Apr 01, 2020 6:09 am
- Forum: Ren'Py Questions and Announcements
- Topic: Rollback and Classes
- Replies: 9
- Views: 819
Re: Rollback and Classes
This seems like a lot of coding. For what seems mostly just cps text in the middle of the screen? Oh, my English is bad and I still do not understand what you mean :( In my idea, the text is not displayed in the middle of the screen. And on different screens, depending on the speaker, plus they sho...
- Wed Apr 01, 2020 1:06 am
- Forum: Ren'Py Questions and Announcements
- Topic: Rollback and Classes
- Replies: 9
- Views: 819
Re: Rollback and Classes
On the general yes, the text should be on the screen. In short, then every frame I steal text from the original screen "Sey", and put it on my screen. And I hide the original "Say", giving the elements alpha properties of 0. In the function that places the stolen text on my scree...
- Tue Mar 31, 2020 6:49 am
- Forum: Ren'Py Questions and Announcements
- Topic: Rollback and Classes
- Replies: 9
- Views: 819
Re: Rollback and Classes
You already found the best option... Thank you very much for the answer, now I can stop unnecessary searches. By the way, maybe you know how to make the transformation into text work every frame? Does that text have to be in a screen? What is the purpose in having it in a screen rather than a text ...
- Sun Mar 29, 2020 11:35 am
- Forum: Ren'Py Questions and Announcements
- Topic: Rollback and Classes
- Replies: 9
- Views: 819
Re: Rollback and Classes
I knew that this is something that has long been known! Thank you very much! By the way, maybe you know how to make the transformation into text work every frame? init python: a = "bla-bla-bla" screen temp_screen: text a: slow_cps 10 start: show screen temp_screen "Now the conclusion ...
- Sun Mar 29, 2020 9:15 am
- Forum: Ren'Py Questions and Announcements
- Topic: Rollback and Classes
- Replies: 9
- Views: 819
Rollback and Classes
Hello. I ran into a problem that unwinding does not work on objects of a custom class. Simple example: init python: class temp_class(object): def __init__(self): self.a = 0 A = temp_class() label start: "At this point a = 0: [A.a]" "Here, too, a = 0: [A.a]" # a == 1! $ A.a +=1 &q...
- Sat Mar 21, 2020 3:08 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Is it possible to show nvl and adv at the same time?
- Replies: 7
- Views: 590
Re: Is it possible to show nvl and adv at the same time?
Looks like I found a solution to persistent calls - action, which work when they appear and redraw. In short. screen say(who, what): on "show" action C_Fraud(who, what) on "replace" action C_Fraud(who, what) ... init python: C_Fraud = renpy.curry(My_fraud) def My_fraud(who, what)...
- Sat Mar 21, 2020 2:12 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Is it possible to show nvl and adv at the same time?
- Replies: 7
- Views: 590
Re: Is it possible to show nvl and adv at the same time?
I think the problem arises precisely because I am trying to introduce a separation - the words of the narrator in one place, the words of the characters in another. But I can’t imagine how you can write program code without using conditions.
- Sat Mar 21, 2020 2:06 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Is it possible to show nvl and adv at the same time?
- Replies: 7
- Views: 590
Re: Is it possible to show nvl and adv at the same time?
Thanks for the helpful answers, Alex, and sorry for missing. 1) I still don’t understand why your code is normally displayed only in renpy 6.15 https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=23434#p293323 2) It's not clear why 'fake_action' screen should appear at all - did you set the na...
- Sun Mar 15, 2020 9:52 am
- Forum: Ren'Py Questions and Announcements
- Topic: Is it possible to show nvl and adv at the same time?
- Replies: 7
- Views: 590
Re: Is it possible to show nvl and adv at the same time?
To hell, I decided to fake it. But ran into a stupid problem. I copied the words of the narrator, and showed them on the screen when the character spoke. But somehow, it was not the words that the narrator spoke, but those that he said at the very end. I seem to have already heard about this problem...
- Wed Mar 11, 2020 2:40 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Is it possible to show nvl and adv at the same time?
- Replies: 7
- Views: 590
Is it possible to show nvl and adv at the same time?
Hey. :) Can someone tell me how you can display both Adv and Nvl at the same time? With the help of other people's recipes, I can intercept the text from the screen say, and display it on my own. But at the same time, the ability to use part of the tags, such as {w}, {cps} and others, is lost. In sh...
- Sat May 18, 2019 3:14 am
- Forum: Ren'Py Questions and Announcements
- Topic: Work with sprites
- Replies: 3
- Views: 434
Re: Work with sprites
Okay, this is a slide change animation. I have not tried to study this topic, so thank you. Actually, I'm interested in something else - so that the sprite in the game could breathe, blink, or jump. in conjunction with a modular clothing system, emotions. Is it real, and in what ways can it be done?...
- Sat May 18, 2019 12:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: Work with sprites
- Replies: 3
- Views: 434
Work with sprites
Hello. Please tell me how to create an image of the character in the game. So far I have found the following options: 1. use one image for each character; 2. using Live Composite; 3. using the Sprite class. But the topic has not yet been studied. Interested in animating pictures, modularity. Thank. ...