Search found 26 matches

by Uy27
Tue Jul 31, 2018 10:31 am
Forum: Ren'Py Questions and Announcements
Topic: Show success rate with non-uniform probability distribution.
Replies: 6
Views: 956

Show success rate with non-uniform probability distribution.

Hello everyone So I have this code; $ results = [('success',1 +atk),('fail',10)] $ place = NonUniformRandom(results) Works fine and as it supposed to. Question is; Is there a way to show the success chance in a text? Like that code above and let's say that atk is 1 so the success probability is 2. C...
by Uy27
Wed May 30, 2018 9:26 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Format string problem
Replies: 4
Views: 884

Re: format string problem

I see so as I though it's not possible to add more to that code I have to rewrite it. Thank you for the help, I will try to play around with it again and see if I can make it work this time. *Edit* So for people who may have the same problem, I solved it by simply making 3 copy paste of the whole co...
by Uy27
Wed May 30, 2018 9:10 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Format string problem
Replies: 4
Views: 884

Re: format string problem

I'm a bit of a newbie. How exactly does someone go about that with this kind of code?
Also what is ternary operators?
by Uy27
Wed May 30, 2018 8:46 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Format string problem
Replies: 4
Views: 884

[Solved] Format string problem

So I'm messing around with a code made my trooper6 from here https://lemmasoft.renai.us/forums/viewtopic.php?t=39482 , which works no problem. My problem is here: init python: class PointLocker(object): def __init__(self): self.dp = 0 self.np = 0 def ch_pts(self, type, num): if num >= 0: start = &qu...
by Uy27
Sun May 27, 2018 1:49 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Hiding multiple screens when switching locations
Replies: 3
Views: 3278

Re: Hiding multiple screens when switching locations

Oh wow, I spent so long on searching how to do this and I never ended up on tags. I need to up my search game haha. Thank you a ton kivik for taking your time to help me. It's working awesome now. *Edit* Thank you too Remix! I will try both solutions and see which works the best. Thanks for taking y...
by Uy27
Sun May 27, 2018 1:17 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Hiding multiple screens when switching locations
Replies: 3
Views: 3278

[Solved] Hiding multiple screens when switching locations

Hi so I'm using demonangelz https://lemmasoft.renai.us/forums/viewtopic.php?f=51&t=33333#p380743 navigation system. Which means I can move to different rooms (screens) from all the locations. No problem there. I then have different objects/persons that can be clicked on. Example on code. label R...
by Uy27
Wed Apr 04, 2018 6:26 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Storing several variables (Making titles via leveling)
Replies: 9
Views: 2043

Re: Storing several variables (Making titles via leveling)

Ahhhhh! I mistook the property as a comment! Never seen that piece of code before haha. It works wonderfully now I thank you a thousand times Remix, you amazing!
Lot's to learn yet and thank you too DannX
by Uy27
Wed Apr 04, 2018 4:40 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Storing several variables (Making titles via leveling)
Replies: 9
Views: 2043

Re: Storing several variables (Making titles via leveling)

The other attribute works fine and I don't really get an error but in the game where the title should be it shows: <bound method Player.rank_name of <store.Player object at 0x0A683750>> I tried without anything added but your code as shown and then i also tried to do it like this def __init__(level=...
by Uy27
Wed Apr 04, 2018 3:19 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Storing several variables (Making titles via leveling)
Replies: 9
Views: 2043

Re: Storing several variables (Making titles via leveling)

Thank you remix but I must admit I am a bit lost on how to incorporate that into making it appear on the screen and combine it with the level.

Code: Select all

 label "Level: ([pc.rank_name])"        

Is my failed attempt.
by Uy27
Wed Apr 04, 2018 1:41 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Storing several variables (Making titles via leveling)
Replies: 9
Views: 2043

Re: Storing several variables (Making titles via leveling)

Thanks for taking your time to help, DannX! Sadly it didn't work out. When I follow the steps it tells me that the check_player_rank is not defined. And I tried to do that with no results. The way I do the leveling system is really simple; label levelUp(target_label=""): if pc.exp >=500 an...
by Uy27
Wed Apr 04, 2018 2:44 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Storing several variables (Making titles via leveling)
Replies: 9
Views: 2043

[Solved] Storing several variables (Making titles via leveling)

I wanna start by saying sorry if the title is not correct. This is my first time with renpy and I'm very new to the coding world and the terms are still a tad confusing for me! What I'm basically trying to do is changing a variable depending on how another is. Example a title is 'Asomething' when le...