Introduction Rez is a language, compiler, and runtime for writing choice-based interactive fiction/RPG/simulation games based on HTML, Javascript, CSS, and — optionally — graphics, audio, and movie files. Rez started as a quick alternative to Twine for an author who had become frustrated with Twine. Twine describes itself as an "open source tool for telling interactive, nonlinear stories." It makes it relatively easy for those with almost no development experience to get started and create a choice-based game. ...
Rez Authors Guide
Chapter 1: Creating Your First Game Let’s start right at the beginning. We assume you have installed Rez and have an open terminal window in a folder where you’d like to create a new game. > rez new first_game This creates a set of folders and puts some initial content into them. The only thing we really need to concern ourselves with is the contents of the src folder. In that we should find a file called first_game.rez. That is the main source file of our game. ...
Rez Behaviour Catalog
$sequence The $sequence behaviour takes two or more children and, when executed, it executes each of its children in turn. If any child fails then $sequence will stop at that point and fail. If all the children suceeed then the $sequence will succeed. The effect is like a boolean and expression. Sequences are often a set of conditions followed by a set of actions. Metaphorically a $sequence is like a recipe, a set of steps that should be following from start to finish. If you get half way through a recipe and are missing a key ingredient, the recipe cannot be finished. ...
Rez Cookbook
The following is a guide to some of Rez’s features and common things you may want to be able to do. Using @object Rez defines a number of generally useful elements like @actor, @item, @inventory, @scene and so forth. These elements have built-in behaviours designed to be useful but flexible. For example @item and @inventory can be used to define much more than physical objects. You could have an inventory representing things different actors know about and use an item for individual topics/thoughts. Or items could represent spells in an inventory spell-book. The @item/@inventory elements are flexible enough to cover a range of container/containment situations. ...
Rez Elements & Directives Catalog
Rez includes many elements that you will combine to create your game, starting with the @game element that wraps the whole thing. All elements in a Rez source file are prefixed by @. A few Rez elements like @game and @zone contain other elements but most do not. Elements Elements describe in-game concepts. Actor Asset Behaviour Card Effect Faction Game Group Inventory Item List Object Plot Relationship Scene Slot System Timer ...
Rez Filter Catalog
Filters are used in template expressions to transform the expression before it gets rendered. append String: String ⇒ String Appends a string to what precedes it which is assumed to be a string already. Example ${"Sam" | append: " lives here."} => "Sam lives here" asset_tag String ⇒ String Example ${"asset_1" | asset_tag} asset_path String ⇒ String Example ${"asset_1" | asset_path} bsel Boolean: List ⇒ Any Example camelize String ⇒ String ...
<!DOCTYPE html> Rez Rez A system for creating choice-based HTML games & interactive fiction. ...
<!DOCTYPE html> JSDoc: Home Home HomeNamespacesbasic_objectClassesRezActorRezGameRezInventoryGlobalRezItem Documentation generated by JSDoc 4.0.3 on Mon Sep 02 2024 17:52:01 GMT+0100 (British Summer Time)