Search found 242 matches

by Nero
Thu Dec 13, 2018 7:03 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Need help on improving my code with Players and Skills
Replies: 11
Views: 989

Re: Need help on improving my code with Players and Skills

Hmm I did something similar like this before but again same problem. It seems it works but problem is that every player get affected by this effect even I gave poison effect to a player2 status list... or maybe I'm appending this the wrong way? Im using this line to append to status "$ player2.statu...
by Nero
Wed Dec 12, 2018 7:02 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Need help on improving my code with Players and Skills
Replies: 11
Views: 989

Re: Need help on improving my code with Players and Skills

I don't know if i needed to inherit from Player class since you said those 2 classes can both be objects then there is no need I guess(im asking because it looks like its needed in "screen battle_test_screen" or maybe im wrong)? I was never before mixing classes like that I used only 1 class and did...
by Nero
Tue Dec 11, 2018 11:38 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Need help on improving my code with Players and Skills
Replies: 11
Views: 989

[SOLVED]Need help on improving my code with Players and Skills

Hey, I just need some advice in improving my current code. Right now I accomplished what I wanted but thing is I did it in very poor way that it gets very frustrating if i decide to have lets say 50+ skills in my game this would be pain to do my way. The idea here is that I got a 3 players which are...
by Nero
Tue Dec 11, 2018 2:33 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]How to put image inside another image without messing up the screen position?
Replies: 2
Views: 289

Re: How to put image inside another image without messing up the screen position?

Ok tried this method it works also. There is other method I thought of not so proud of it but it work. I gave to if player.debuffed else: and added blank image and set its xpos off screen xpos -2000 like so. But using fixed is much more better way of doing it. Thanks.
by Nero
Sat Dec 08, 2018 9:35 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]How to put image inside another image without messing up the screen position?
Replies: 2
Views: 289

[SOLVED]How to put image inside another image without messing up the screen position?

How can I have 2 images inside same vbox without them interacting with each other. I know I could make another vbox but that would be time consuming to adjust x and y of another image to match the x,y of my main image. For example here I have code that shows party members on screen. Every member hav...
by Nero
Tue Mar 13, 2018 4:52 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Re-Define Ren'Py Value In Python Function
Replies: 2
Views: 332

Re: Re-Define Ren'Py Value In Python Function

Not a complete noob but I have some missing parts when it comes to coding good thing this forum exists so I can learn new stuff :) . Anyways thanks I understand what you are saying.
by Nero
Tue Mar 13, 2018 4:11 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Re-Define Ren'Py Value In Python Function
Replies: 2
Views: 332

[SOLVED]Re-Define Ren'Py Value In Python Function

I'm wondering if there is a way I could redefine Ren'Py value like this one:

Code: Select all

default bob = True
And lets say I want it to be set to false but inside a python function how do I do that?
This wont work:

Code: Select all

def make_bob_false():
    bob = False
by Nero
Sat Mar 10, 2018 3:42 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Can Ren'Py Remeber Where Did jump Happened So It Can Return To It Later?
Replies: 2
Views: 304

[SOLVED]Can Ren'Py Remeber Where Did jump Happened So It Can Return To It Later?

Here I have a small example of what I'm trying to do. Basically I made a battle engine that when battle is over it has 2 options to jump to. Either jump a2 and game goes back to main menu or either a1 and then it keeps moving from there. But problem here is that when it jumps to a1 I can't make the ...
by Nero
Thu Mar 08, 2018 12:34 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]How To Display Items In List Without u' Symbol
Replies: 6
Views: 1676

Re: How To Display Items In List Without u' Symbol

Damn that's pretty simple now that I look at it. Only thing I don't understand what is __str__ which I'm studying right now other than that rest of stuff is clear but I didn't know how to combine it together.

Thanks for the help!
by Nero
Thu Mar 08, 2018 10:55 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]How To Display Items In List Without u' Symbol
Replies: 6
Views: 1676

Re: How To Display Items In List Without u' Symbol

"override its __format__ or __str__ magic members" How do you override something can you provide example?
by Nero
Thu Mar 08, 2018 10:18 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]How To Display Items In List Without u' Symbol
Replies: 6
Views: 1676

[SOLVED]How To Display Items In List Without u' Symbol

How do I display items that are inside a list without getting brackets and unicode u' symbol? If I print this out I will get this result: [u'Apple', u'Banana'] How do I get just: Apple, Banana ? init python: class Player: def __init__(self, test_list=None): self.test_list = test_list default bob = P...
by Nero
Sun Mar 04, 2018 8:25 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Making Aggro System In Game But For More Than 2 Players?
Replies: 6
Views: 591

Re: Making Aggro System In Game But For More Than 2 Players?

Ooooh after reading it for 10 times I finally get it. So actually players behave as numbers each player is repeated this many times in a separately lists (dependent on aggro number I defined) then you put all those spammed players inside a single list so renpy.random can randomly hit one of them and...
by Nero
Sun Mar 04, 2018 7:28 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Making Aggro System In Game But For More Than 2 Players?
Replies: 6
Views: 591

Re: Making Aggro System In Game But For More Than 2 Players?

You saved the day once again :lol: . Works nicely only problem I have is that I don't really understand this code :( . I'm used to type sort of "noob-logical" code this one looks complex and proffesional. Could you explain me more which part is doing what since I have no idea whats going on in this ...