Search found 78 matches

by irredeemable
Sat Feb 17, 2018 9:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Cutscene won't display
Replies: 5
Views: 1756

Re: Cutscene won't display

Code: Select all

play movie "movies/jc_phones_null_short.webm"
by irredeemable
Thu Feb 15, 2018 5:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Arithmetic Sequence Ignoring Last Step (Subtracting Non-Decimal Currency) [Solved]
Replies: 8
Views: 1116

Re: Arithmetic Sequence Ignoring Last Step (Subtracting Non-Decimal Currency) [Half-Solved]

I only intended to demonstrate how to do the conversion. At any rate, if you wanted to put it in a menu for some reason it's just as easy to set a variable equal to (pence / 240) as it is to set a variable equal to the value of some function. If you think you're going to be using those strings very ...
by irredeemable
Thu Feb 15, 2018 3:28 am
Forum: Ren'Py Questions and Announcements
Topic: Arithmetic Sequence Ignoring Last Step (Subtracting Non-Decimal Currency) [Solved]
Replies: 8
Views: 1116

Re: Arithmetic Sequence Ignoring Last Step (Subtracting Non-Decimal Currency)

Didn't check your code, but what you want to do in this situation is handle everything in the smallest denomination, internally. So all of your interactions with shops or whatever would be in terms of pence, then you'd convert when you needed to display. Conversion is simple enough: pounds = pence /...
by irredeemable
Thu Feb 15, 2018 2:08 am
Forum: Ren'Py Questions and Announcements
Topic: Where is _history_list defined? [SOLVED]
Replies: 3
Views: 1160

Re: Where is _history_list defined? [SOLVED]

No problem. Yeah it works for your version because you're not using a screen variable you're giving it a string. That generator expression (i for i in _history_list if i.who=="William Claybourne") won't work if you give it a screen variable ('who' in my example).
by irredeemable
Wed Feb 14, 2018 4:03 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to show updating text box
Replies: 3
Views: 736

Re: How to show updating text box

Well, it is documented that it shouldn't be used . You should create a screen using screen language and display the information that way. screen hud(): frame: text "Day [day]" label start: $ day = "Monday" show screen hud "This should stay on the screen." $ day = "...
by irredeemable
Wed Feb 14, 2018 1:11 am
Forum: Ren'Py Questions and Announcements
Topic: Where is _history_list defined? [SOLVED]
Replies: 3
Views: 1160

Re: Where is _history_list defined?

It's a store variable, so it's not defined anywhere you'll see in files renpy exposes to you. You can redefine it but that would likely entail making other changes to prevent anything from breaking. Anyway, it's just a list of HistoryEntry objects. You can accomplish what you're attempting by iterat...
by irredeemable
Tue Feb 13, 2018 10:06 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] imagebutton hover + hovered not showing anything.
Replies: 5
Views: 1403

Re: [SOLVED] imagebutton hover + hovered not showing anything.

You're welcome. for i in items is much more efficient than for i in range(len(items)). You could use the latter(though I can't imagine why you'd want to) but 'i' would be an integer equal to the index, not an item, so the code would change to idle items[i].picture etc. Just noticed the other questio...
by irredeemable
Tue Feb 13, 2018 8:26 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] imagebutton hover + hovered not showing anything.
Replies: 5
Views: 1403

Re: imagebutton hover + hovered not showing anything.

Couple of things: your buttons won't respond to hover events unless they have an action. If you don't want them to actually do anything when clicked use NullAction(). If your description screen did show it would crash as the variable 'i' is local to inventory_screen--you would need to change descrip...
by irredeemable
Tue Feb 13, 2018 7:57 pm
Forum: Ren'Py Questions and Announcements
Topic: How to add rotation to dialogue text?[SOLVED]
Replies: 3
Views: 800

Re: How to add rotation to dialogue text?

I happened to be testing something else with your code still in and realized that the text gets more deformed the longer it is--I had only tested with single words. I found a work-around for it, though, try adding:

Code: Select all

transform_anchor True yanchor 0
as the first line of your transform.
by irredeemable
Tue Feb 13, 2018 7:23 pm
Forum: Ren'Py Questions and Announcements
Topic: for loop and lists
Replies: 2
Views: 540

Re: for loop and lists

Code: Select all

action allies.append(i), Return("fight")
should be

Code: Select all

action AddToSet(allies, i), Return("fight")
by irredeemable
Tue Feb 13, 2018 7:07 pm
Forum: Ren'Py Questions and Announcements
Topic: How to add rotation to dialogue text?[SOLVED]
Replies: 3
Views: 800

Re: How to add rotation to dialogue text?

I just tried your code and it worked without issue. Did you maybe make some other changes to the say screen, accidental or otherwise?
by irredeemable
Mon Feb 12, 2018 7:53 pm
Forum: Ren'Py Questions and Announcements
Topic: choice button
Replies: 3
Views: 691

Re: choice button

Oh, if you mean changing the actual button then you'll have to change the choice screen in screens.rpy: screen choice(items): style_prefix "choice" vbox: for i in items: textbutton i.caption action i.action You'll have to pass the screen some kind of indication that you want to use a diffe...
by irredeemable
Mon Feb 12, 2018 7:11 pm
Forum: Ren'Py Questions and Announcements
Topic: choice button
Replies: 3
Views: 691

Re: choice button

Use the {color} tag.

Code: Select all

menu:
    "{color=#FF0000}Red,{/color} {color=#00FF00}Greeen{/color}, {color=#0000FF}Blue.{/color}":
        "Oooh, shiny."
by irredeemable
Mon Feb 12, 2018 7:01 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]s there a way to use transformations inside hbox?
Replies: 2
Views: 438

Re: Is there a way to use transformations inside hbox?

The hbox is conforming to the size of its contents and yalign is relative to the size of the immediate parent. There is no difference between yalign 0 and yalign 1 is the height of the hbox is equal to the height of the image. Your example would work if you used ypos rather than yalign and set the e...
by irredeemable
Mon Feb 12, 2018 6:41 pm
Forum: Ren'Py Questions and Announcements
Topic: I keep getting the expected menuitem error 6^9
Replies: 4
Views: 1111

Re: I keep getting the expected menuitem error 6^9

Check your indentation. You most likely have something like this: menu: "Choice 1": jump choice1 "Choice 2": jump choice2 jump getclosetocat Which should be: menu: "Choice 1": jump choice1 "Choice 2": jump choice2 jump getclosetocat