Search found 115 matches

by sculpteur
Mon Aug 12, 2019 7:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Call fonction in a general screen
Replies: 8
Views: 738

Re: Call fonction in a general screen

That's beautiful. I wish I had skill like this in python. I look like it's really simple when I read your exemple but strangely, when it's me who tries to write something with class and fonction it's never works lol ! Anyway, thank you again for your explanation, i will try to push forward this "fie...
by sculpteur
Sun Aug 11, 2019 4:30 am
Forum: Ren'Py Questions and Announcements
Topic: Call fonction in a general screen
Replies: 8
Views: 738

Re: Call fonction in a general screen

Yop, just for let you know : it's works perfectly after multiples tests. So thank you really much. The only problem is that I don't really understand the SetField things. I understand what it have done to my container.found list/group. But I don't understand what is it exactly and how it works. The ...
by sculpteur
Fri Aug 09, 2019 2:46 pm
Forum: Ren'Py Questions and Announcements
Topic: Screen Name and String variable
Replies: 1
Views: 182

Screen Name and String variable

Hello, I have mutiple screen and one button to close them all but it's not working if i don't write the action hide for each screen. This is working : screen ground_map_world_button: modal False on "show" action SetField(container_found, 'items', []) imagebutton: xpos 1800 ypos 1000 idle "gui/button...
by sculpteur
Fri Aug 09, 2019 2:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Call fonction in a general screen
Replies: 8
Views: 738

Re: Call fonction in a general screen

Yes, I test it right now and I think it might work. So thank you for your fast answer !
by sculpteur
Fri Aug 09, 2019 12:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Call fonction in a general screen
Replies: 8
Views: 738

Re: Call fonction in a general screen

Hello guys I know it's been a while but I'am still strugguling with it. Is there anyone who can explain me how this synthax is supposed to be writted ? I've invented this fonction : def clear_container_found(): for item in container_found.items: Function(container_found.drop, item) who is called by ...
by sculpteur
Wed May 29, 2019 4:41 am
Forum: Ren'Py Questions and Announcements
Topic: Call fonction in a general screen
Replies: 8
Views: 738

Re: Call fonction in a general screen

Hello again, Thank you, but saddly my knowledge in python are limited. I've tried differents things but I'am still strugguling to make it work. For exemple, I've tried that but it's not working : on "show" action Function(clear_container_found) def clear_container_found(): for item in container_foun...
by sculpteur
Sun May 26, 2019 6:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Call fonction in a general screen
Replies: 8
Views: 738

Call fonction in a general screen

Hello ! Just a simple synthax question. I want to empty a container's items when a screen is show but i don't manage to find the right synthax. I know how to do this : screen lilalou: for item in container_trash.items: imagebutton: xpos 900 ypos 540 idle "GUI_inv_container_button_drop_simple" hover ...
by sculpteur
Wed Mar 27, 2019 10:57 pm
Forum: Ren'Py Questions and Announcements
Topic: Python Vs Renpy Condition_Check
Replies: 9
Views: 227

Re: Python Vs Renpy Condition_Check

Well, jumping to a separate label and going through an if/elif tree defeats a large part of the purpose of having items as objects anyway. So, I would try to figure out how to use items without doing that, but I don't know what kind of items you have or what kind of game you're designing, so it's h...
by sculpteur
Wed Mar 27, 2019 10:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Looping Image : Very simple question
Replies: 7
Views: 217

Re: Looping Image : Very simple question

But in fact I was trying to avoid a screen to make it the simpliest as possible.

So is there any other opinion on this matter ?

Juste in case someone come with an other idea.
by sculpteur
Wed Mar 27, 2019 10:28 pm
Forum: Ren'Py Questions and Announcements
Topic: Python Vs Renpy Condition_Check
Replies: 9
Views: 227

Re: Python Vs Renpy Condition_Check

In fact I have this action in my imagebutton : imagebutton: idle pic hover pic xpos x ypos y action blablabla alternate [Hide("gui_tooltip"), Play ("sound", "0 - sound_useitem.mp3"), Function(inventory.use, item)] And I'am wondering where and how should I check the condition for my items type.
by sculpteur
Wed Mar 27, 2019 10:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Python Vs Renpy Condition_Check
Replies: 9
Views: 227

Re: Python Vs Renpy Condition_Check

Of course. Of course but I was talking about this part sorry :
philat wrote:
Tue Mar 26, 2019 5:12 am
Well, I wouldn't do it that way.
by sculpteur
Wed Mar 27, 2019 10:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Python Vs Renpy Condition_Check
Replies: 9
Views: 227

Re: Python Vs Renpy Condition_Check

Could you be more specific please ?
by sculpteur
Mon Mar 25, 2019 5:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Python Vs Renpy Condition_Check
Replies: 9
Views: 227

Python Vs Renpy Condition_Check

Hellow, I'am working on this portion of python code : def use(self, item): if item.usable and item in self.items: self.items.remove(item) print("", "Item used!") else: print("", "Item can't be used!") WHAT I'M TRING TO DO (SHORT VERSION) : I just want to check a condition in this python code, BUT I ...
by sculpteur
Mon Mar 25, 2019 5:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Looping Image : Very simple question
Replies: 7
Views: 217

Re: Looping Image : Very simple question

Thank you! I will do this if I don't find any other more elegant solution.
by sculpteur
Mon Mar 25, 2019 7:14 am
Forum: Ren'Py Questions and Announcements
Topic: How to display long text?
Replies: 1
Views: 93

Re: How to display long text?

I'am not a specialist of window frame dimension management so I can't give you the solution you want.

But an alternative solution will be to modify the size of the text itself with this simple code :

Code: Select all

Character "{size=-15} Your text here {/size}" 
In this exemple it will be 15 % smaller.