Search found 242 matches

by Luxliev
Wed Aug 23, 2017 5:41 am
Forum: Ren'Py Questions and Announcements
Topic: AttributeError: 'StoreModule' object has no attribute 'D' [SOLVED]
Replies: 2
Views: 126

AttributeError: 'StoreModule' object has no attribute 'D' [SOLVED]

Why this doesn't work? I can't change class variables with SetVariable? init python: class Cls: def __init__(self, name): self.n = name a = Cls("D") screen butt: textbutton "[a.n]": action SetVariable(a.n, "C") # action Function(write_to_class, "C") label start: show screen butt "Hello, world." retu...
by Luxliev
Sat Aug 19, 2017 10:17 am
Forum: Ren'Py Questions and Announcements
Topic: How to remove / replace added image
Replies: 2
Views: 149

Re: How to remove / replace added image

You can do it this way but this is not why I want to remove image. I want to remove/replace image because it's sprite animation. Because of that I need to remove other image. Otherwise two animations will overlap with one another. Thanks for answer. I didn't know about ToggleVariable this will be us...
by Luxliev
Sat Aug 19, 2017 2:34 am
Forum: Ren'Py Questions and Announcements
Topic: How to remove / replace added image
Replies: 2
Views: 149

How to remove / replace added image

How do I replace or remove image that I've added by using "add" command? Code example below: init python: add_button_active = 0 remove_button_active = 0 screen add_remove: vbox: textbutton "Add": action SetVariable('add_button_active', 1) textbutton "Remove": action SetVariable('remove_button_active...
by Luxliev
Mon Aug 07, 2017 3:11 pm
Forum: Ren'Py Questions and Announcements
Topic: How does buttons actions work on mobile device [SOLVED]
Replies: 3
Views: 224

How does buttons actions work on mobile device [SOLVED]

As in subject. How does buttons actions work on mobile android and ios device?
action is touch?
alternate is long touch?
What about hovered and other options?
Is there some tutorial that shows what is different between pc, android, ios, mac versions?
by Luxliev
Sun Jul 30, 2017 3:27 pm
Forum: Ren'Py Questions and Announcements
Topic: How to set multiple variables with text button?
Replies: 2
Views: 244

Re: How to set multiple variables with text button?

I found that using Jump gives you opportunity to do pretty much whatever you want but won't this create any problems? Example: imagebutton auto equipment.imgd.inventory: action SetVariable('swap_item', equipment), Jump('background') label background: $ citem, ditem = set_ci(citem, ditem) $ renpy.pau...
by Luxliev
Sun Jul 30, 2017 9:59 am
Forum: Ren'Py Questions and Announcements
Topic: How to set multiple variables with text button?
Replies: 2
Views: 244

How to set multiple variables with text button?

Can you make textbutton set multiple variables? Example in python: def func(a, b): a += 3 b += 4 return a, b z = 1 x = 2 z, x = func(z, x) I can't use action SetVariable(), SetVariable() because I use function first and then when I try to SetVariables after that I have this annoying issue that butto...
by Luxliev
Sun Jul 30, 2017 6:11 am
Forum: Ren'Py Questions and Announcements
Topic: How to make textbutton "[lst[index_number]]" work? [SOLVED]
Replies: 3
Views: 174

Re: How to make textbutton "[lst[index_number]]" work?

Yeah I can do that but it's only fix for simple problem if I want to access list of class inside other list then code will quickly become messy.
by Luxliev
Sun Jul 30, 2017 4:18 am
Forum: Ren'Py Cookbook
Topic: Dungeon Crawl RPG Framework
Replies: 97
Views: 29692

Re: Dungeon Crawl RPG Framework

I've mentioned no clip issue before. If anyone wants to fix it change line:

Code: Select all

if front1.stage.map[front1.y][front1.x] is not "1":
to:

Code: Select all

if front1.stage.map[front1.y][front1.x] != "1":
it is in dungeon.py file
by Luxliev
Sun Jul 30, 2017 3:47 am
Forum: Ren'Py Questions and Announcements
Topic: How to make textbutton "[lst[index_number]]" work? [SOLVED]
Replies: 3
Views: 174

How to make textbutton "[lst[index_number]]" work? [SOLVED]

init python: my_string = "string" lst = [my_string] index_number = 0 screen testscreen: # textbutton "[lst[index_number]]" # this gives me TypeError: list indices must be integers, not unicode textbutton "[lst[0]]" # this works How can I make number that is variable inside another square bracket wo...
by Luxliev
Fri Jul 28, 2017 7:42 am
Forum: Ren'Py Cookbook
Topic: Infinite, Stackable Inventory/Crafting/Vendor - UPDATED v1.5
Replies: 56
Views: 19671

Re: Infinite, Stackable Inventory/Crafting/Vendor - UPDATED v1.5

I really like it. Don't know if it's expected behaviour but you can sell stuff for 0 g (Coin).
by Luxliev
Fri Jul 28, 2017 7:33 am
Forum: General Discussion
Topic: PhpBB 3.2 Upgrade
Replies: 38
Views: 2394

Re: PhpBB 3.2 Upgrade

You did great job. I was confused at start, when I saw new forum first time but after few minutes of poking around I found out how familiar everything feels.
by Luxliev
Thu Jul 27, 2017 8:06 am
Forum: General Discussion
Topic: PhpBB 3.2 Upgrade
Replies: 38
Views: 2394

Re: PhpBB 3.2 Upgrade

I like it is there any reason why profile pictures are on right side now? Or is it just theme?
by Luxliev
Wed Jul 26, 2017 5:24 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make textbuttons scrollable in viewport [SOLVED]
Replies: 2
Views: 146

How to make textbuttons scrollable in viewport [SOLVED]

How can I make textbuttons scrollable? Text works fine but when I use textbuttons nothing moves. screen ui_inv: default equipment_counter = 0 add "cs_bckg.png" textbutton "Close": xalign 1.0 action Hide('ui_inv') vbox: area (800, 100, 430, 300) viewport id "vp_equipment": mousewheel True draggable T...