The Basics

Quest

Quests can be about anything in Raining Chain. For example:


Events

Events holds the logic of your quest. For example:


Triggers

Triggers tell the game engine when to trigger/call a specific event.


Maps

Maps are responsible of the map images but also tell the game engine what NPC to spawn.


Quest Variables

Used to save the player progression in a quest. They will be modified by events. Each player has its own copy of variables.


Event Functions

Most of the time, events are applied to a player in particular.
Every player (and NPC) has a unique key.
In your events, you can access the key of the player who triggered the event via the variable "key".

Click here to check the API (list of all functionalities you can use for events).


Spawning Actors

For every NPC you create, you need to mark where it spawns inside the Tiled map project.
To mark it, select the layer SPOT and places letters from the tileset #9.

Every NPC can be customized via the "actorExtra" parameter to trigger events or change appearance.
Click here for the complete list.



Quest Example #1: The Basics & Death Event

Download via Help -> Load Example -> Example #1

Logic

Variable

Events

Real Code


Quest Example #2: Switch & Block

Download via Help -> Load Example -> Example #2

Logic

Variable

Events

Real Code


Quest Example #3: Dialogue, Item & Teleporter

Download via Help -> Load Example -> Example #3

Logic

Variable

Item

Dialogues

Events

Real Code


Quest Example #4: Chest & NPC Tag

Download via Help -> Load Example -> Example #3

Logic

Variable

Item

Events

Real Code


Feedback or questions?