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

[转载发布] [SSG] Difficulty Setting

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

    连续签到: 2 天

    [LV.7]常住居民III

    8305

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 6 天前 | 显示全部楼层 |阅读模式
    [simple Stupid Gaming] Difficulty Setting
    version 1.0.3
    by Heartbreak61​


    INTRODUCTION

    This plugin allows you to set difficulties that affects enemies stats, exp, gold, and shop price. You can choose wether to display difficulty setting on Game Option screen or not (default: on). In case you don't want to, you can switch difficulty levels using Event Plugin Command.

    Before using this plugin, please make sure that you have file Difficulties.json placed inside "data" folder of your current project. Edit your Difficulties.json to your liking. You may add or remove difficulty levels as long as you follow the pattern.


    FEATURES
    - Multiple difficulty level to your liking
    - Turn switches to on when changing difficulty level
    - Set difficulty on Option Screen​


    SCREENSHOT
    N/A​


    HOW TO USE

    Put Difficulties.json inside your data folder, and put SSG_DifficultySetting.js inside your js/plugin folder. Open Diffifficulties.json using any text editor and you will find something like this
    [ // <- don't touch this    {        "name": "Very Easy",        "mhp": 60,        "mmp": 60,        "atk": 50,        "def": 50,        "mat": 50,        "mdf": 50,        "agi": 50,        "luk": 50,        "exp": 50,        "gold":50,        "buy": 200,        "sell": 200,        "switches":[1,6]    },......] // <- don't touch this
    Here's the explanation

    ~~ name ~~
    Set your difficulty level name that will be displayed on the Option Screen. Values must be a string (wrapped by quotes or double quotes sign).
    The tables is an Array. It means that the first element's ID is 0. You should make your difficulty level sorted from easiest to hardest. As it will make sense for the player when they set difficulty on the option screen

    ~~ mhp, mmp, atk, def, atk, mat, mdf, agi, luk ~~
    Set enemy's stats. Values represent percentage (100 is 100%)

    ~~ exp, gold ~~
    Set enemy's exp and gold. Values represent percentage

    ~~ buy, sell ~~
    Affect price when buying or selling items on the shop. Values represent percentage

    ~~ switches ~~
    Will specified set of switches to ON when a difficulty level applied. Switches should be declared in array (i.e. [1,2,3]). If you don't want to use this feature, just set it to [0]. Switches from other difficulty level will be turned OFF but you can have same switches declared on different difficulty level (See how I set switch 6 on difficulty 0 and 2 on the
    example table below). Please note that switches CAN'T be turned off using normal way.

    Author's Note About Switches:
    In case you don't know, you can use switches for enemy skill condition. So you can set an enemy to cast different skills on different difficulty level.



    Specific Enemy Setting
    To override the table for certain enemies, you can write this line on enemy notebox
                    Code:       
    1. <param difficulty: difficultyLevel, param, value>
    复制代码

    example: <param difficulty: 4, def, 250>

    It will set enemy's DEF on difficulty 4 to 250%. Or you can write these lines for multiple assignment
                    Code:       
    1. <enemy difficulty>difficultyLevel, param, valuedifficultyLevel, param, value...</enemy difficulty>
    复制代码

    example:
                    Code:       
    1. <enemy difficulty>0, mhp, 70 3, atk, 1503, def, 1254, atk, 2004, mhp, 400</enemy difficulty>
    复制代码


    valid arguments for enemy stats is:
                    Code:       
    1. mhp, mmp, atk, def, mat, mdf, agi, luk, exp, gold
    复制代码

    Note: default maximum stats for enemy will still be applied. For example, enemy's ATK limit is 999.


    Plugin Command
    In case you don't want to use Option Screen or you want to set difficulties via events, you can use plugin command.


                    Code:       
    1. setDifficulty Number
    复制代码

    example: setDifficulty 4


    Plugin Parameters
                    Code:       
    1. Show Difficulty OptionDescription = Show Difficulty on Option WindowDefault = true
    复制代码

                    Code:       
    1. Default DifficultyDescription = Your default starting difficulty level. This value will be replaced by game option save data.Default = 0
    复制代码

    DEMO
    N/A

    OLDER DEMOS:
    N/A

    SCRIPT
    SSG_DifficultySetting.js
    Difficulties.json



    for those who have issues "can't read property length of null", please try this
    Hotfix
    Let me know if this work because I can't reproduce your error to see wether this fix work or not.


    Thanks to estriole that inspired me to upload a test project to dropbox + my slow internet connection,
    finally I can test error about "can't read property 'length' of null". This shouldn't be a problem right now.

    FAQ
    Nothing yet

    TERM OF USE
    Free to use on both commercial or non-commercial project as long as you give credits to me.  


    CHANGELOG

    2015.11.16 ver 0.9.9
      - Finished beta version

    2015.11.26 ver 1.0.0
      - Added   : display on Option Screen
      - Added   : option to turn switches on
      - Changed : change from using Game_System to SSG_Heartbreak static class

    2015.11.27 ver 1.0.1
      - Fixed   : Attempt to fix error about not being able to read property of 'length' from null object

    2015.11.28 ver 1.0.2
      - Fixed   : Improved fix method from ver 1.0.1. Now it should work properly.
      - Fixed   : Bug that caused user to be able to set switches from another difficulty level to ON
      - Added   : Better documentation

    2015.12.10 ver 1.0.3
    - Fixed : Syntax error that caused logical flaw


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 20:43 , Processed in 0.069179 second(s), 57 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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