HyperScript 1.7.41
Local variables are written with braces: {_name}.
Changed
- A local variable is now written
{_name}everywhere HyperScript shows one: in the documentation, in every example, in the ready-made scripts, in the demo script and the scripts/hyperscript newwrites, in the Playground's examples and in the VS Code extension. It looks like every other variable that way:{coins}is saved,{%player%.coins}is a player's own,{_coins}lasts for one run.
on player join:
set {_name} to player.name
send "&aWelcome, %{_name}%!"
- Nothing breaks.
_namewithout braces is the same variable as{_name}, as it has been all along, and a script may use both, even in one line. Scripts you have do not need to be changed. - The seven ready-made scripts were rewritten this way. If you installed them,
/updateserver(or/hyperscript install <name>again) fetches the new text and keeps your options; the old ones keep working if you leave them. - The documentation of every addon was changed the same way, and the VS Code extension is 1.0.4, with its snippets written the new way.