Skip to content
  • Leon Arnott's avatar
    Added infrastructure for "hook commands", a command which can have changers... · 04f96b39de1f
    Leon Arnott authored
    Added infrastructure for "hook commands", a command which can have changers attached, as well as the "bind" datatype.
    
     * "bind" is a new unary operator designed to pass variables by reference to certain upcoming input element macros, like (cycling-link:). This solves, with some brutality, the long-standing issue of not being able to pass in variables by reference to macros, which was always necessary to add these much-sought macros to Harlowe. Try as I might to think of some less blunt way to specify this syntactically, I must now in my increasing age defer to this solution.
    
     * "hook commands" will be ordinary commands (which have a TwineScript_Print() method) but also have a TwineScript_Attach() method that allows changers to mutate it in-place before it's finally printed. This will solve the long-standing issue of not being able to attach (t8n:) macros, and other valuable changers, to links and (goto:) macros.
    
     * Also fixed a few minor issues here and there.
    04f96b39de1f