Early development: IFLoom can change until 1.0. What's stable
IFLoom
First-party plugins

First-party plugins

Every first-party plugin, what it adds and the plugins it cooperates with.

Writing a plugin of your own? See Plugin API.

A plugin adds a whole system to a game, with its own state, conditions, effects, commands and view, on top of the engine's turns, scenes, stats and entities. The first-party plugins are packages in the IFLoom repository, each its own package with @ifloom/engine as a peer dependency. How plugins work explains how they are built, Add a plugin installs one, and Create a game starts from the showcase with every plugin wired up.

In the showcase: examples/showcase/src/game.ts, whose plugins list holds every plugin on this page.

Plugins

Each package's page documents its factory, its content, its calls and its view.

KeyMeaning
Calendar@ifloom/plugin-calendar splits a day into periods and a week into days, adds sleep and an optional curfew, and sets whether a turn is a period, a day or a week.
Places@ifloom/plugin-places adds locations with exits and actions, walking between them, things lying in them, and where the player is.
Cast@ifloom/plugin-cast adds characters with schedules, who is here, talking and calling, with stats such as a friendship kept on each character.
Quests@ifloom/plugin-quests adds quests whose stages are done by conditions, with tracking and news.
Statuses@ifloom/plugin-statuses adds timed statuses that change what stats read while they last and run effects as they start, each turn and as they end.
Achievements@ifloom/plugin-achievements adds achievements earned by a condition or an effect, secret ones, progress counts, and a record in the profile.
Inventory@ifloom/plugin-inventory adds using, dropping and giving away the things the player holds.
Shop@ifloom/plugin-shop adds vendors that sell things for spendable stats, with stock, restocking, selling back and seeded daily discounts.
Jobs@ifloom/plugin-jobs adds jobs with hiring requirements, shifts that pay a wage, promotions, missed shifts and firing.
Generators@ifloom/plugin-generators makes entities from templates that draw each field from a pool, a range or a fixed value, seeded so a replay makes the same ones.
Wardrobe@ifloom/plugin-wardrobe adds slots, the wearable things that go in them, and what each body has on.
Messages@ifloom/plugin-messages adds channels and threads of messages that arrive when the story allows, with replies that work as choices.
Feed@ifloom/plugin-feed adds feeds of posts, the player's own posts, likes and comments.
Devices@ifloom/plugin-devices adds devices with apps built from sections, badges, and opening an app without leaving the room.
Unlocks and cheats@ifloom/plugin-unlocks adds codes the player enters, checked against a slow hash, which unlock choices and encrypted packs, and cheats that work in any scene and through any lock, refused until a condition holds if the game says so, with a log of each use.
Debug@ifloom/plugin-debug adds testing commands that ignore locks, for development builds only.

A phone is no plugin of its own. A game builds one from devices, messages and feed in its content, as Build a phone shows. Plugins other people have written are on Community plugins.

cooperates

A plugin works with another only when the game has both, and names it in its cooperates. No first-party plugin requires another. Make plugins work together shows the pattern for a plugin of your own.

KeyMeaning
CastAsks places where the player is, and its schedules read the calendar's conditions. Without places, nobody is ever here.
ShopKeeps a vendor's opening hours with the calendar and stands a vendor at a location with places.
JobsPuts shifts on the calendar's weekdays and periods, takes its time, and sets each workplace with places.
InventoryRuns places/put for a dropped thing, so it lies where the player is. Without places, a dropped thing is gone.
CheatsNames unlocks/has in a supporter-only cheat's blocked. Without unlocks the condition is false, so the cheat stays refused.
DebugSets the calendar's clock with debug/time and moves the player with debug/go.
Messages, feed and devicesShow the cast's names and faces, and a device's contacts section lists the characters the player can call. A device's app can show a messages channel or a feed by name.

The shop, the wardrobe and the inventory never name each other to hand a thing over. The shop gives a bought thing with receive, and the wardrobe and the inventory are receivers, each keeping its own things and asked in the game's receivers order. One scarf can carry a shop good's entry and the wardrobe's wardrobe/wearable at once.

Last updated on

On this page