设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 70|回复: 0

[转载发布] GoldGranter System Plugin

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    7959

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    29925
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    38778

    灌水之王

    发表于 3 天前 | 显示全部楼层 |阅读模式
    Short story
    Hi. I've created my first Plugin that provides a good service for my project, so I thought I'd share it in case it might be useful for others.

    I'm working on a bit rts style project where gold and other resources are given to the player continuously. I couldn't implement this properly with simple events and scripts, so I decided to make it in the form of a plugin.

    Technically, this is how the first standalone plugin for my project was born, which I call "GoldGranter".

    Version: 1.3
    Introduction

    This plugin gives the player a specified amount of gold, continuously, based on a set interval.

    You can optionally specify restrictions on which maps only, or which Switcher can activate/deactivate the process, and you can also specify whether or not to start receiving it at the beginning of the game. If you want you can also set SE sound which will play when gold is received.

    You can opcinally set whether you get the gold when you are in the menu, or in battle, or when there are dialogs.


    In addition you can set the maximum amount of gold a player can get (how much he can have maximum), if you set it to 0, it will be set to default or it will take into account the pseudo limitation of another plugin. This is to try to avoid plugin conflicts.

    In addition to this, you can also set a starting gold for the player.

    Also, the gold can be displayed in a window (optional), so you don't have to go to the menu to see how much you have. This works with active synchronization, any gold increment or decrement will be updated immediately.

    Display a notification when a player has had gold added or taken away. (optional).
    New Encounter gold control system - You can decide during encounters what happens

    • You pay + you fight
    • You pay, but you don't fight
    • You only fight if you don't have enough money (no money loss)
    You can set the amount and whether you want to use this system.


    Several Plugin commands available:

    StartGoldGiving (cant overwite the switcher at the moment)
    StopGoldGiving
    SetGoldAmount 500 (just change the number value)
    SetMaxGold 1000 (just change the number value)
    AddMapID 4 (will not owerwrite exiting maps) (just change the id, if multiple use comma separate like 1,10,20)
    ClearAllMapIDs
    EnableNotifications
    DisableNotifications
    SetGoldInterval 30 (just change the number value)
    HideGoldScreen
    ShowGoldScreen

    At the moment only one scrit calls can use:

    getGoldInterval() you can use like getGoldInterval() > 3 for the conditional branch. (this just example operation)
    Dynamic message codes:
    /g[5] where the g = the amount of gold that player have, and the [5] where can add color to the text.

    /in[2] where the in = the interval when the player gain a gold, and [2] where can add color to the text.

    /am[5] where the am = the amount of gold that player will gain, and the [5] where can add color to the text.

    Known bug:

    Currently the Startergold plugin command does not start the process if Switcher activation is configured. (this means that it cannot be started by plugin call, only with Swicther (but only if set).

    Download & other
    Download and instructions can be found on Github. I'll make a proper simple tutorial for it later, but I think it's easy to use.
    For the sake of consistency, please report any bugs found on github in the Issue section (I'm sure I'll catch them sooner there).

    You can also search on Discord if you have a question:
    Discord: lonsdale201

    Terms and conditions
    Use it in your project, hobby or commercial version. But you may not sell, resell or in any way distribute my plug-in, or mention that you made it.


    Download:


    GitHub - Lonsdale201/rpg-maker-mv-GoldGranter: This RPG MAKER MV - plugin can modify the gold system with various way.

    This RPG MAKER MV - plugin can modify the gold system with various way. - Lonsdale201/rpg-maker-mv-GoldGranter

                                            github.com                               






    本贴来自国际rpgmaker官方论坛作者:Lonsdale处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/goldgranter-system-plugin.158581/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-1 04:46 , Processed in 0.133277 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表