Search found 479 matches

by apricotorange
Fri Jun 21, 2013 12:36 am
Forum: Ren'Py Questions and Announcements
Topic: Inventories... again [solved]
Replies: 15
Views: 1842

Re: Inventories... again

You can't use variables defined inside a screen in an "action" clause.
by apricotorange
Wed Jun 19, 2013 12:23 am
Forum: Ren'Py Questions and Announcements
Topic: Analogue Clock Class [Solved]
Replies: 8
Views: 2079

Re: Analogue Clock Class

A UDD which acts almost completely unlike a clock, but should answer your questions: init python: class Clock(renpy.Displayable): def __init__(self, **kwargs): # Pass additional properties on to the renpy.Displayable # constructor. super( Clock, self).__init__(**kwargs) # The second hand. self.secon...
by apricotorange
Wed Jun 19, 2013 12:07 am
Forum: Ren'Py Questions and Announcements
Topic: Defining Custom Names?
Replies: 15
Views: 2177

Re: Defining Custom Names?

Err, oops, that's what I get for not working with a clean project. You'll also need to replace "screen input" in screens.rpy with the following: screen input: window style "input_window": has vbox text prompt style "input_prompt" input id "input" style "i...
by apricotorange
Wed Jun 19, 2013 12:04 am
Forum: Ren'Py Questions and Announcements
Topic: Quick question about point-based systems (SOLVED)
Replies: 11
Views: 1898

Re: Quick question about point-based systems

Something like this? $ stat_list = [stat1_points, stat2_points, stat3_points, ...] jump expression ("disscussstat" + "and".join([str(y+1) for (x,y) in sorted(zip([-x for x in stat_list], range(10)))[:2]])) Granted, it probably wasn't a good idea to write that in one line, but it ...
by apricotorange
Tue Jun 18, 2013 12:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Altering UI elements at Runtime [SOLVED]
Replies: 12
Views: 3860

Re: Altering UI elements at Runtime [SOLVED]

Ah, yes, that's the right solution.
by apricotorange
Tue Jun 18, 2013 12:47 pm
Forum: Ren'Py Questions and Announcements
Topic: Multiple frames? Boxes? Screens? and managing [SOLVED]
Replies: 8
Views: 10649

Re: Multiple frames? Boxes? Screens? and managing [SOLVED]

Basically, yes. I mean, you could do something more elaborate by defining your own "menu" function, but I don't see the point.
by apricotorange
Tue Jun 18, 2013 2:15 am
Forum: Ren'Py Questions and Announcements
Topic: Altering UI elements at Runtime [SOLVED]
Replies: 12
Views: 3860

Re: Altering UI elements at Runtime (Declaring Instances?)

I'm pretty sure you want to check "if event == 'show' or event == 'begin' or event == 'show_done':" or something like that.
by apricotorange
Tue Jun 18, 2013 2:08 am
Forum: Ren'Py Questions and Announcements
Topic: Menu viewport style?
Replies: 1
Views: 904

Re: Menu viewport style?

Sure; you can hack up "screen choice" in screens.rpy in your project to do basically anything you want. viewport documentation: http://www.renpy.org/doc/html/screens.html#viewport . (If you need help finding more information, please ask.)
by apricotorange
Tue Jun 18, 2013 1:54 am
Forum: Ren'Py Questions and Announcements
Topic: Defining Custom Names?
Replies: 15
Views: 2177

Re: Defining Custom Names?

Add something like following to your options.rpy:

Code: Select all

    style.input_prompt.outlines = [(1, "#F00", 0, 0)]
by apricotorange
Tue Jun 18, 2013 1:48 am
Forum: Ren'Py Questions and Announcements
Topic: Multiple frames? Boxes? Screens? and managing [SOLVED]
Replies: 8
Views: 10649

Re: Multiple frames? Boxes? Screens? and managing interactio

The slightly more complicated interrupt/continue buttons: textbutton "Interrupt" action If(not is_finished, [SetVariable("interrupts", interrupts + 1), Return("smth")]) textbutton "Continue" action If(is_finished, Return("smth")) For the menu, you ca...
by apricotorange
Mon Jun 17, 2013 1:01 am
Forum: Ren'Py Questions and Announcements
Topic: Multiple frames? Boxes? Screens? and managing [SOLVED]
Replies: 8
Views: 10649

Re: Multiple frames? Boxes? Screens? and managing interactio

Characters have a "callback" argument that you can use to do something fancy when the text finishes displaying; see http://www.renpy.org/wiki/renpy/chs/doc/reference/functions/characterchs for some basic documentation. To make your interrupt button: textbutton "Interrupt" action ...
by apricotorange
Mon Jun 17, 2013 12:51 am
Forum: Ren'Py Questions and Announcements
Topic: .rpyc files and obfuscation
Replies: 8
Views: 3563

Re: .rpyc files and obfuscation

IIRC, if you have the .rpyc files, you shouldn't need the .rpy files to run the game. Not sure why that isn't working for you. See http://www.renpy.org/doc/html/build.html#archives for the most common way used to protect the files in Ren'Py games. That said, nothing is going to stop someone who is s...
by apricotorange
Mon Jun 17, 2013 12:31 am
Forum: Ren'Py Questions and Announcements
Topic: How to add Spanish symbols in the script?
Replies: 3
Views: 684

Re: How to add Spanish symbols in the script?

What fonts are you using? It's possible one of the fonts doesn't contain the "¿" symbol.
by apricotorange
Sun Jun 16, 2013 6:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Replacing choice buttons with images [Solved]
Replies: 3
Views: 483

Re: Replacing choice buttons with images

Stapper wrote:Extra info: I'm using a large scrolling map as background, so can't use an image map.
I don't see the connection; imagemaps can be transparent.

Anyway, you can use screen language to build something more complicated than an imagemap; see http://www.renpy.org/doc/html/screens.html#call-screen .