Search found 98 matches

by DannX
Tue Jul 09, 2019 11:54 am
Forum: Ren'Py Questions and Announcements
Topic: How to make the first line of a menu dynamic?
Replies: 2
Views: 295

Re: How to make the first line of a menu dynamic?

You could try this: # A list with possible greetings for the bartender $ bman_texts = ["What's your poison?", "You thirsty?", "What would you like today?"] # pick one of them with renpy.random.choice and store it in a variable called t $ t = renpy.random.choice(bman_texts) menu ask_for_a_drink: bman...
by DannX
Wed Jan 16, 2019 2:17 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to randomly pick phrases, then change them
Replies: 4
Views: 183

Re: How to randomly pick phrases, then change them

Try adding timer to the screen: screen loading(): timer 20 repeat True action SetScreenVariable('randomfact', renpy.random.randint(1,9)) As a suggestion, you could also rewrite that using a list of facts, and renpy.random.choice , that way you're not limited to 9 facts (you can add all you want) wit...
by DannX
Tue Jan 15, 2019 5:23 pm
Forum: Ren'Py Questions and Announcements
Topic: expected menuitem(SOLVED)
Replies: 4
Views: 230

Re: expected menuitem

The code doesn't seem wrong, I suspect the error might be because identation, but it's hard to tell for sure since the code you posted is not formatted, it would be better that when you post code, you enclose it between code brackets, like this: [code] Your code here [/code] It will look like this: ...
by DannX
Mon Jan 14, 2019 10:23 am
Forum: Ren'Py Questions and Announcements
Topic: While Loop Causing Game To Freeze
Replies: 4
Views: 191

Re: While Loop Causing Game To Freeze

As far as I can see, the while loop keeps going infinitely because you're not doing anything inside the loop to change the length of team_members, nor the value of x. When Python reaches a while loop, it stops there and executes the code inside over and over until the condition you provide it stops ...
by DannX
Mon Jan 14, 2019 9:47 am
Forum: Ren'Py Questions and Announcements
Topic: Learn Ren'py by using finished code. Bad Idea?
Replies: 4
Views: 236

Re: Learn Ren'py by using finished code. Bad Idea?

I usually try to divide my game into small parts, and list them in the order I want them to logically happen, and how would I represent that in the game. For example in a simple zero sum game like rock papers scissors, it would be something like: 1. Let the player choose their hand. (screen with som...
by DannX
Fri Jan 11, 2019 1:14 pm
Forum: Demos & Beta Testing
Topic: A Conversation Simulator
Replies: 12
Views: 2469

Re: A Conversation Simulator

I really like this concept, I actually had a similar idea for an Ace Attorney-like game not long ago, where the main character would interrogate people and dig out the truth out of them by observing their reactions to particular questions or pieces of evidence, but your conversation system actually ...
by DannX
Fri Jan 11, 2019 12:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Animation on Mouse Click and Position
Replies: 1
Views: 154

Re: Animation on Mouse Click and Position

I've been using something like this, for a different purpose, but with some adjustment it may be useful: image fire_bullet = "fire.png" #should be an ATL animation, I'm using a static image for testing screen test(): $ mouse_pos = renpy.get_mouse_pos() #set a screen variable to the mouse current pos...
by DannX
Fri Dec 21, 2018 10:01 am
Forum: Ren'Py Questions and Announcements
Topic: Weird question
Replies: 1
Views: 114

Re: Weird question

There are no dumb questions, and yours is very valid, don't worry about it. Basically what you need to do is, open the Ren'Py Launcher, select the game you want to release, look at the right of the launcher window for a button named "Build Distributions", click it, some options will appear, set them...
by DannX
Fri Dec 21, 2018 9:39 am
Forum: Ren'Py Questions and Announcements
Topic: persistant random number generator, how to?
Replies: 4
Views: 208

Re: persistant random number generator, how to?

To post code here, make use of the [code] and [/code] tags, like this: [code] Paste your code here [/code] As for your question, I'm not sure I understand correctly, but each time you want to roll the dice, you call the function again. menu: "Peek in the front window": $ d20roll = renpy.random.randi...
by DannX
Fri Dec 21, 2018 9:31 am
Forum: Ren'Py Questions and Announcements
Topic: Can I make the game always start up on a certain label?
Replies: 2
Views: 144

Re: Can I make the game always start up on a certain label?

Take a look here, you should be able to use one of the special labels described there, maybe after_load, or main_menu.
by DannX
Thu Dec 20, 2018 10:26 am
Forum: Ideas
Topic: Heart of the Party [BxG][Fantasy][Romance]
Replies: 9
Views: 1064

Re: Heart of the Party [BxG][Fantasy][Romance]

Very interesting, it's a nice take to focus on the slice of life parts of an rpg-like fantasy world while splashing out some action and adventuring. Characters seem really interesting and the art is excellent! Looking forward to this!
by DannX
Fri Dec 14, 2018 11:02 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Need help on improving my code with Players and Skills
Replies: 11
Views: 419

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

Ok now that I figured out how this work I'm still in a second problem. Even if I have separated lists created this code will still decrease skill duration based on how many debuffs are in list no matter what player is affected. By this I mean if for example player1 and player2 get poison effect for...
by DannX
Fri Dec 14, 2018 9:41 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Need help on improving my code with Players and Skills
Replies: 11
Views: 419

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

You expected a new [] empty list to be created for each Player, each time you called Player() , right? That does not happen in Python: the same and unique list is reused each time you create a new Player . Thank you for clarifying this, Rastagong, I had always assumed a new list was being created f...
by DannX
Thu Dec 13, 2018 1:30 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Need help on improving my code with Players and Skills
Replies: 11
Views: 419

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

Ah, I think now I understand what you need better. I don't have renpy at hand at the moment so I can't give you a working implementation, but let me explain the logic a bit: Using the method I described earlier, apart from the skills themselves, you need to implement a way for their effects to be ap...
by DannX
Wed Dec 12, 2018 4:58 pm
Forum: Ideas
Topic: Towards Tomorrow [Slice of Life?] (Feedback Appreciated)
Replies: 4
Views: 636

Re: Towards Tomorrow [Slice of Life?] (Feedback Appreciated)

Hey, that's a pretty nice setting, I like the idea of the Protagonist actually knowing he's at the mercy of the Player and (for what I infer) not caring that much as there is so much stuff happening around him. I keep imagining him talking back to the player when they make a choice the protagonist w...