Search found 6 matches

by qwertyu63
Mon Jul 26, 2021 7:49 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]AttributeError: type object 'LoveInterest' has no attribute 'affection'
Replies: 8
Views: 1188

Re: AttributeError: type object 'LoveInterest' has no attribute 'affection'

Okay, I just read through your code, and you've double-assigned LoveInterest. You assign that as the name of a class, but then you also make it a variable storing one of your characters with "action SetVariable("LoveInterest", jin)". It's failing because you're asking it to check...
by qwertyu63
Mon Jul 26, 2021 12:06 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]AttributeError: type object 'LoveInterest' has no attribute 'affection'
Replies: 8
Views: 1188

Re: AttributeError: type object 'LoveInterest' has no attribute 'affection'

I don't know if it's the cause of your problem, but I did find one problem that might be it. Where you have defined your classes, you forgot to note that they are objects. Try this: init python: class Player(object): def __init__(self, name = "Shin", age = "18", birthday = "...
by qwertyu63
Mon Jul 19, 2021 1:01 am
Forum: Ren'Py Questions and Announcements
Topic: How to discard the entire call stack?
Replies: 2
Views: 713

Re: How to discard the entire call stack?

emz911 wrote: Mon Jul 19, 2021 12:58 am Set https://www.renpy.org/doc/html/label.ht ... turn_stack to an empty list []
Perfect. Thank you.
by qwertyu63
Mon Jul 19, 2021 12:36 am
Forum: Ren'Py Questions and Announcements
Topic: How to discard the entire call stack?
Replies: 2
Views: 713

How to discard the entire call stack?

I need a way to discard the entire call stack. I have a complex combat system that, depending on the situation, could be started with a few locations stacked up in the "return from call" stack. I would like to make it so if you completely lose a battle in certain situations, it sends you t...
by qwertyu63
Wed Apr 28, 2021 8:42 pm
Forum: Ren'Py Questions and Announcements
Topic: How to change default menu page?
Replies: 3
Views: 441

Re: How to change default menu page?

That doesn't seem to be working. Right-clicking still takes me directly to the Save screen.

However, I did figure out how to make the save screen itself unusable in battle (while battle_active, the save slots themselves are now replaced by a message), so my problem is solved.
by qwertyu63
Wed Apr 28, 2021 8:00 pm
Forum: Ren'Py Questions and Announcements
Topic: How to change default menu page?
Replies: 3
Views: 441

How to change default menu page?

I need to figure out to to temporarily prevent the player from saving the game during specific scenes. I have a battle system I've built into my game and I want to stop the player from saving during a battle. I'm most of the way there already. I have a variable (battle_active) that is True when a ba...