Problem with Choice Screen Text [SOLVED]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
mitoky
Veteran
Posts: 316
Joined: Sat Feb 07, 2015 9:12 pm
Projects: The Purring Demon's Love, circus eterie
Contact:

Problem with Choice Screen Text [SOLVED]

#1 Post by mitoky »

Hello!

I keep getting the error "can't mutiply sequences by non-int of type 'float' ". The problem seems to be the text in the choice screen. When i remove the style, it works but once i add a style to it, be it directly or per style prefix to the screen, i get the error.

I tested this before in another file and there it worked just fine, in both cases nothng had been changed aside of in the screen directly.

The code:

Code: Select all

## Choice Screen
screen choice(items):

    vbox:
        xalign 0.5
        yanchor 0.5
        ypos 400
        spacing 20

        for i in items:
            button:
                idle_background "gui/choice/choice_idle.png"
                hover_background "choice_hover"
                xysize (1280, 54)
                text i.caption style "choice_button_text" xalign 0.5 yalign 0.5 
                action i.action

## When this is true, menu captions will be spoken by the narrator. When false,
## menu captions will be displayed as empty buttons.
define config.narrator_menu = True

## Choice Style
style choice_button_text:
    font "fonts/DoppioOne-Regular.ttf"
    size "20"
    idle_color "#ffb378"
    hover_color "#ff9b4f"
Aside of that one style, there is no others.
Last edited by mitoky on Mon Jul 30, 2018 7:40 am, edited 1 time in total.

User avatar
MaydohMaydoh
Regular
Posts: 165
Joined: Mon Jul 09, 2018 5:49 am
Projects: Fuwa Fuwa Panic
Tumblr: maydohmaydoh
Location: The Satellite of Love
Contact:

Re: Problem with Choice Screen Text

#2 Post by MaydohMaydoh »

For the style font size it should be size 20 not size "20"

User avatar
mitoky
Veteran
Posts: 316
Joined: Sat Feb 07, 2015 9:12 pm
Projects: The Purring Demon's Love, circus eterie
Contact:

Re: Problem with Choice Screen Text

#3 Post by mitoky »

MaydohMaydoh wrote: Mon Jul 30, 2018 7:20 am For the style font size it should be size 20 not size "20"
Ah, you are right! o//o

Thank you so much!

Post Reply

Who is online

Users browsing this forum: No registered users