Table of Contents

Pawn

A pawns is an entity that can fight into an arena (player, sidekick, enemies, etc). It is a resource and must be placed in the Resource folder.

It contains several scripts:

PawnBehavior

The pawn behavior is the main script of every pawn as it is the one containing an update method. All the other scripts only contains data.

Properties

PawnStatistics

This scripts contains the statistics of the pawn used to compute the damages of attacks and the defense when being attacked.

Properties

Formula

To compute the damages done with a physical attack :
DMG = (Atk * DamageFactor) + (WAtk + Ran(-WAtkR, WAtkR)) - Def
with:

Pawn UI

Contains the ui information. Not much for now since it only contains a sprite to show in the turn history.

Pawn Actions

Stores the descriptions of all the actions available during a fight. This is where you choose what animations to play to move, how much to move, etc. This is a visual description of the actions.

The descriptions are Action Runner. They contain information about what the pawn has to do in order to make an action. This is only visual. It does not involve anything about the statistics of an attack or the consequence of using an item. Action Runner contains :

TODO

Some reorganizations of all those information could be done: