Search found 3548 matches

by trooper6
Mon Sep 02, 2019 1:44 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] can somebody test this code and tell me the result please
Replies: 12
Views: 301

Re: can somebody test this code and tell me the result please

Did you follow the link I provided? All you have to do have your data ordered is to used an ordered dict rather than a dict.
Also I have no idea when/if Renpy will migrate to Python 3.
by trooper6
Sun Sep 01, 2019 7:55 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] can somebody test this code and tell me the result please
Replies: 12
Views: 301

Re: can somebody test this code and tell me the result please

Dicts are unordered in Python, so those parts can come in any order.
If you want ordered, use an ordered dict.
https://www.geeksforgeeks.org/ordereddict-in-python/
by trooper6
Mon Aug 19, 2019 12:40 pm
Forum: Ren'Py Questions and Announcements
Topic: [Meta-Question] What Licence Ren'Py Cookbook Under?
Replies: 2
Views: 266

Re: [Meta-Question] What Licence Ren'Py Cookbook Under?

As Kia said, most of the code is free to use. But watch out especially for the battle systems...I notice a lot of those don’t allow use without permission. Basically, if there are further restrictions, the cookbook posts will generally say so.
by trooper6
Fri Aug 16, 2019 11:20 am
Forum: Ren'Py Questions and Announcements
Topic: Beginner Question - multiple storylines
Replies: 11
Views: 367

Re: Beginner Question - multiple storylines

I’ll answer in a different way: Yes, it is possible—using a number of different approaches. But, since, by your own admission, you don’t know any Ren’py at all, I won’t provide any code...because it won’t make any sense to you yet. Instead, I’ll say, start to learn some Ren’py basics. Make a little ...
by trooper6
Wed Aug 14, 2019 12:56 am
Forum: Ren'Py Questions and Announcements
Topic: Trying to temporarily disable some key bindings
Replies: 4
Views: 211

Re: Trying to temporarily disable some key bindings

Are you defining K_ESCAPE anywhere else? It sounds like maybe you are putting the escape back in thus overriding your screen?
You might want to check your code. If you can't find anything, make a fresh project and and add the code back in piece by piece to see what might be breaking it.
by trooper6
Tue Aug 13, 2019 7:56 pm
Forum: Ren'Py Questions and Announcements
Topic: Trying to temporarily disable some key bindings
Replies: 4
Views: 211

Re: Trying to temporarily disable some key bindings

You want to follow xavimat's suggestion. Make a screen, and on that screen put: screen my_key()s: key "h" action NullAction() Add whatever keys you want to disable on that screen...add all of them to that screen. Then in your game, when you don't want the keys usable in your game, show the screen an...
by trooper6
Tue Aug 13, 2019 7:47 pm
Forum: Ren'Py Questions and Announcements
Topic: Appending list items and displaying them live on a screen
Replies: 11
Views: 233

Re: Appending list items and displaying them live on a screen

This code works for me. Note: I don't like that I can't highlight and delete, but ah well. screen example1(): vbox: for i in my_list: text "[i]" button: if input_active: input default "enter new list item here" changed input_item action [Function(add_item, newitem), SetVariable("input_active", False...
by trooper6
Tue Aug 13, 2019 6:48 pm
Forum: Ren'Py Questions and Announcements
Topic: variable and save files
Replies: 2
Views: 194

Re: variable and save files

Classes with not participate in save and rollback properly unless you inherit from object (or something like it). So try (and be careful of your indentation): init python: class Message: def __init__(self, text): self.text = text self.isRead = False default message1 = Message(text="hello world")
by trooper6
Tue Aug 13, 2019 10:05 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] What's the proper way to create/update lists?
Replies: 3
Views: 195

Re: What's the proper way to create/update lists?

define is for variables that will not change, default is for variables that will change. They initializing your variables using default, outside of any block, before the start label alongside your other variable initializing
by trooper6
Sun Aug 11, 2019 12:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Need help for a minute
Replies: 10
Views: 290

Re: Need help for a minute

If you want to build an interactive fiction game like back in the 80s, you might want to look into using one of the languages built specifically for that. It might be easier for you because they should have a parser already built in.
by trooper6
Wed Aug 07, 2019 5:38 pm
Forum: Ren'Py Questions and Announcements
Topic: Hotspot [SOLVED]
Replies: 13
Views: 329

Re: Hotspot

My example code used textbuttons just so I could test it. You can replace the textbuttons with your imagebuttons.
by trooper6
Wed Aug 07, 2019 1:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Hotspot [SOLVED]
Replies: 13
Views: 329

Re: Hotspot

That is because Hide is used to hide screens not images. This is some code that gets rid of buttons that have been clicked on and also has a button that closes the screen. screen theone(): frame xalign 0.99 yalign 0.22: vbox: if b1: textbutton "Button1" action ToggleVariable("b1") if b2: textbutton ...
by trooper6
Wed Aug 07, 2019 10:39 am
Forum: Ren'Py Questions and Announcements
Topic: Hotspot [SOLVED]
Replies: 13
Views: 329

Re: Hotspot

Your code isn’t working, because it isn’t complete—it doesn’t do anything. What is supposed to happen when a person clicks a button besides the image disappearing? Presumably you are trying to store some information somewhere...so what are you doing? Also how complicated is this game you are planning?
by trooper6
Tue Aug 06, 2019 11:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Looking for a programmer! :3
Replies: 2
Views: 227

Re: Looking for a programmer! :3

Looking for a programmer is certainly allowed in the forums, but this is better placed in the Recruitment sub forum rather than the questions sub forum