Search found 61 matches

by elhlyn
Thu Mar 25, 2021 9:57 pm
Forum: Ren'Py Questions and Announcements
Topic: how do I show images with an object placeholders?
Replies: 1
Views: 550

how do I show images with an object placeholders?

So I have a placeholder as seen below where Lucas is a character. current_char is a placeholder so that this can be used for multiple characters. I want to set it up where I can show an accompanying image, but when I try to input this label test: define character.luc = Character("Lucas", i...
by elhlyn
Fri Mar 19, 2021 12:07 pm
Forum: Ren'Py Questions and Announcements
Topic: how do you set variables in an imagebutton?
Replies: 4
Views: 493

how do you set variables in an imagebutton?

screen char(): vbox xalign 1.0 yalign 1.0 spacing 20: imagebutton: idle"john potrait.png" hover "jill portrait hover.png" action (SetVariable ("current_char","john"), Jump ("char_menu")) I am most certain this is not the right syntax in the code but...
by elhlyn
Thu Mar 18, 2021 1:07 pm
Forum: Ren'Py Questions and Announcements
Topic: having an object selector?
Replies: 8
Views: 677

Re: having an object selector?

Thanks!
by elhlyn
Thu Mar 18, 2021 12:20 pm
Forum: Ren'Py Questions and Announcements
Topic: having an object selector?
Replies: 8
Views: 677

Re: having an object selector?

just a quick example label training $ selected = char_tom "what would you like to do?" menu: "traing": "you trained their strength" $selected.strength +=1 jump ("train") "hang out": "you hung out." $selected.affection += 1 jump("traini...
by elhlyn
Thu Mar 18, 2021 11:59 am
Forum: Ren'Py Questions and Announcements
Topic: having an object selector?
Replies: 8
Views: 677

Re: having an object selector?

Unfortunately the main issue I had when I was utilizing this code was on the issue of repeating characters when I wished to have them unique rather than potential duplicates. I am wrong on 2 fold for not reaching out again and more importantly not being very clear in explaining what I'd like to do.
by elhlyn
Thu Mar 18, 2021 11:02 am
Forum: Ren'Py Questions and Announcements
Topic: having an object selector?
Replies: 8
Views: 677

Re: having an object selector?

what I'd like to make is basically a "roster" menu of sorts where I can select a character and interact with them such as train them up a specific stat or hang out with them to increase affection. What I don't want is to code the exact same common "activities" for each and every ...
by elhlyn
Thu Mar 18, 2021 3:45 am
Forum: Ren'Py Questions and Announcements
Topic: having an object selector?
Replies: 8
Views: 677

having an object selector?

I have several characters that are set up as objects (with their own stat values) and would like to set up a system where if I select them I can have them do something without having to reference that specific character/object for each and every character. any suggestions on how to approach this?
by elhlyn
Tue Mar 16, 2021 12:44 am
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to replace all of the information of a character and object
Replies: 8
Views: 674

Re: Is there a way to replace all of the information of a character and object

got it, got it. I deeply appreciate you taking your time and being very patient with me, but how do show images that correspond to the "selected" character? can't seem to make it work despite the images being defined?
by elhlyn
Mon Mar 15, 2021 10:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to replace all of the information of a character and object
Replies: 8
Views: 674

Re: Is there a way to replace all of the information of a character and object

so to add characters, I have to modify the "Person" class? or what would be the format to create characters?
by elhlyn
Mon Mar 15, 2021 6:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to replace all of the information of a character and object
Replies: 8
Views: 674

Re: Is there a way to replace all of the information of a character and object

Thank you for the reply! this is a useful method and I will look in to testing it out more to have a better understanding. I apologize for the way I am phrasing the question and explanation as I am both very inexperienced in programming, and it's a bit difficult to describe what I wish to do. the en...
by elhlyn
Mon Mar 15, 2021 1:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to replace all of the information of a character and object
Replies: 8
Views: 674

Is there a way to replace all of the information of a character and object

I wanted to organize character files separately and have them be interchangeable, in a sense that you can have "npc1" be referring to a character and object named Tom and his related stats and info or as Jill with her related stats and info. I found out that you can replace the "chara...
by elhlyn
Sun Mar 14, 2021 1:36 pm
Forum: Ren'Py Questions and Announcements
Topic: How can you check if a file exist run its code?
Replies: 1
Views: 436

How can you check if a file exist run its code?

I've seen examples of how you can use the "renpy.exist" function to check if it it exist, but what if I want to use check and run that file (which has variables to assign) the broader thing I want to have is where the program will select a random list of characters in a "character&quo...
by elhlyn
Sat Mar 13, 2021 2:31 pm
Forum: Ren'Py Questions and Announcements
Topic: how can I create a random NPC with their own stats?
Replies: 5
Views: 1347

how can I create a random NPC with their own stats?

I've created a class for these characters but I don't know how to implement them in a way where you can interact and talk them. I'm trying to go for a way for you to recruit these npc and interact with them (the intent is that they would have predefined dialogue but random name, stats, and so on) th...