Search found 32 matches

by Pomeranian
Sat Nov 19, 2016 9:50 pm
Forum: Ren'Py Questions and Announcements
Topic: Question on making defined party members to act as (group)
Replies: 4
Views: 507

Re: Question on making defined party members to act as (grou

Wouldn't it be easier to just use the Player class itself? They're already 'grouped' by that. I'd create new methods under the Player class, like if I wanted to make a damage-taking method in a battle (for example) def damage(self, dmg): self.current_hp = self.hp - dmg if self.current_hp == 0: renpy...
by Pomeranian
Sat Nov 19, 2016 2:00 pm
Forum: Ren'Py Questions and Announcements
Topic: [RESOLVED] how to display the sum of 2 variables
Replies: 8
Views: 3260

Re: Trying to figure out how to display the sum of 2 variabl

1. Thanks. I was using the code that I did due to it being from the quickstart renpy framework but it's probably quite out of date. 2. Yes, it's inside the Item class. Inventory is its own class, and hptotal would be a variable related to the Player class I believe? I'm not entirely sure how I would...
by Pomeranian
Sat Nov 19, 2016 10:49 am
Forum: Ren'Py Questions and Announcements
Topic: [RESOLVED] how to display the sum of 2 variables
Replies: 8
Views: 3260

Re: Trying to figure out how to display the sum of 2 variabl

I believe I've managed to narrow down the issue. What I want to do, essentially, is to display the sum of 2 variables as a single variable. so something like: hptotal = player.hp + player.extra_hp hptotal would be the sum of two stored variables in the player class. What is the correct way to go abo...
by Pomeranian
Thu Nov 17, 2016 5:12 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I add into my code selectable items from inventory?
Replies: 5
Views: 1023

Re: How can I add into my code selectable items from invento

I'd use python functions to do what you're trying to accomplish, personally. Using Leon's Inventory Screens as a base: init -1 python: class Player(renpy.store.object): def __init__(self, name, equip=None): self.name=name self.equip=equip class Item(store.object): def __init__(self, name, cost=0, wt...
by Pomeranian
Tue Nov 15, 2016 9:48 pm
Forum: Ren'Py Questions and Announcements
Topic: [RESOLVED] how to display the sum of 2 variables
Replies: 8
Views: 3260

Re: Issues with variable not updating in equip with stat cha

Alex wrote:Try to add
renpy.restart_interaction()
as the last line of "use" function.
Tried this, but no changes. hptotal is still showing 50hp whether equipped with the summer dress or winter dress.
by Pomeranian
Mon Nov 14, 2016 11:35 pm
Forum: Ren'Py Questions and Announcements
Topic: [RESOLVED] how to display the sum of 2 variables
Replies: 8
Views: 3260

[RESOLVED] how to display the sum of 2 variables

EDIT: Please see the latest post for more information I'm trying to make equipable items with stat changes, but I want the stats to be affected by whatever clothes the player is wearing, so for instance HP+20 while wearing winter clothes, or MP+50 while wearing a magician's robe, but those stats are...
by Pomeranian
Fri Oct 28, 2016 2:44 pm
Forum: Ren'Py Questions and Announcements
Topic: Text goes over the frame/Right padding won't change
Replies: 4
Views: 731

Re: Text goes over the frame/Right padding won't change

Try adding something like:

style.talkwindow2.xmaximum = 300

That would control the maximum length of the text box.
by Pomeranian
Thu Oct 20, 2016 10:24 am
Forum: Ren'Py Questions and Announcements
Topic: Confirmation for Inventory Purchases [SOLVED]
Replies: 7
Views: 1951

Re: Confirmation for Inventory Purchases and Textbutton Synt

It works!! Thank you so much for your all your help! This topic is solved now.
by Pomeranian
Thu Oct 20, 2016 5:16 am
Forum: Ren'Py Questions and Announcements
Topic: Confirmation for Inventory Purchases [SOLVED]
Replies: 7
Views: 1951

Re: Confirmation for Inventory Purchases and Textbutton Synt

I tried this and got the following error: I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 184, in script $renpy.pause() File "game/script.rpy", line 184, in <module> $renpy.pause() File "renpy/common/00action_other.rpy", line 463, in __call__ rv =...
by Pomeranian
Wed Oct 19, 2016 8:07 pm
Forum: Ren'Py Questions and Announcements
Topic: Confirmation for Inventory Purchases [SOLVED]
Replies: 7
Views: 1951

Re: Confirmation for Inventory Purchases and Textbutton Synt

I tried it with the following and a few other varitions, but I'm probably going about this all wrong. textbutton "Book" action [Jump("buy_book"), Confirm("Do you wish to buy this item?", yes, no=None, confirm_selected=False)] Edit: Also tried the following code which skips the text and automatically...
by Pomeranian
Wed Oct 19, 2016 7:04 pm
Forum: Ren'Py Cookbook
Topic: Inventory Screen
Replies: 100
Views: 87611

Re: Inventory Screen

EDIT: I asked a question here but I figured it out :D Great code, btw.
by Pomeranian
Wed Oct 19, 2016 5:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Confirmation for Inventory Purchases [SOLVED]
Replies: 7
Views: 1951

Re: Confirmation for Inventory Purchases and Textbutton Synt

In attempting to make a confirmation on clicking the item to buy it, I got this error: I'm sorry, but an uncaught exception occurred. While running game code: File "game/home.rpy", line 464, in script "Are you sure you wish to buy this item?" File "game/screens.rpy", line 470, in execute screen yesn...
by Pomeranian
Tue Oct 18, 2016 10:22 am
Forum: General Discussion
Topic: Do people even like Yuri/Yaoi when Otome and BxG are around?
Replies: 21
Views: 3747

Re: Do people even like Yuri/Yaoi when Otome and BxG are aro

wrt yaoi being split into two categories, there have been some efforts to bridge the gap and attract a wider audience. Off the top of my head, Ore no Shita de Agake and No, Thank You!! come to mind due to the wide range of body types available, and in the latter, the ability to choose level of body ...
by Pomeranian
Mon Oct 17, 2016 4:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Confirmation for Inventory Purchases [SOLVED]
Replies: 7
Views: 1951

Confirmation for Inventory Purchases [SOLVED]

I recently decided to implement a shop system in my game, expanding on the item + inventory system examples from both saguaro and leon. class Inventory(store.object): def __init__(self, money=500): self.money = money self.items = [] def add(self, item): self.items.append(item) def drop(self, item): ...
by Pomeranian
Mon Oct 17, 2016 9:47 am
Forum: Works in Progress
Topic: Coterie ™ [VN-RPG, Fantasy, Adventure][GxB, GxG, BxG, BxB]
Replies: 25
Views: 8389

Re: Coterie ™ [VN-RPG, Fantasy, Adventure][GxB, GxG, BxG, Bx

I agree with Milana that having an equal number of romances makes sense - And as a gay dude, Kota is more of my type compared to Baylee, so making him bisexual would be nice. (Kota and Ren are the most attractive guys imho.) ► ► Does the story seem interesting? Yes! Playing as what is essentially a ...