Search found 697 matches

by gas
Sat May 30, 2020 7:58 am
Forum: Ren'Py Questions and Announcements
Topic: How to show both AnimatedValue AND the value that's changing?
Replies: 7
Views: 150

Re: How to show both AnimatedValue AND the value that's changing?

re: division by zero: use floats, not integers ( integer division in python 2.7 would result in 0 ). Mmmm.... no, floats can be prone to division by 0 errors too. It throw an error even by using floats in some circumstance (like passing from value 50 to value 100). It's how the core function comput...
by gas
Sat May 30, 2020 7:09 am
Forum: Ren'Py Questions and Announcements
Topic: Temporarily disable save function?
Replies: 1
Views: 38

Re: Temporarily disable save function?

Use a global variable at the start of the script, maybe called "can_save". default can_save = True Set it to False at the start of the battle and back to True at the end of combat. In the NAVIGATION screen, add a check to disable SAVE/LOAD screens. action [ShowMenu("save"), SensitiveIf(can_save)] Th...
by gas
Fri May 29, 2020 1:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Best way to exctract script for voice actors?
Replies: 1
Views: 37

Re: Best way to exctract script for voice actors?

The cheap way: Press "extract dialogues" in the launcher. Select the "tab" option and below mark to ignore text tags. The result will be a '.tab' file. You can open the file in Excel. Cancel all the columns but Character and Dialogue (right click on the column letter > erase) enlarge the DIALOGUE co...
by gas
Fri May 29, 2020 12:02 pm
Forum: Ren'Py Questions and Announcements
Topic: How to show both AnimatedValue AND the value that's changing?
Replies: 7
Views: 150

Re: How to show both AnimatedValue AND the value that's changing?

Is there a way to plug a function as an argument, say, for "delay", so that going from 90 to 100 doesn't take as long as going from 0 to 100? I assume I'd need to pickle the function, yet another thing I never fully understood. I can't quite test it right now, but I SUPPOSE you can use a formula......
by gas
Fri May 29, 2020 10:37 am
Forum: Ren'Py Questions and Announcements
Topic: Hidden Affection/Stat tracking
Replies: 4
Views: 126

Re: Hidden Affection/Stat tracking

Just in case I run into an affection tie, is there a way to bring up a menu with the girls who are tied? For example, if both Ann and the Chupacabra are both at 5 at the time the python code runs, a menu pops up allowing the player to choose between the two? It's a bit complex. Normally the winner ...
by gas
Fri May 29, 2020 9:48 am
Forum: Ren'Py Questions and Announcements
Topic: Random dialogue
Replies: 4
Views: 67

Re: Random dialogue

Another version, as this topic is fun XD.

Code: Select all

default lines = ["Try", "This", "Too"]

label start:
    $ renpy.random.shuffle(lines)
    $ the_line = lines[0]
    e "[the_line]!"
by gas
Fri May 29, 2020 9:20 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Exception: Required parameter message has no value.
Replies: 3
Views: 31

Re: Exception: Required parameter message has no value.

Code: Select all

    screen ev_notify():
        text "Evidence added" at ev_notify_transform
        timer 3.0 action Hide('evnotify')  # <- It's wrong, it should be ev_notify
Where did you get this code ;) ?
by gas
Fri May 29, 2020 6:55 am
Forum: Creator Discussion
Topic: [POLL!] What tutorial for this forum?
Replies: 3
Views: 53

[POLL!] What tutorial for this forum?

I feel the need of writing a long tutorial , where I'll try to come with something big starting from scratch. Something that will occupy a number of weeks and could probably lead to PDF documents and contributes. I had a number of ideas, so what do you think is the best one? I WANNA READ TUTORIAL......
by gas
Wed May 27, 2020 8:33 pm
Forum: Ren'Py Questions and Announcements
Topic: How to show both AnimatedValue AND the value that's changing?
Replies: 7
Views: 150

Re: How to show both AnimatedValue AND the value that's changing?

I like humble people that try to make an RPG before reading the docs XD. They dare face the unknown for passion. ...anyway there wasn't a single correct line. screen tryme(): bar: value AnimatedValue(value=health, range=100, delay=2.0) # range 100 <<< No need for it in that case, you stated the rang...
by gas
Wed May 27, 2020 7:16 pm
Forum: Ren'Py Questions and Announcements
Topic: Input name leads to error logs
Replies: 5
Views: 110

Re: Input name leads to error logs

If you're new to coding the explanation will be out of your reach.

How can you code a function that way without coding skills? That's not a code of your, supposedly :wink: .
Anyway, had you first checked if there's actually a screen called "name_input" somehwere? And if so, where it is?
by gas
Wed May 27, 2020 12:34 pm
Forum: Ren'Py Questions and Announcements
Topic: Don't want to loop music on the title screen
Replies: 2
Views: 75

Re: Don't want to loop music on the title screen

Instead of using that variable, add this at the beginning of your script.

Code: Select all

label before_main_menu:
    play music "TITLE.MUSIC" noloop
    return
by gas
Wed May 27, 2020 12:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Input name leads to error logs
Replies: 5
Views: 110

Re: Input name leads to error logs

But there's any screen called "name_input" somewhere? At what init step?

(I'm not also sure that's so safe to exit from the 'start'[!?] context with a called function...)

The whole thing can be simply staged at the very beginning of the start label...
by gas
Wed May 27, 2020 6:48 am
Forum: Ren'Py Questions and Announcements
Topic: Position choice boxes based on order in a spaced circle
Replies: 5
Views: 96

Re: Position choice boxes based on order in a spaced circle

Try to solve the issue by setting a fixed size for buttons. textbutton i.caption action i.action xanchor 0.5 yanchor 0.5 xpos int(x) ypos int(y) xsize 150 text_align 0.5 The xsize property set a fixed size for all buttons. Change it to your needs. As for longer texts, there's no way to solve the iss...
by gas
Tue May 26, 2020 8:28 pm
Forum: Ren'Py Questions and Announcements
Topic: Position choice boxes based on order in a spaced circle
Replies: 5
Views: 96

Re: Position choice boxes based on order in a spaced circle

Step 1: You should know in advance what buttons to show. So the best thing to do is to have a list or something like that. So, for example, computing the active locations or the available commands and put them in a list. Step 2: This one show your list of buttons automatically arranged as a circle, ...