Search found 30 matches

by DoubleProlix
Tue Aug 28, 2018 12:46 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable Scope Issue
Replies: 2
Views: 174

Variable Scope Issue

I've got a function that determines the ratio between two values: def ratio(x, y): rat = round(x/(x+y),1) Most of the time this works fine. However, when using it with variables belonging to an npc object to get the ratio of "good" interactions with the player vs "bad", it always returns 0. I think ...
by DoubleProlix
Sat Jun 30, 2018 7:44 pm
Forum: Works in Progress
Topic: Paragon [ANYxANY][Superhero][Adult] v0.1.1
Replies: 2
Views: 556

Re: Paragon [ANYxANY][Superhero][Adult] v0.1.1

I noticed this work-in-progress. Two things got my attention... * Distinct art. That can help you find (or possibly create) an audience for your story. * External conflict. I've always enjoyed stories in which characters are fighting tangible threats (rivals, enemies, nature...). * Play a male or f...
by DoubleProlix
Thu Jun 28, 2018 4:38 pm
Forum: Works in Progress
Topic: Paragon [ANYxANY][Superhero][Adult] v0.1.1
Replies: 2
Views: 556

Paragon [ANYxANY][Superhero][Adult] v0.1.1

https://i.imgur.com/qztk3Nw.png Synopsis: The world has changed, and you've changed with it. You're bigger. Stronger. Nearly seven feet of muscle and sinew with a body that bodybuilders would die for. Only you don't remember how you got it - or anything else from the past two weeks. Finding yoursel...
by DoubleProlix
Sat Jun 23, 2018 7:38 pm
Forum: Ren'Py Questions and Announcements
Topic: Math on a screen [Solved]
Replies: 3
Views: 186

Re: Math on a screen

Right, that works, thanks.
by DoubleProlix
Sat Jun 23, 2018 6:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Math on a screen [Solved]
Replies: 3
Views: 186

Math on a screen [Solved]

I'm setting up a HUD, and I want it to display the ratio of two variables: text "Ratio: [x]" works fine to display the value of var1. However, if I try to display the ratio of x to y: text "Ratio: [x / (x + y)]" it treats the equation like a name and throws an exception. I don't need the screen to c...
by DoubleProlix
Tue Jun 12, 2018 11:35 am
Forum: Ren'Py Questions and Announcements
Topic: Defining and defaulting variables? [SOLVED]
Replies: 2
Views: 287

Defining and defaulting variables? [SOLVED]

I'm trying to get my head around the best way to initiate variables for use. Say I've got an NPC class: init -1: python: class NPC(object): def __init__(self, name): self.name = name self.alive = True self.hasMet = False self.relationship = 1 self.isFollowing = False and I've got a few NPCs: default...
by DoubleProlix
Mon May 21, 2018 4:29 pm
Forum: Creator Discussion
Topic: Survey: Preferred Sprite Style
Replies: 7
Views: 853

Survey: Preferred Sprite Style

I'm talking proportion here - not resolution, just the design of the character sprites shown to the player. Thigh to top of the head, occupying 2/3 of screen height? Waist up? Just head and shoulders, above or attached to the text box? Let me know what you think, what you prefer in general, and reas...
by DoubleProlix
Fri May 11, 2018 5:04 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Adding text input to character creation screen
Replies: 11
Views: 509

Re: Adding text input to character creation screen

Nevermind, I got it to work with textbutton firstname xfill True action(SetScreenVariable("input_name", "fn"))

Thanks for all your help!
by DoubleProlix
Fri May 11, 2018 4:36 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Adding text input to character creation screen
Replies: 11
Views: 509

Re: Adding text input to character creation screen

Well, here's what I have: hbox: box_wrap True null width 515 vbox: label "First Name:" frame: xsize 300 if input_name == "fn": input value VariableInputValue("firstname") else: textbutton firstname action(SetScreenVariable("input_name", "fn")) label "Surname:" frame: xsize 300 if input_name == "sn":...
by DoubleProlix
Thu May 10, 2018 10:38 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Adding text input to character creation screen
Replies: 11
Views: 509

Re: Adding text input to character creation screen

Something like "Padding = (frame's width) - (my width)" would work. The frame's width is a known quantity, but how do I get the button's current width?
by DoubleProlix
Wed May 09, 2018 7:26 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Adding text input to character creation screen
Replies: 11
Views: 509

Re: Adding text input to character creation screen

I dig it! Don't suppose there's a way to tweak it so that the player can click on anywhere in the frame and not just the text itself? https://i.imgur.com/sA5pSPd.png As is, if I click on the frame to the right of "Hiro" or "Protagonist" (default name), nothing happens... I have to click on the text ...
by DoubleProlix
Wed May 09, 2018 4:51 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Adding text input to character creation screen
Replies: 11
Views: 509

Re: Adding text input to character creation screen

Okay, I like this so far:

Image

But while I can enter text in the top "First Name" field, I can't seem to switch over to the second input. Clicking on the box does nothing, tab won't do it, etc.
by DoubleProlix
Wed May 09, 2018 3:12 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Adding text input to character creation screen
Replies: 11
Views: 509

[SOLVED] Adding text input to character creation screen

So far my intro asks the player for their first and last name, and then calls the character creation screen where they select other options. What I'd like to do is simplify things so that the character creation screen is a one-stop shop for all this info. Current code: vbox: #label "Character Select...
by DoubleProlix
Mon Nov 27, 2017 6:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable Scope
Replies: 2
Views: 188

Re: Variable Scope

Ah, works, tahnks.