Search found 11 matches

by Xasrai
Fri Jan 12, 2018 7:27 am
Forum: We are offering Paid Work
Topic: Visual Artist needed for futuristic 18+ game. [Closed]
Replies: 0
Views: 514

Visual Artist needed for futuristic 18+ game. [Closed]

I'm currently building an 18+ game that heavily tributes the Star Wars universe and am looking for an artist to create several sprites for characters in the game. Game can be previewed here: https://lemmasoft.renai.us/forums/viewtopic.php?f=43&t=47483 My requirements would involve: 3 x Female Fu...
by Xasrai
Tue Jan 09, 2018 6:39 pm
Forum: Works in Progress
Topic: Space Trainer [18+] [Trainer] [Space Opera]
Replies: 0
Views: 1233

Space Trainer [18+] [Trainer] [Space Opera]

Welcome to Space Trainer. This is a personal project of mine, my first attempt at programming in Ren'Py. What is Space Trainer? Space Trainer is my tribute to the Star Wars Expanded Universe. I feel that there were many untold stories and I have chosen to focus on an Infinities-style story. Space Tr...
by Xasrai
Sat Jan 06, 2018 8:00 am
Forum: Ren'Py Questions and Announcements
Topic: Call Screen working twice
Replies: 3
Views: 515

Re: Call Screen working twice

I had a similar issue yesterday, not the same but enough that I thought my experience MAY help you. I had a screen that was calling a function like this: textbutton "train 6: " xminimum 100 action ui.callsinnewcontext("train_6_button") bar range skill_max value skill_list[6] xmax...
by Xasrai
Tue Jan 02, 2018 10:05 am
Forum: Ren'Py Questions and Announcements
Topic: [Answered] generating random number with len(variable)
Replies: 3
Views: 1170

Re: generating random number with len(variable)

Ocelot wrote: Tue Jan 02, 2018 6:11 am What is wrong with $k = renpy.random.randint(0, len(exposure_list) - 1) ?
Absolutely nothing at all. I was apparently just screwing up with my syntax.

Thanks for your help!
by Xasrai
Tue Jan 02, 2018 5:59 am
Forum: Ren'Py Questions and Announcements
Topic: [Answered] generating random number with len(variable)
Replies: 3
Views: 1170

[Answered] generating random number with len(variable)

Hello. I'm wondering if it's possible to use random to generate a number that is within the confines of the length of a list? What I'm trying to do is take the sum of 2 lists, then randomly choose one of the numbers from one of the lists to decrement by one, until the total of both lists is no longe...
by Xasrai
Wed Oct 25, 2017 12:55 am
Forum: Ren'Py Questions and Announcements
Topic: Visible but unselectable menu choices?
Replies: 3
Views: 620

Re: Visible but unselectable menu choices?

Probably not the best way but you can create a list: define: clue_known = [False, False, etc] Then when they discover the clue is not correct, change the value to true. $clue_known[0] = True and finally, when they select the menu option that they already know is wrong: if clue_known[0] is True: &quo...
by Xasrai
Fri Oct 20, 2017 9:14 am
Forum: Ren'Py Questions and Announcements
Topic: <Solved> Is it possible to set a max and min value for each value in a list and the list as a whole?
Replies: 6
Views: 901

Re: Is it possible to set a max and min value for each value in a list and the list as a whole?

So, I've gone and written this piece of code that does what I need: $ i = 0 while i < len(desire_days): if day > desire_days[i] and if desire_list[i] > min_list[i]: $ desire_list[i] -= 1 $ i += 1 This part checks to see if a the subject has been exposed to each activity in the past 7 days and if the...
by Xasrai
Fri Oct 20, 2017 8:18 am
Forum: Ren'Py Questions and Announcements
Topic: <Solved> Is it possible to set a max and min value for each value in a list and the list as a whole?
Replies: 6
Views: 901

Re: Is it possible to set a max and min value for each value in a list and the list as a whole?

I've edited the code a bit, having been unable to make the above suggestions work for me. This allows me to set a max value of 10 for the whole set of data, a max of 5 for any individual value but will still reset each value down to 0 instead of a minimum individual value. while sum(desire_list) < 1...
by Xasrai
Thu Oct 19, 2017 6:45 am
Forum: Ren'Py Questions and Announcements
Topic: <Solved> Is it possible to set a max and min value for each value in a list and the list as a whole?
Replies: 6
Views: 901

<Solved> Is it possible to set a max and min value for each value in a list and the list as a whole?

I'm trying to write a piece of code that increments a value in desire_list by the amount contained in exposure_list, and then wipe exposure_list clean to be used again the next day. However, I never want any single desire_list value to go above 5(while also being able to raise the minimum above 0 if...
by Xasrai
Fri Dec 16, 2016 8:36 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Possible to reset multiple persistent variables?
Replies: 4
Views: 713

Re: is it possible to mass reset multiple persistent variabl

Another approach: persistent data can store lists too. Or a dictionary, persistent variable could be a dictionary, that you fill in step by step: define persistent.mydict = { } label start: $ persistent.mydict['trig1'] = True Going on in the game, you add elements: label chapter_237: $ persistent.m...
by Xasrai
Fri Dec 16, 2016 9:49 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Possible to reset multiple persistent variables?
Replies: 4
Views: 713

[SOLVED] Possible to reset multiple persistent variables?

In another post, this talks about changing multiple variables at once through the python code below. Instead of bunch of variables, use a list. THen you can iterate it and change it: python: var = [ ] var[1] = 0 var[2] = 42 var[3] = 99 # . . . var[99] = 9001 # setting everything to 0 explicitely usi...