Search found 3094 matches

by Alex
Tue Oct 25, 2011 1:36 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to disable skipping all the images?
Replies: 5
Views: 869

Re: Is it possible to disable skipping all the images?

Code: Select all

$ renpy.pause()
will wait until player clicks.
by Alex
Tue Oct 25, 2011 1:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Okay, I give up - Undefined Side image?
Replies: 9
Views: 1299

Re: Okay, I give up - Undefined Side image?

So, for your "v"-character linked image tag is "van", but there is no side image associated with that tag (you should make smth like <image side van = "filename.png">)
http://www.renpy.org/doc/html/side_image.html

edit: oops, I'm sloooo...
by Alex
Sat Oct 22, 2011 4:59 pm
Forum: Ren'Py Questions and Announcements
Topic: These variables are being a pain in my <solved>
Replies: 3
Views: 632

Re: These variables are being a pain in my rear

The equal sign (=) is used for set the values, so your code means "set the '> 0' as value for love_points". Try

Code: Select all

if love_points >= 0:
by Alex
Sat Oct 22, 2011 4:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Music room, custom preferences, and more
Replies: 8
Views: 2550

Re: Music room, custom preferences, and more

Ooops...)) Strange, I thought your bars are horizontal ones... "Oh well, whatever, never mind". So, to make it looking good you can change all those "x"s to "y"s, and to solve the problem change a bit your code <vp = ui.viewport( yadjustment = xadj_1, draggable=True, mo...
by Alex
Fri Oct 21, 2011 12:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Music room, custom preferences, and more
Replies: 8
Views: 2550

Re: Music room, custom preferences, and more

Not sure, but try init python: def store_xvalue_1(x): # each function will store positions for one of your bars global xvalue_1 xvalue_1 = x def store_xvalue_2(x): global xvalue_2 xvalue_2 = x ... rest of your code label music_room: $ store.xvalue_1 = 0 # default position - left side of viewport $ s...
by Alex
Fri Oct 21, 2011 10:55 am
Forum: Ren'Py Questions and Announcements
Topic: How do I make my UI show up?
Replies: 3
Views: 1243

Re: How do I make my UI show up?

I'm not sure, but may be 'cause you didn't add "training_choose_opponent_menu_func" to the list of overlay functions. python: def training_choose_opponent_menu_func(): if training_choose_opponent_menu.shown: ui.layer("training_choose_opponent_menu") ... etc. else: ui.vbox(xalign ...
by Alex
Fri Oct 21, 2011 10:45 am
Forum: Ren'Py Questions and Announcements
Topic: Interpolation problem
Replies: 3
Views: 441

Re: Interpolation problem

i also tried out ui.text("%s's Vital Statistics: %d" % (name, blood)) this code which is on Renpy FAQ page but it only causes an error message like "a statement is missing" If this line is not a part of python block, it should be prefixed by $-sign to tell Ren'py that it is a si...
by Alex
Wed Oct 19, 2011 6:40 pm
Forum: Ren'Py Questions and Announcements
Topic: 【Solved】Using "if" inside "menu" [locked choices]
Replies: 2
Views: 544

Re: Using "if" inside "menu" [locked choices]

It should be

Code: Select all

    a "You have completed a Good End"
    $ persistent.true_end = True

    menu:
        "Run away":
            jump good_end

        "Fight for the heroine" if persistent.true_end:
            jump true_end
by Alex
Tue Oct 18, 2011 1:36 pm
Forum: Ren'Py Questions and Announcements
Topic: Transitions and sound effects in the middle of the text?
Replies: 5
Views: 2350

Re: Transitions and sound effects in the middle of the text?

With my knowledge I am only able to get that icon in the end of last sentence of the window before changing the page, but that is not enough for me. That's enought, actualy...)) define e = Character("eileen", ctc="arrow-thingy.png") Just replace the file name to predefined anima...
by Alex
Tue Oct 18, 2011 1:08 pm
Forum: Ren'Py Questions and Announcements
Topic: Strange ren'py crashes with the scrolling save/load?
Replies: 4
Views: 623

Re: Strange ren'py crashes with the scrolling save/load?

Error message refers to line 220, so what's in this line? (post a label (or a screen) that has line 220 in it)
by Alex
Sun Oct 16, 2011 1:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Turning a variable's points vs max points into a %? [solved]
Replies: 26
Views: 2213

Re: Turning a variable's points vs max points into a %?

but when I do the usual shift + r to reload the game and see a change I've made in text or whatever, instead of reloading it crashes and says "AttributeError: 'module' object has no attribute 'progress_tracker_3p'" Hm, I can't get the same problem with my code... (shift+r works for me). D...
by Alex
Sun Oct 16, 2011 1:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Turning a variable's points vs max points into a %? [solved]
Replies: 26
Views: 2213

Re: Turning a variable's points vs max points into a %? [sol

Will there be problems if I use the points the way they were before?
There will be no problems with numbers...)) The code, Anima gave you, do pretty much the same -
(1.0 * ...) gives a number with 1 digit after dot as result.
by Alex
Sun Oct 16, 2011 12:56 pm
Forum: Ren'Py Questions and Announcements
Topic: Turning a variable's points vs max points into a %? [solved]
Replies: 26
Views: 2213

Re: Turning a variable's points vs max points into a percent

However, the progress tracker gives a wrong value instead of the percentage it's supposed to be calculating, which has me puzzled since I don't see why that would happen. O_o It's claiming the combined percentage should be at 0% even though I fed it some values that should have it close to 30% inst...
by Alex
Sun Oct 16, 2011 3:27 am
Forum: Ren'Py Questions and Announcements
Topic: Turning a variable's points vs max points into a %? [solved]
Replies: 26
Views: 2213

Re: Turning a variable's points vs max points into a percent

The variables are in script.rpy while the code you gave me is in the separate file with the rest of my affection bars etc., but that shouldn't be a problem, right? (It's also separate from screens.rpy). ...shouldn't be... but it is... Ok, so you have your bars made as overlay functions and "pr...