设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
返回列表
+ 发新帖
查看: 76|回复: 0

[转载发布] 难度脚本的使用方法

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    5 天前
  • 签到天数: 230 天

    连续签到: 1 天

    [LV.7]常住居民III

    9117

    主题

    940

    回帖

    7万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 前天 18:51 | 显示全部楼层 |阅读模式
    问一下这难度脚本怎么使用,都是英文的看不懂,试了下完全找不到方向


    [code]#_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
    #_/     ◆                Battle Difficulty - KGC_BattleDifficulty Ace
    #_/     ◇                                Last Update: 2008/05/09                              ◇
    #_/     ◇                                Converted: 2012/09/06
    #_/     ◆                          Translation by Mr. Anonymous                            ◆
    #_/     ◇                          Converted by Tsukihime
    #_/----------------------------------------------------------------------------
    #_/  This script adds battle difficulty settings to your game.
    #_/============================================================================
    #_/  Installation: Insert below KGC_ExtraDropItem and KGC_CustomMenuCommand.
    #_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

    #==============================================================================#
    #                                                       ★ Customization ★                                                                #
    #==============================================================================#

    module KGC
    module BattleDifficulty
      #                                        ◆ Difficulty Variable ◆
      #  Change the variable the difficulty setting is stored in.
      DIFFICULTY_VARIABLE = 944

      #                              ◆ Add Difficulty Command to Main Menu ◆
      #  This toggle enables/disables the difficulty command selection to be added
      #   to the main command menu.
      USE_MENU_DIFFICULTY_COMMAND = true

      #                                       ◆ Difficulty Initialization ◆
      #  DIFFICULTY Index
      #  By default, 1 = Normal
      INITIAL_DIFFICULTY = 1

      #                                                ◆ Difficulty ◆
      #  Difficulty Format:
      #   DIFFICULTY  "Difficulty Name",
      #      :maxhp => MaxHP,
      #      :maxmp => MaxMP,
      #      :atk   => Attack,
      #      :def   => Defense,
      #      :mat   => Magic Attack,
      #      :mdf   => Magic Defense,
      #      :agi   => Agility,
      #      :luk   => Luck
      #      :param => Attack ・ Defense ・ Mat, Mdf ・ Agility, Luck (Batch Specification),
      #      :exp   => Experience,
      #      :gold  => Gold,
      #      :drop  => Item Drop Rate,
      #   }
      #  Create by the format
      #  (:atk, :def, :spi, :agi (The :param field takes highest priority)
      #  The unit is a percentile of a each item.
      #  :name is not optional
      #  An omitted item is treated as a default of 100
      DIFFICULTY = [] # Do not remove or modify this line!
      # 〜 Custom Difficulty Settings Inserted Below Here 〜
      DIFFICULTY  "简单",
            :maxhp => 80,
            :maxmp => 80,
            :param => 80,
            :cri   => 50,
            :drop  => 80,
      }  # ← Do not remove!
      DIFFICULTY  "普通",
      }
      DIFFICULTY  "困难",
            :maxhp => 150,   #150
            :maxmp => 130,
            :atk   => 120,
            :mat   => 120,
            :mdf   => 120,
            :agi   => 105,
            :luk   => 110,
            :exp   => 150,
            :drop  => 150,
      }

    end
    end

    #------------------------------------------------------------------------------#

    $imported = {} if $imported == nil
    $imported["BattleDifficulty"] = true

    module KGC::BattleDifficulty
      # Parameters
      PARAMS = [
            :maxhp, :maxmp, :atk, :def, :mat, :mdf, :agi, :luk,
            :exp, :gold, :drop
      ]

      module_function
      #--------------------------------------------------------------------------
      # ○ 難易度補正値作成
      #--------------------------------------------------------------------------
      def create_param_revs
            @@param_revs = []
            DIFFICULTY.each { |d|
              rev = {}
              rev[:name] = d[:name]
              # 一括指定を適用
              if d[:param] != nil
                    rev[:atk] = rev[:def] = rev[:mat] = rev[:mdf] = rev[:agi] = rev[:luk] = d[:param]
              end
              # パラメータ指定を適用
              PARAMS.each { |par|
                    if d[par] != nil
                      rev[par] = d[par]
                    else
                      rev[par] = 100 if rev[par] == nil
                    end
              }
              # リストに追加
              @@param_revs

    帖子地址: 

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-11-28 07:46 , Processed in 0.065894 second(s), 51 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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