User Tools

Site Tools


Sidebar

Passage markup

basics

coding

extra

list

section

whitespace

Macros

basics

colour

data structure

date and time

game state

live

maths

number

revision

saving

showing and hiding

string

styling

url

deprecated

Types of data

Special keywords

Special passage tags

harlowe:variable_markup

Variable markup

In Harlowe, variables start with $ (for normal variables) or _ (for temp variables, which only exist inside a single passage, hook or lambda). You can print the contents of variables, or any further items within them, using the (print:) and (for:) macros.

Or, if you only want to print a single variable, you can just enter the variable's name directly in your passage's prose.

Your beloved plushie, $plushieName, awaits you after a long work day.
You put your _heldItem down and lift it for a snuggle.

Furthermore, if the variable contains a changer command, such as that created by (text-style:) and such, then the variable can be attached to a hook to apply the changer to the hook:

$robotText[Good golly! Your flesh... it's so soft!]
_assistantText[Don't touch me, please! I'm ticklish.]
harlowe/variable_markup.txt · Last modified: 2017/06/19 23:06 by l