Commit 6ee8bf68 authored by Leon Arnott's avatar Leon Arnott
Browse files

Updated documentation for 3.1.0.

parent 2b0d272012e1
......@@ -2,7 +2,7 @@
Documentation is at http://twine2.neocities.org/. See below for compilation instructions.
###3.1.0 changes (unreleased):
###3.1.0 changes:
####Bugfixes
......
window.storyFormat({"name":"Harlowe","version":"3.0.2","author":"Leon Arnott","description":"The default story format for Twine 2. See its <a href='http://twine2.neocities.org/' target='_blank' rel='noopener noreferrer'>documentation</a>.","image":"icon.svg","url":"http://twinery.org/","license":"Zlib","proofing":false,"source":"","setup":""});
\ No newline at end of file
window.storyFormat({"name":"Harlowe","version":"3.1.0","author":"Leon Arnott","description":"The default story format for Twine 2. See its <a href='http://twine2.neocities.org/' target='_blank' rel='noopener noreferrer'>documentation</a>.","image":"icon.svg","url":"http://twinery.org/","license":"Zlib","proofing":false,"source":"","setup":""});
\ No newline at end of file
Introduction: Some of what's new in 3.0
Introduction: Some of what's new in 3.1
Harlowe 3.0, while not as major an upgrade as 2.0, offers a few new features that deserve your attention:
Harlowe 3.1, ostensibly a minor release of Harlowe, nonetheless has a surprising amount of new features, which are summarised as follows:
* New form input macros have been added, similar to those available in Twine 1.4 and SugarCube. They use a new keyword, <a href="#type_bind">bind</a>, to automatically set a variable when they're interacted with.
* (cycling-link:) reappears after a long absence since Twine 1.4.
* (dropdown:) produces a dropdown menu.
* You can now attach changers to ordinary links and other commands, rather than just hooks.
* Passage transitions can now be changed on a per-link basis - instead of the normal fade-in, a number of other transitions can be used. Simply attach (t8n-depart:) or (t8n-arrive:) to the passage link.
* New transitions are available: "instant", "rumble", "slide-up", "slide-down", "slide-left", "slide-right" and "flicker".
* New `is a` and `matches` operators are available to compare data structures' similarity, or to check the <a href="#type_datatype">datatype</a> of variables.
* New implementations of (alert:), (confirm:) and (prompt:) that should work in more browsers and browser-like environments, and whose dialogs are customisable with CSS.
* The identifiers <a href="#keyword_visits">visits</a> and <a href="#keyword_exits">exits</a>.
* Special data names for <a href="#type_hookname">hooks</a>: `?hook's links`, `?hook's chars` and `?hook's lines`.
* Subarray and substring data names, such as `$arr's 1stto3rd`.
* New macros: (cond:), (nth:), (more:), (passages:) and (gradient:).
* <a href="#markup_unclosed-hook">Unclosed hook markup</a>, a shorthand that you can use with changers.
For a complete list of changes and outlines of how to use the above features, consult the <a href="#changes_3.0.2-changes">change log</a> section.
For a complete list of changes and outlines of how to use the above features, consult the <a href="#changes_3.1.0-changes">change log</a> section.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment