User-defined statement:handling arbitrary statement feature?
Posted: Sat Aug 24, 2013 9:05 am
(previously a feature request titled: Multi-line user-created statement: feature for next version?)
(previously a Ren'Py coding question titled: About multi-line user created statement)
I am hoping for the ability to create multi-line statement. I am no programmer, but I can't imagine that feature would be too hard to add, even if there is low demand for it, since there is already a single-line version. Of course, we can always use a regular function with a variable number of arguments, but that do not look nice and can't take advantage of the natural nested block structure.
Additionally, this allow people to share their own multi-line user-created statement in the cookbook, so that if some statement become popular enough, it can be easily added to future generation of Ren'Py.
Right now we can override "menu" for all sort of purposes, but that make no sense since menu is meant to make choice, and there are things we can't do with menu anyway since it is after all meant for making a choice and jump. And beside, keep overriding menu for all sort of purposes seems rather haphazard.
Feature request: allowing user-created statement to receive as its input (in subblock) and handle (which include modification, evaluating expression, and execution) arbitrary Ren'Py/Python statement.
(previously a Ren'Py coding question titled: About multi-line user created statement)
Additionally, this allow people to share their own multi-line user-created statement in the cookbook, so that if some statement become popular enough, it can be easily added to future generation of Ren'Py.
Right now we can override "menu" for all sort of purposes, but that make no sense since menu is meant to make choice, and there are things we can't do with menu anyway since it is after all meant for making a choice and jump. And beside, keep overriding menu for all sort of purposes seems rather haphazard.
Feature request: allowing user-created statement to receive as its input (in subblock) and handle (which include modification, evaluating expression, and execution) arbitrary Ren'Py/Python statement.