Search found 26 matches

by Mord87
Wed Nov 13, 2019 10:01 pm
Forum: Ren'Py Questions and Announcements
Topic: Dynamic way to add videos need HELP
Replies: 4
Views: 697

Re: Dynamic way to add videos need HELP

This is not good for me. The problem is I don`t want to add each clip one by one cos I have over 1000 clips. That is the reason I looking for the solution for the dynamic type system. I got all the videos in the folder system so renpy can open the right one for the right npc. It is working perfectly...
by Mord87
Tue Nov 12, 2019 7:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Dynamic way to add videos need HELP
Replies: 4
Views: 697

Re: Dynamic way to add videos need HELP

Thanks for your help but it is not working. I tried to put your code in different places but still nothing.
The fault is always the same: Can't register channel outside of init phase.
The game not starting just this fault comes up.
I hope you or somebody have an another idea.
by Mord87
Mon Nov 11, 2019 6:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Dynamic way to add videos need HELP
Replies: 4
Views: 697

Dynamic way to add videos need HELP

Hello everybody! I have a big problem with my game. I made a random npc generator wich is working fine. I try to add videos depends on the characters but I can not make it to work. The characters randomly generated with hair color, body type and skin color. I using dynamic images for these generated...
by Mord87
Wed Oct 16, 2019 7:35 pm
Forum: Ren'Py Questions and Announcements
Topic: random choices help to choose one colour once
Replies: 7
Views: 840

Re: random choices help to choose one colour once

---- I hope you or somebody can help me to figure it out. I spend hours to try different variations but no luck. OK this should do the job. Not a pretty solution though. init python: class RandomNPC(): def __init__(self, namelist): self.name = renpy.random.choice(namelist) self.hairtext = "bla...
by Mord87
Tue Oct 15, 2019 8:51 pm
Forum: Ren'Py Questions and Announcements
Topic: random choices help to choose one colour once
Replies: 7
Views: 840

Re: random choices help to choose one colour once

---- Hello! Thank You very much it is very useful. I just have one small problem which I can not figure out. I modified your codes and working fine but I can not add the line which is reset the list once it is empty. I tried so many different ways but no luck. I can not start the game until is fixe...
by Mord87
Mon Oct 14, 2019 9:22 pm
Forum: Ren'Py Questions and Announcements
Topic: random choices help to choose one colour once
Replies: 7
Views: 840

Re: random choices help to choose one colour once

Hello everybody! It is me again. :) I need a little help. I still working on my random NPC generator. Renpy will choose a random hair colour for a random NPC. I have a list of hair colour names and it will be randomly chosen. What I would like is to tell renpy to choose the colour only once. If she...
by Mord87
Sun Oct 13, 2019 7:53 pm
Forum: Ren'Py Questions and Announcements
Topic: random choices help to choose one colour once
Replies: 7
Views: 840

random choices help to choose one colour once

Hello everybody! It is me again. :) I need a little help. I still working on my random NPC generator. Renpy will choose a random hair colour for a random NPC. I have a list of hair colour names and it will be randomly chosen. What I would like is to tell renpy to choose the colour only once. If she ...
by Mord87
Fri Oct 11, 2019 6:06 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Random NPC generator help!
Replies: 6
Views: 932

Re: Random NPC generator help!

try removing brackets around your attributes, from "choice ([randchar1.hair] == blonde):" to "choice (randchar1.hair == blonde):" the variables only need brackets around them when they are placed inside a string I had to modify the code a little but it is working now. I had to d...
by Mord87
Thu Oct 10, 2019 7:41 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Random NPC generator help!
Replies: 6
Views: 932

Re: Random NPC generator help!

you might need layered images to construct your character's image: https://www.renpy.org/doc/html/layeredimage.html Hello! I tried so many different variations of codes but I can not do it. I just try to add a portrait pic to the character depending on the hair colour. Here is my last try: init pyt...
by Mord87
Wed Oct 09, 2019 6:10 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Random NPC generator help!
Replies: 6
Views: 932

Re: Random NPC generator help!

it's simple, you can add more attributes to your class: init python: class RandomNPC(): # template def __init__(self, namelist): self.name = renpy.random.choice(namelist) self.hair = renpy.random.choice(["black", "red", "blond"]) self.height = renpy.random.randint(150,...
by Mord87
Tue Oct 08, 2019 9:42 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Random NPC generator help!
Replies: 6
Views: 932

[SOLVED] Random NPC generator help!

Hello! I would like to create a random npc generator. All I want is to make a random npc which has a name, height, hair colour and body type. The main character walks into the club and starts dancing then the random npc start talking to him. In the dialogue text will be written down the random npc d...
by Mord87
Mon Oct 07, 2019 7:16 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]How to show emails in receiving order?
Replies: 5
Views: 772

Re: How to show emails in receiving order?

drKlauz wrote: Mon Oct 07, 2019 5:45 am

Code: Select all

## change this line
received_mails.append(number_of_mail)
## to this
received_mails.insert(0,number_of_mail)
or

Code: Select all

## change this line
for message in received_mails:
## to this
for message in reversed(received_mails):
Everything works perfectly. Thank You very much!
by Mord87
Sun Oct 06, 2019 7:51 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]How to show emails in receiving order?
Replies: 5
Views: 772

Re: How to show emails in receiving order?

You're going to have to figure out a way to record and use the order that the e-mails are received. You could either use a python list and store the order that they've been received, or you could build something a little more robust where you pass the contents of the mail to that list and then read...
by Mord87
Sat Oct 05, 2019 10:03 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]How to show emails in receiving order?
Replies: 5
Views: 772

[SOLVED]How to show emails in receiving order?

Hello guys! First of all, I want to say Thank You cos You already helped me a lot. I got a problem again :) I have an email system in my game and the problem is the received emails are not showing in receiving order. The emails are coming randomly, it depends on the player so I can not make it order...
by Mord87
Wed Oct 02, 2019 6:35 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]How can I use the player location?
Replies: 5
Views: 1057

Re: How can I use the player location?

That is one reason my label for the location is the same as my name for the location. I set the location before actually moving to it with a simple variable, like $ location = "loc_mcbr" then return to my main game loop. In the main game loop I have call expression (location) Which then c...