jsfehler

Results comments of jsfehler

You need to separate your concerns. Something along the lines of the following: ``` def cast_mass_spell(spell): number_of_affected_characters = 0 char_list = get_all_chars_in_current_room() for char in char_list: if cast_spell_single(spell, char): number_of_affected_characters...

Let's assume you can rewrite cast_spell_single to be a function. You then cart off both functions to a utils file your non-programmers don't have to look at. In this scenario,...

It seems that the "_game_menu_screen" parameter is part of the kwargs sent to the label _game_menu, but the label's first argument "_game_menu_screen=_game_menu_screen" is still present, causing the collision. I think...

Works: ``` label label_one: call label_two(foo="Bar") label label_two(foo="Foo"): "[foo]" return ``` Does not work: ``` label label_one: python: args = ["biz"] kwargs = {"bin":"bat"} renpy.call_in_new_context("label_two", foo="Bar", *args, **kwargs) label label_two(foo="Foo"):...

Added a proof of concept over at #1331

Thanks, viewport_yfill works. Documentation updates to specify which parameters the "viewport_" prefix can be used for would be helpful.

How about: ``` class Test: def __init__(self): self.thread = None def __getstate__(self): self.thread = None return self.__dict__ def send(self, ignored): renpy.invoke_in_thread(lambda:time.sleep(1)) def isAlive(self): return self.thread and self.thread.isAlive() ```

I'm not sure I understand the use case for that. Is there any example or documentation that elaborates? If someone wanted to share attributes, wouldn't they do so explicitly?