Language Guide

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. ...

May 13, 2024 · Matt Mower

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. ...

March 16, 2024 · Matt Mower

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. ...

March 16, 2024 · Matt Mower

Rez Cookbook

The following is a guide to some of Rez’s features and common things you may want to be able to do. Including custom Javascript To include a custom Javascript file into your game add the .js file to your assets folder and a corresponding @asset element to your game. Use the $js_runtime attribute to tell Rez that it should be included in the runtime.js file. @asset custom_js { file: "custom.js" $js_runtime: true } ...

March 16, 2024 · Matt Mower

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 ...

March 16, 2024 · Matt Mower

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 ...

March 16, 2024 · Matt Mower

<!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.4 on Fri Dec 06 2024 19:48:22 GMT+0000 (Greenwich Mean Time)