Skip to content

Allow Macros to contain one variable selector #5

@Zrp200

Description

@Zrp200

Currently, macros only allow selectors as the last command, which is pretty useless.

The limitations of selectors in SPD only prevent initializing another selector after a first one.

Implementation should consistent of passing control back to the executing macro after a cell is selected, so a macro consisting of

@terrain use terrain %1
@cell cell
use level set @cell @terrain
use gamescene updatemap @cell 

would correctly prompt for a cell to be selected and then set that cell to the passed terrain.

Bonus points if the variable can be restricted to only exist inside of the variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions