Search found 564 matches

by hell_oh_world
Wed Dec 02, 2020 12:59 am
Forum: Ren'Py Questions and Announcements
Topic: How to customise the appearance of tooltips?
Replies: 3
Views: 53

Re: How to customise the appearance of tooltips?

you can directly override the background of the frame in the frame itself.

Code: Select all

    $ tt = GetTooltip()
    if tt:
        frame:
            background "whatever_bg.png" # your background
            xalign 0.5 yalign 0.0
            text tt
by hell_oh_world
Wed Dec 02, 2020 12:45 am
Forum: Ren'Py Questions and Announcements
Topic: Stat rankings
Replies: 6
Views: 92

Re: Stat rankings

Gas missed some part in the code. $ paired = [i for i,j in stats.items() if j == highest] should be... $ paired = [i for i,j in stats.items() if j == stats[highest]] and like i said, you better off naming your label with some pattern so you can just avoid all of these conditions. label start: # your...
by hell_oh_world
Tue Dec 01, 2020 8:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Lowering BGM volume when characters talk
Replies: 2
Views: 16

Re: Lowering BGM volume when characters talk

it says, that you can't use the define statement with preferences store.
If you'll look at this example: https://www.renpy.org/doc/html/preferen ... -variables
preference variable uses default statement instead.
by hell_oh_world
Tue Dec 01, 2020 6:51 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make a master volume slider?
Replies: 3
Views: 50

Re: How to make a master volume slider?

Okay, sorry, I realized that my answer is entirely wrong. Guess I should not answer questions first thing in the morning. Anyways, this one is working. default persistent.master_volume = 0.0 init python: def MasterVolumeValue(): return FieldValue(persistent, "master_volume", 1.0, action=Function(_ch...
by hell_oh_world
Tue Dec 01, 2020 6:12 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make a master volume slider?
Replies: 3
Views: 50

Re: How to make a master volume slider?

I guess you just combine the other channels.

Code: Select all

bar:
  action [Preference("music volume"), Preference("sound volume"), Preference("voice volume")]
by hell_oh_world
Tue Dec 01, 2020 1:53 am
Forum: Ren'Py Questions and Announcements
Topic: Stat rankings
Replies: 6
Views: 92

Re: Stat rankings

u can use the max function then probably a dictionary to store the stats and create a known pattern in your label name so you can jump on them easily. default stats = dict( strength=3, stamina=5, # and more... ) label start: $ stats["strength"] += 3 # this is how you access the stat, as a string ind...
by hell_oh_world
Sun Nov 29, 2020 9:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to rotate image button
Replies: 3
Views: 72

Re: Is it possible to rotate image button

Code: Select all

screen something():
  # using anonymous atl
  button:
    at transform:
      rotate 90.0
  
  # using pre-defined transform    
  button:
    at rotated
  
  # using transform screen statement  
  transform:
    rotate 90.0
    
    button:
      pass

transform rotated():
  rotate 90.0
by hell_oh_world
Sun Nov 29, 2020 6:27 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved!][Name Error Help] "Undefined" names
Replies: 2
Views: 66

Re: [Name Error Help] "Undefined" names

Generally, what you want is to declare the variable beforehand, and not to declare it when a specific label or point in your game is reached. The latter is prone to issues because if ever that point is not reached that would result in the variable not being declared, hence not being recognized. So, ...
by hell_oh_world
Sat Nov 28, 2020 5:06 pm
Forum: Ren'Py Questions and Announcements
Topic: Unicode Error in For Loop (solved)
Replies: 2
Views: 64

Re: Unicode Error in For Loop

When you do. for npc in npc_dict: You're actually looping on the keys of the dict and not on your npc objects. It's also the same as... for npc in npc_dict.keys(): # loop through the keys. Just use the .values() method of the npc dict for npc in npc_dict.values(): # loop through the values which in ...
by hell_oh_world
Fri Nov 27, 2020 10:35 pm
Forum: Ren'Py Questions and Announcements
Topic: Creating hentai and gore menus
Replies: 1
Views: 125

Re: Creating hentai and gore menus

I guess you should at least learn more about the very basics of python, like how to compose a simple condition statement, things like that. Because the syntax is wrong in many ways. Some of your indentations are wrong, and the way conditions were built is also wrong. So learning some basics first ab...
by hell_oh_world
Thu Nov 26, 2020 12:18 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Create Function To Darken Non-Speaking Characters
Replies: 5
Views: 159

Re: Create Function To Darken Non-Speaking Characters

Well, the function call for the image name only happens once, during the init. image faith = image_darken('faith', 'faith', -0.5) so this line is actually static and not dynamic. use DynamicDisplayable, then add additional arguments to the function. init python: def image_darken(st, at, character, c...
by hell_oh_world
Wed Nov 25, 2020 9:30 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved!] Adding multiple actions to a single (text)button?
Replies: 2
Views: 113

Re: [Question] Adding multiple actions to a single (text)button?

Just pass the actions as a list/tuple when specifying them.

Code: Select all

action [Action1(), Action2()] # (Action1(), Action2()) both would work
An action may also be a list of actions, in which case the actions in the list are run in order.
https://www.renpy.org/doc/html/screen_a ... ml#actions
by hell_oh_world
Wed Nov 25, 2020 8:38 pm
Forum: Ren'Py Questions and Announcements
Topic: How Do I Make a Project Appear Full-screen After Launching It In Ren'Py?
Replies: 2
Views: 104

Re: How Do I Make a Project Appear Full-screen After Launching It In Ren'Py?

Shouldn't you be setting this preference setting? I cant seem to find that config variable in the docs.
https://www.renpy.org/doc/html/preferen ... fullscreen

Code: Select all

default preferences.fullscreen = True
by hell_oh_world
Wed Nov 25, 2020 3:31 pm
Forum: Ren'Py Questions and Announcements
Topic: UDD and the animation.
Replies: 4
Views: 174

Re: UDD and the animation.

Not really fully an expert at CDD but you can try this. init python: class Mark(renpy.Displayable): def __init__(self, d, duration=3.0, range=(0.25, 0.75)): renpy.Displayable.__init__(self) self.d = renpy.displayable(d) self.st = 0 # the current time self.dir = 1 # the direction of the slide 1 is ri...
by hell_oh_world
Wed Nov 25, 2020 3:08 pm
Forum: Ren'Py Questions and Announcements
Topic: renpy.return from screen
Replies: 9
Views: 153

Re: renpy.return from screen

If the function in the Function action returns value other than None, then it will end the interaction and return that value. init python: def myReturn(): return True # return any value other than None to end the interaction. screen test(): texbutton "Return" action Function(myReturn) label start: c...