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!