Skip to content

Python Style Keyword Arguments

Sam Alhara requested to merge python_style_keyword_args into master

Allows the event user to use Python style keyword arguments when writing commands.

For instance,

set_current_hp;Unit=Seth;PositiveInteger=13

These commands are order-invariant as long as there are no non-keyword arguments following them. So this will work fine,

set_current_hp;PositiveInteger=13;Unit=Seth

But this would not:

set_current_hp;PositiveInteger=13;Seth

The keyword name pulls from the keyword_names list of the event command if available. If no such list is available, pull from the regular keywords and optional keywords.

Merge request reports