ODUE_discord
A plug-in for integrating your game with Discord Rich Presence (A.K.A Game SDK)
https://www.youtube.com/embed/axObkfvB9GA
FEATURES:
- The only Discord RPC plugin for MV/MZ available currently
- Highly customizable
- Edit the details in-game
TODO:
- Allow replacing text temporarily while in battle
GUIDE:
Requirements:
You have to use nwjs 0.49.2 or higher for this to work!
If you don't know how to update nwjs, check
this awesome guide!
Download:
https://github.com/00due/Discord-RPC-for-RMMZ/ (Yes, the link is the same for MV version)
After downloading, extract the `ODUE_discord_MV.js` file into `<your project's folder>/js/plugins`
Initial setup:
0.If you don't have Node.js installed, install it from
https://nodejs.org/en/download
1.Open the folder of your game (where you have your game.rpgproject in) and open CMD or powershell there.
2.Run the command `npm install discord-rpc`
---If you're getting an error Command not found or something like that, make sure you have Node.js installed!---
3.Go to
https://discord.com/developers/applications and create your application. Click 'New application' and give it your game's name.
After creating it, open the Rich Presence --> Art assets tab, and upload the large and small images.
---Recommendation: The large image is typically the logo of your game.---
---WARNING: The art assets have about 10-15 minutes delay until they become visible.---
4.Copy the Application ID from the 'General information' tab, and paste it into the 'Discord application ID on this plugin.
5.Fill the other plugin parameters with anything you want.
REQUIRED TO FILL:
Application ID, Large picture, Large picture text, Row 1
Plugin commands for MV:
Code:
- rpc_replaceRow1 <text to replace with>
复制代码
- Replaces row 1
Code:
- rpc_replaceRow2 <text to replace with>
复制代码
- Replaces row 2
Code:
- Save both rows for later use
Code:
- rpc_restore <row1 / row2>
复制代码
– Restores a saved row
Code:
- Enables the second row
Code:
- Disables the second row
Examples:
Code:
- // On battle start
- rpc_saveRows
- rpc_replaceRow1 Fighting a monster
- rpc_disable row2
- // On battle end
- rpc_restore row1
- rpc_enable row2
复制代码
WARNING: After exporting for MV:
Move the folder node_modules from www/ folder to the folder where the executable is. Otherwise it can't find the node module.
Terms of use:
1. You must give credit to ODUE
2. You can freely edit this plugin to your needs. However, you must still credit me.
3. This plugin is free for commercial and non-commercial projects.
4. This plugin is provided as is. I'm not responsible for anything you make with this plugin.
5. You can send feature requests to me on platforms such as Reddit (to u/SanttuPOIKA----).
However, I have no obligation to fulfill your requests.
本贴来自国际rpgmaker官方论坛作者:ODUE处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/mv-mz-discord-rich-presence-integration-plugin.160185/