A downloadable plugin

Buy Now$5.00 USD or more

Hi all,

The Mailbox plugin adds a mailbox system to your game. With it, you can send the player mail via plugin commands, and the player can check the mailbox scene to read the mail. Mail can have images mixed in between the text similar to how a custom entry works in my Encyclopedia plugin.

Mail can have attachments which the player can take, which can be either items, weapons, armor, or currency (including support for CGMZ Currency System currencies). Attachments can be collected only once, and then they will no longer display on the mail.

In the mailbox scene, players can mark mail as read which can display a separate mail icon next to the list window. Each mail can have its own separate mail icon(s) for read/unread mail. You can use this to coordinate mail types, such as maybe romantic letters in your game are colored red while some other type of letter is colored a more standard brown color. Mail is also sorted by order received, with the most recent pieces of mail being shown first in the list. When opening a letter, you can play a sound effect.


INTEGRATIONS
[CGMZ] Toast Manager - You can show toast windows when mail is received, and when the player collects an attachment. Each toast window is customizable.

Want additional features not already present/listed above? Make suggestions on the Patreon Post, this Itch.io page, or in my discord under the #suggestions channel!

PLEASE READ BEFORE PURCHASING:

Please be aware that you can access this as well as all of my other Alpha plugins for $5 on my Patreon: https://www.patreon.com/CasperGamingRPGM

This is posted to Itch.io since some people only use Itch and are not aware my Patreon and all of my beta/alpha plugins exist, or want to have everything in one convenient location (itch.io), or do not want to do a monthly subscription.

Casper Gaming's Beta/Alpha plugins are treated as an "early access" and will eventually be free for everyone once they are fully released, though this process can take months/years. By purchasing in beta/alpha, you are able to provide early feedback/suggestions which are more likely to make it into the final fully released plugin.

Please see terms of use here: Terms of Use

Requires CGMZ Core plugin: CGMZ Core

Happy RPG Making!

Purchase

Buy Now$5.00 USD or more

In order to download this plugin you must purchase it at or above the minimum price of $5 USD. You will get access to the following files:

letter-brown.zip 11 kB
CGMZ_Mailbox.zip 9.8 kB

Development log

Comments

Log in with itch.io to leave a comment.

如何删除已阅读的电子邮件

Hi, deleting mail from the mailbox is not yet in the plugin, it will be in a future update

(1 edit)

Hi! I've just purchased this plugin and love it very much. I know it is still in early stages but I wondered if there was any way a switch or a variable could be activated when a letter is read? Thank you!


Also, where can I get the image you have used for the envelope? Thank you!

Hi, you could run the script command to set a switch to ON/OFF depending on if the letter was opened:

const letterId = "your_id";
const switchId = 1;
$gameSwitches.setValue(switchId, $cgmz.getMailboxLetter(letterId)._isRead);

I can attach the envelope images later to the downloads.

Deleted 264 days ago

Thank you so much for this! In your code I noticed it records how many letters have been received and how many in total are read, is it also possible to put these into switches/variables as a script?

Hi, I have added the envelope images to the downloads for this.

You can get the total amount received with the following script

$cgmz.getMailboxReceivedLetters().length

And the read with the following script:

$cgmz.getMailboxReadLetters().length

You would put these in the Control Variables -> script box

Again, thank you so much for this!