Search found 97 matches

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: 151

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: 185

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: 153

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: 205

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: 2144

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: 132

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: 96

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: 167

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: 117

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: 7
Views: 698

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: 310

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: 310

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: 310

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: 519

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...
by DannX
Wed Dec 12, 2018 4:30 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]variables getting changed when they should not be
Replies: 2
Views: 102

Re: variables getting changed when they should not be

I can't seem to find any problem in the code you've posted here, at least testing it in a brand new project with some quickly-typed labels to test out. My only guess is that fte_cnt is not being set properly somewhere, as it is the variable that you use to determine wich event to call. If you want I...