Ritournelle & Sottine ChessGame Plugin RPG Marker MV-MZ

Official plugin video

Chess Plugin for RPG Maker MV

Adds a full chess game against an AI to your project. You can launch it from the main menu, or from an NPC, an event or an item. All the messages are yours to write, so you can use them for story, clues or secret codes.

License

use in your RPG Maker MV projects, including commercial ones. You must credit Erophenice in your game’s credits. Reselling the plugin itself, or redistributing it as your own work (rebranding, removing credit), is prohibited.

What you get

Full chess rules (castling, promotion, check, checkmate, stalemate).
An AI with 5 difficulty levels, from Easy to Hard.
Custom board image, custom piece images (PNG) and custom background.
Everything is set in the Plugin Manager: AI color, difficulty, board position, message duration and all texts.
A victory switch that turns ON when the player wins.
Works on MV .

Story tip

Change the Thinking Text to your NPC’s name (“The Wizard is thinking…”) and the opponent feels like a real character. Same idea for the other messages:

Start: “A mysterious traveler challenges you to a game.”
Victory: “The king falls. You glimpse a truth: ‘The shadow is not your enemy.’”
Defeat: “Checkmate. The traveler smiles. ‘You will understand in time…’”
Draw: “A stalemate. Neither wins, neither loses.”

Installation

  1. Put ChessGame.js in js/plugins/.
  2. Enable it in the Plugin Manager.
  3. Adjust the parameters. “Chess” appears in the main menu.

IMPORTANT: for every piece image parameter (WhiteKing Image, BlackPawn Image, etc.), if the field contains “================”, delete it and leave it empty, or put your own image name without extension. Otherwise the game crashes because “================.png” does not exist.

Script calls

Default: startChessGame();
Custom: startChessGame({ aiColor: ‘black’, aiDepth: 4, background: ‘forest’ });
With victory switch: startChessGame({ aiDepth: 3, winSwitchId: 10 });

Victory switch

Set the switch ID directly in the Script Call of each event, so events on the same map never interfere. If the player wins by checkmate, the switch turns ON. If they lose or draw, it stays OFF. Use it as a condition in your event (or on a second page) to give an item, open a passage, teleport the player, etc. The switch must exist in your database, and the parameter is optional.

When launched from an event, finishing the game or pressing ESC brings the player back to the map.

Parameters

Menu Command Name: text in the main menu (default: Chess).
AI Color: white or black (default: black).
AI Depth: 1 to 5 (default: 3).
Thinking Text: shown while the AI thinks (default: AI is thinking…).
Message Duration: 1 to 300 seconds (default: 3).
Start, Victory, Defeat, Draw Message: use \n for line breaks.
Background Image: filename without extension in img/pictures/. Empty = black background.
Board Offset X / Y: in pixels (default: 0).
Piece images: filename without extension in img/pictures/. Empty = default pieces.

How to play

Click a piece (yellow), then a green square to move. The AI answers after your move. ESC exits at any time.

1 Like