Early development: IFLoom can change until 1.0. What's stable
IFLoom

Glossary

One definition for each word the IFLoom docs use, with links to the explanation and the reference entry for each.

Each word the docs use has one meaning, defined here in a sentence or two. Every entry links to the page that explains the idea and the reference entry that documents it. Code names, such as drawChoices or RoomScene, keep their spelling even where the prose word differs.

action

A button outside a scene's choices, an ActionDef with a label, when, blocked, cost, effects, a command and once, sent as { type: 'action', id }. An action without a label is no button, and only its command does it. See State, commands and the view.

amount

A number content names that the engine works out when it reads it, such as a stat, a kv key's number or a count. See Amount.

base

The second argument of loadGame, which holds the game's id, title, version, plugins, receivers and rules, and nothing a mod could change. See GameBase and Content, packs and the base.

beat

One piece of a scene's body as the view renders it, such as a paragraph, a spoken line, a picture or a past choice. Content writes blocks, and the view has beats. See SceneBeat.

block

One entry of a scene's body in content, such as text(), say(), decide() or { prose }. See Block.

blocked

A reason something can be refused, { when, reason, hide? }, refused while when holds. A vendor's opening hours are one. See Blocked.

body

A scene's list of blocks, which the view renders as beats. See DataScene.

button

The control a UI renders for a choice or an action, from its RenderedChoice. The word means the control only, never the choice or action behind it.

character

An entity carrying the cast plugin's cast/person trait, of the kind character, with a schedule and lines. See the cast plugin and Entities, things and traits.

choice

An option a scene offers, in its choices or a decision, which the player chooses. See Choice.

choose

The player's act of taking a choice, recorded in state.chosen and read by the chose condition. The player never picks a choice, since a pick is random.

condition

A test of the state written as data, such as { stat: 'coins', gte: 3 }, that holds or doesn't. See Condition and State, commands and the view.

content

The game's own data in its files, a Content per file with no id or schema, each key declared once across the files. See Content, packs and the base.

content checker

checkGame, the one walk that checks a game's content and lists the files it names. loadGame runs it.

content migrations

The steps that carry a pack written for an older SCHEMA forward, run by upgradePack. Each plugin carries its own content forward with its content migrations.

cost

The stats an action or a choice spends, checked before it runs and shown on its button as a price. See ActionCost.

decision

A { decide, choices } block, written decide(), where a flow waits for the player to choose. See Flows.

description

The line that describes a thing, an entity, a status, an achievement, a quest, a cheat, a job or an unlock. Never desc or summary.

draw

A seeded random pick, such as draw, a pool's pick, a set of variants or a vendor's daily discounts. The word never means rendering. See Why IFLoom works this way.

effect

A change to the state written as data, told apart by its key, such as { stat: 'coins', by: -2 } or { scene: null }. See Effects.

entity

A member of a kind, such as a character, a location, a vendor or a sandwich. Content declares its name, description, picture, tags, traits and starting values, and the save keeps only what play changed. See Entities and Entities, things and traits.

entity reference

An entity's kind and id joined by :, such as 'character:ava', which the engine hands back as an EntityRef.

flags

A kind's named true/false conditions, asked of each listed entity with '$' as it, and answered in the view as each entity's flags, such as { met: true }. The word never means the kv store. See KindDef.

flow

A scene's body read top to bottom as the player chooses. It waits at a decision, shows the chosen choice's then, and carries on after it. See Flows.

fold

A section of a scene the player opens and shuts, written fold(). It's presentation only, the React UI's fold hint, and never state. See Flows.

game module

The default export of a game's src/game.ts, made by defineGame, which the page and the CLI both build the game from. See The game module.

good

A vendor's entry for a thing it sells, with a price and stock, written as a GoodDef in its goods. The thing sold is a thing. See the shop plugin.

helper

Code started beside a runner that works on it from outside, such as startClock, in one call that returns the way to stop it. A helper with something for the player reports it in the snapshot's helpers. See setHelper.

here

The location the player is at now, read with the places plugin's places/here. See the places plugin.

holder

The inventory plugin's word for who carries things, 'player', a unique entity or 'you'. The engine has no holders: it names someone, and the plugins that keep things are receivers.

hook

A plugin's or the game's onX function, run at an event, that returns the next state, such as onTurn. See Rules and How plugins work.

item

A word the docs don't use. A thing the player holds is a thing, and a member of a list is an entry.

jump

A choice's { point } effect, written jump(), which sends the flow to a point. It's the only way a flow loops. See Flows.

kind

A sort of entity, such as staff, photo or the cast's character, declared in kinds with a label, whether each is unique, whether it's listed, its tags, its flags and default traits. See KindDef.

kv

The kv store, keys with a true/false, number or text value, written with the kv effect and read with the kv condition. The player has one, and so do each entity, each storyline and a running minigame. See state.kv and Entities, things and traits.

label

The words on a button or a field. A thing has a name and a heading has a title.

layout

In the React UI, the page as a component, made of the regions Game, Sidebar, Story and Overlay. See the React UI.

listed

A kind's listed, which says whether the view shows the kind's entities: true, false or a condition with '$' as each entity. An entity's visible narrows it. A game's kinds are listed unless they say otherwise, and a plugin's aren't. See KindDef.

location

An entity carrying the places plugin's places/location trait, with exits and things to do. It's never called a place or a room. See the places plugin.

lock

A rule that refuses commands for now and says why, such as moving day allowing only its own scene. See Locks.

lookup

A function that reads what content declares or play made, named xOf(game, id) for one definition, xsOf(game) for a list, and xOf(state, game, ref) for what an entity is now. See sceneOf.

macro

An effect that stands for other effects, in a plugin's or the game's macros, so prices, guards and locks see the effects it stands for. See Macros.

mod

A pack a player adds to a built game, its id written mod:<id>. See Mods and Let players add mods.

name

The word a thing, an entity, a status, an achievement, a quest, a cheat, a job or an unlock is called by. A heading has a title and a button a label.

once

once: { per: 'game' | 'turn', reason? }, the one shape that limits a choice, an action, a cheat or a trigger to one use per game or per turn. See Once.

options

A plugin factory's settings, such as places({ start: 'flat' }), which are code a mod can't change. Content goes in data. See How plugins work.

pack

Content from outside the game's code, such as a mod, unlocked content or a JSON export, with an id that saves record and a schema. It goes over the content, last wins. See Pack and Content, packs and the base.

page

In the React UI, the title page and the pages around the game (settings, load, credits, the gate and any a game adds), turned on with the pages option. See the React UI.

panel

A named piece of UI over the story that the UI renders by name, such as shop or jobs, opened by the panel effect and kept in state.panel. See Panels.

phase

The kv key phase, which holds the stretch of the game the player is in, such as 'arrival'. See phase.

picture

A layered picture with hotspots on a scene or a location, a PictureDef of layers each shown while its when holds, and hotspots that take a choice or send a command. See Media.

plugin

A package that adds conditions, effects, commands, state, a view and content to the engine, such as the calendar or the shop. See Plugin API and How plugins work.

point

A { point } block, written point(), a place in a flow that a jump can go to. See Flows.

prose key

A line kept in content's prose table and read by key, for a line several scenes share, a set drawn at random, or a line a mod rewrites by key. See Prose.

protagonist

A unique entity the player plays, chosen with the you effect, such as one of two siblings taking turns. See you and Someone and Played.

provider

A plugin member that answers a question and changes nothing, named by its noun, such as guard, label, scene or view. See Plugin API and How plugins work.

receiver

A plugin that keeps things, such as the inventory or the wardrobe, which the receive and release effects and the owned condition ask. The engine keeps no record of who has what itself. See Receivers.

references

The ids a condition, effect, command or plugin's content names, which the content checker resolves. See A plugin's content checks.

registries

The interfaces a plugin or the game augments to type its calls by full name, its queries' answers, its view and its traits, such as ConditionRegistry and TraitRegistry. See Declaring a plugin's calls.

render

The work a UI or the engine's view does to turn the state into a screen. See Start your own UI.

Result

The answer of a call that can fail in a way its caller should expect, { ok: true, value } or { ok: false, reason }, never a throw. See Result.

roll

A dice roll the roll effect makes, seeded from the save, its total kept in the kv store under its key. A check is a roll with a target, against. See Rolls.

room

The screen shown while no scene is open, a provider's RoomScene. With the places plugin, it shows the location the player is at. See Turns, scenes and the room.

rules

The game's own code, a GameRules of hooks, providers and the calls content makes as game/<name>, given on the base. See Content, packs and the base.

save

A stored state with its metadata, in a slot of the save store. See Saves.

scene

A screen of the story with a title, a body and choices, declared in content's scenes. See DataScene and Turns, scenes and the room.

screen

screen(state, game), one state rendered once, before the view words it for a UI. The React UI's title page and settings are pages, never screens.

section

In the React UI, a titled Section of a layout that folds or opens in a dialog. See the React UI.

show

The player's side of the screen. Code renders the state, and the screen shows the result to the player.

showcase

The example game in examples/showcase, titled Small Town, which uses every feature. See Examples.

snapshot

The runner's RunnerSnapshot, every value a UI renders (the view, settings, backlog, undo and redo, saves and helpers' reports) in one value.

someone

Who content gives a thing to, takes it from or asks about: 'player', 'you' or a unique entity. See Someone and Played.

speech

A spoken line written under who says it by id, @ava: "…" in prose or say('ava', words) in a flow. The view shows the speaker's name from the entity. See Prose.

stage

A step of a quest, and only that. See the quests plugin.

stat

A number the game declares, the player's or each entity's of a kind, kept within its range. See StatDef.

state

One game in progress, a plain object that is the save. See GameState and State, commands and the view.

state intake

loadState, the one way a state from outside, such as a save, comes into play, carried forward by the engine's, plugins' and game's migrations.

state slice

A plugin's own part of the state, at state.plugins[id]. See Plugin migrations.

story

In the React UI, the main column of the layout. See the React UI.

storylet

A scene marked to be drawn at random from a set, with weights and limits. See Storylets.

storyline

A thread of the story, open or closed, with its own kv store. See Storylines.

tag

A word on an entity or a kind that content selects by, such as fruit. See Entities.

thing

An entity the player can have or collect, such as a sandwich, a note or a photo, kept by a receiver or in kv keys. See Entities, things and traits.

timer

A named countdown in real time, declared in timers with its milliseconds and the effects that run when it runs out, and run down only by tick commands. See Timers.

title

The heading of a scene, a page or a minigame. A thing has a name.

trait

A named piece of data an entity carries, written on its kind, on the entity or in a traits table, and read with traitOf. A trait with a / in its id is a plugin's. See Entities and Entities, things and traits.

trigger

Effects that run by themselves after a command once a condition holds. See Triggers.

turn

The engine's only clock, a count that a turn effect moves on. The game decides how long a turn is. See turn and Turns, scenes and the room.

UI hints

Presentation hints in a ui field on a scene, choice, block, action, stat, kind, entity or the game, carried to the view as written and given meaning only by a UI. See UI hints and Why IFLoom works this way.

UI piece

A piece of a UI's own inside a line of prose, [[ui:name|words|arg]], which the view carries as a ui span for a UI to render. See Prose.

variants

A named set of lines, one drawn at random each time it's shown. See VariantMember.

view

The value every UI renders, built from the state by view, worded and free of spoilers such as a choice's effects. See State, commands and the view.

words in place

The words a player reads, written in the field that shows them, such as a text() block, a label or a reason. See Prose.

words table

A pack's words, other words for the fields a player reads, by key, such as action.wait.label. A translation is one pack with it. See The words table.

you

The one the player is playing now, the protagonist the you effect chose, else 'player'. See state.you.

Last updated on

On this page