Search found 14 matches

by KingsCard
Fri Dec 14, 2018 7:18 am
Forum: Ren'Py Questions and Announcements
Topic: [Screen language] Set an argument in used screen to call a class
Replies: 2
Views: 388

Re: [Screen language] Set an argument in used screen to call a class

Remix wrote: Fri Dec 14, 2018 6:51 am SetScreenVariable("param", c_datas) # value is a global object so no quotes
Hi Remix, this did the job ! Thank you very much :)
by KingsCard
Fri Dec 14, 2018 6:01 am
Forum: Ren'Py Questions and Announcements
Topic: [Screen language] Set an argument in used screen to call a class
Replies: 2
Views: 388

[Screen language] Set an argument in used screen to call a class

Hi, I'm trying to customize a screen depending on an argument : screen characters: #parent screen default param = None frame: xpos c_datas.cur_loc_x ypos c_datas.cur_loc_y textbutton "Camille" action SetScreenVariable("param","c_datas") frame: xpos d_datas.cur_loc_x ypo...
by KingsCard
Tue Dec 04, 2018 12:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Help with class and functions (Dict, List, random)
Replies: 0
Views: 213

Help with class and functions (Dict, List, random)

Hi, I'm hitting a wall since forever now and it starts to get on my nerves :p. I'm a beginner in the art of coding, so I picked things here and there, but my results are ... slim to say the least. So, let's say I have 24 hours and I can eat one fruit every hour, randomly picked in a list divided per...
by KingsCard
Tue Dec 04, 2018 3:47 am
Forum: Ren'Py Questions and Announcements
Topic: "Greyed-out" menu choice
Replies: 6
Views: 640

Re: "Greyed-out" menu choice

Shouldn't it be a new feature of version 7.1.3 ? :
Choice menus can now display as insensitive buttons items selected by the if clause.
Didn't tried it yet though.
by KingsCard
Sun Nov 25, 2018 3:47 am
Forum: Ren'Py Questions and Announcements
Topic: Randomized character location based on odds?
Replies: 4
Views: 693

Re: Randomized character location based on odds?

Hi, can someone help me with this dict ? I tried to understand by my own but I'm in a dead end.

Ideally, I just need a way to add or modify a key and its value to a certain period of time.
by KingsCard
Tue Nov 20, 2018 8:54 am
Forum: Ren'Py Questions and Announcements
Topic: Randomized character location based on odds?
Replies: 4
Views: 693

Re: Randomized character location based on odds?

Hello Ocelot, Thank you for your code, it's working well ! I was wondering if it could be customized in game with variables. Like if an event occur, you can't go to work anymore. So it would be convenient to be able to change the character schedule, change the odds or add a location. Do you think it...
by KingsCard
Wed Aug 29, 2018 3:24 am
Forum: Ren'Py Cookbook
Topic: Layered Parallax Code
Replies: 21
Views: 18629

Re: Layered Parallax Code

Worked like a charm, thank you very much :)
by KingsCard
Fri Aug 24, 2018 2:14 pm
Forum: Ren'Py Questions and Announcements
Topic: layeredimage with conditions inside
Replies: 3
Views: 884

Re: layeredimage with conditions inside

Trooper, you're the man and I thank you ! :)
by KingsCard
Fri Aug 24, 2018 11:53 am
Forum: Ren'Py Questions and Announcements
Topic: layeredimage with conditions inside
Replies: 3
Views: 884

Re: layeredimage with conditions inside

Hi,

It may not be a layeredimage solution ... I ould be happy anyway :p !
by KingsCard
Thu Aug 23, 2018 11:12 am
Forum: Ren'Py Questions and Announcements
Topic: layeredimage with conditions inside
Replies: 3
Views: 884

layeredimage with conditions inside

Hi, I’m a little lost with the new layeredimage function. I tried to follow the tutorials but I can’t obtain what I need : - Every images are complete (outfit, emotion, pose) - girl_green_happy.png - girl_green_unhappy.png - girl_pink_happy.png - girl_pink_unhappy.png - The outfit has to be a variab...
by KingsCard
Tue May 15, 2018 5:58 am
Forum: Ren'Py Questions and Announcements
Topic: Vbox Images and Array Variables
Replies: 17
Views: 4533

Re: Vbox Images and Array Variables

Remix wrote: Fri May 04, 2018 8:56 am [...]
Thank you Remix ! This code is fantastic ! :)
by KingsCard
Wed Apr 25, 2018 3:59 am
Forum: Ren'Py Questions and Announcements
Topic: Issue with if/elif/else statements (Expected statement error) // SOLVED
Replies: 3
Views: 822

Re: Issue with if/elif/else statements

Watch your indentation, you have a label at the same level as a if statement. Also, a conditionnal menu should be written like that and finaly you have to be careful about strings and numbers. default num = 0 default state = True default string = "ok" label start: if state: menu: "I c...
by KingsCard
Wed Apr 25, 2018 2:26 am
Forum: Ren'Py Questions and Announcements
Topic: Making a screen button conditional on a variable
Replies: 3
Views: 1533

Re: Making a screen button conditional on a variable

Code: Select all

label start:
    $ a = False
    show screen nonhousescreen
    "hello"
    $ a = True
    "Where did you go ?!"

screen nonhousescreen:
    if a:
        textbutton "Hi" action NullAction
by KingsCard
Fri Apr 20, 2018 3:49 am
Forum: Ren'Py Cookbook
Topic: Play events by day (quick mode)
Replies: 3
Views: 3429

Re: Play events by day (quick mode)

Thank you !