GAME SYSTEMS

Battle system

Statistics, elements, monsters and their AI, troops, statuses, random battles, and testing battles.

The video tutorial for this page is coming later. Subscribe to the RPG Paper Maker YouTube channel to see it as soon as it is out.

RPG Paper Maker comes with a complete turn-based battle system: the heroes face a troop of monsters on a battle map. This page explains how to set it up. For battles directly on the map (like in an action RPG), see Action battle system.

doc58.png

Battle system settings#

Most general settings are in Systems manager > Battle system.

doc59.png

  • Common statistics: HP, MP, attack, level… Each has a Name, a Script abbreviation (used in formulas: u.atk; keep it lowercase), and is either Fix (one value) or Bar (a value and a maximum, like HP).
  • Statistic associated to level and to exp: which statistics are the level and the experience.
  • Elements: fire, ice… with a name, an icon, and how efficient each element is against the others (×1.0 by default).
  • Common battle commands: the choices shown when a hero acts (Attack, Skills, Items, Defend, Escape…). Each one is a skill.
  • Common equipments: the equipment slots (weapon, shield, helmet…). Weapons kind and Armors kind: kinds of weapons and armors, and on which slots they can be equipped.
  • Battle maps: maps (usually in the Battle maps folder) with the position of the battle's center.
  • Formulas (JavaScript):
    • Is dead: when a character is considered dead (u is the character).
    • Critical influence: the damage after a critical hit (damage is the damage before).
    • Heroes battlers center offset / offset and Troops battlers center offset / offset: where heroes and enemies stand, around the battle center and next to each other (i is the index).
  • Musics: Battle, Level up, Victory (change them during the game with Change battle music / Change victory music).
  • Ally dead win exp: dead heroes still win experience.
  • Camera move in battle, and the Status windows size (Statistics width, Window height).

Monsters#

Data manager, Monsters tab. A monster has the same options as a hero (class, graphics, statistics…), plus:

  • Rewards: the Experience and Currencies won (by level), and Loots: an item, weapon or armor, a Number, a Probability, and the monster levels for which it applies.
  • Actions: what the monster does on its turn.

doc60.png

Each action has:

  • Priority: a higher priority is chosen more often. Probability shows the resulting chances.
  • Target: Random, or Weak enemies (the ones with the lowest HP; keep the hp abbreviation for this).
  • Action: Use skill ID, Use item ID (with a Number max of uses, below 0 for unlimited) or Do nothing.
  • Conditions: only when the round value is something, a statistic is at some percentage, a variable has a value, the monster is under effect of a status, or a script returns true.

Troops#

Data manager, Troops tab. A troop is a group of monsters that the heroes fight.

  • Monsters list: each monster with its Level. Hidden monsters appear later (with Display / Hide a battler). Specific position (according to center) places one precisely.
  • Reactions: commands that run during the battle (dialogs, a boss transforming, reinforcements…).
    • Conditions: a Number of rounds (for example 1 + 2x runs on rounds 1, 3, 5…), heroes or monsters under effect of a status or having a statistic value.
    • Frequency: One time, Always, or at the begin or end of each round (heroes and monsters all acted), each phase (one side acts: any, ally or enemy), or each turn (one battler acts: any, ally or enemy).
  • Test: try the battle right away. Choose the heroes, their Level and Equipments, and the Battle map, then Test.

doc61.png

Statuses#

Data manager, Status tab: poison, sleep, KO, stronger attack…

  • Icon, Animation ID (played in loop on the character) and Priority (which animation and battler pose show when there are several statuses).
  • Battler position: the battler pose used while the status applies (the dead pose for KO, for example).
  • Restrictions: Can't do anything, Can't use skills, Can't use items, Can't escape, or attacks a random target, ally or enemy.
  • Release conditions: Release at end of battle, Release with a chance after being attacked, Release at the start of turn (with chances per turn), Release if dead.
  • Messages: when an ally or enemy is affected, when it is healed, and while it lasts. [target] is replaced by the target's name.
  • Effects: applied at the start of each turn (poison damage…), and Characteristics while it lasts (a buff…).

Random battles#

In the map properties, Battles side:

  • Battle map ID: where the battle happens (or the tileset's battle map).
  • Random battles: the troops that can be met, each with a Priority (the resulting Probability is shown) and where: Entire map or some Terrain numbers only.
  • Number of steps after next battle and Variance (%): how often battles start. 300 steps with 20% variance means a battle every 240 to 360 steps.

You can also start battles yourself with the Start a battle command, for bosses and story fights.

Heroes in battle#

Heroes' skills, items and equipment are set in the Data manager. The window skin defines the damage numbers and the target arrows (Window skins), and the Limit rectangle of battler images places the numbers and status icons (Resources).

Next: Main menu.