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

[转载发布] 全新傻瓜式任务系统

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

    连续签到: 1 天

    [LV.7]常住居民III

    9100

    主题

    890

    回帖

    7万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 2024-4-19 21:55:43 | 显示全部楼层 |阅读模式
    升级版
    先看截图










    代码


    RUBY 代码
    RUBY 代码
    RUBY 代码
    RUBY 代码


    赠送:超级命令窗体脚本


    RUBY 代码
    [code]#==============================================================================
    # ■ Window_Command    超级命令窗体的类。
    #------------------------------------------------------------------------------
    #   脚本作者:薄凉看客,转载或使用请保留此信息。
    #==============================================================================
    =begin

    在生成Command.new时后边可以有第三个参数——一个数组(另附加一个图标文件名数组)

    数组详细说明(数组参数是非必须的,可有可无):
    [0:列数, 1:X坐标, 2:Y坐标, 3:Z坐标, 4:未选中字体大小, 5:选中字体大小,
    6:未选中字体时的颜色, 7:选中字体时的颜色, 8:未选中时的字体名, 9:选中时的字体名,
    10:项目无效化时的字体名, 11:项目无效化1, 12:项目无效化2, 13:项目无效化3,
    14:项目无效化4, 15:窗口的不透明度, 16:背景的不透明度, 17:内容的不透明度,
    18:是否显示图标]
    注:如果需要显示图标,需要再加一个数组参数(非必须)来指定图标文件名(
    当然也可以使用默认图标,数组内指定的图标会按012345的顺序依次显示,而
    且不管你有几个选项,你都必须指定6个图标名,否则按默认处理)。

    举个例子:

    #---------把Scene_Menu的26行脚本替换为以下内容,就能看到效果---------

    array_menu = []
    array_menu[0] = 6#让选择项横着选
    array_menu[1] = 0#修改命令窗体的X坐标
    array_menu[2] = 100#修改命令窗体的Y坐标为100
    array_menu[4] = 15#修改命令窗体未选中时的字体大小为15
    array_menu[5] = 22#修改命令窗体选中时的字体大小为22
    array_menu[3] = 500#修改Z坐标,保证命令窗体显示在最上方
    array_menu[11] = 5#让5号选择项(即结束)无效化
    array_menu[15] = 150#修改窗体的不透明度
    array_menu[16] = 150#修改背景的不透明度
    array_menu[17] = 150#修改内容的不透明度
    array_menu[18] = true#给命令窗体显示上图标
    icon_commands = ["041-Item10.png", "050-Skill07.png",
    "019-Accessory04.png", "045-Skill02.png", "036-Item05.png",
    "046-Skill03.png"]#这是指定图标文件名
    mmand_window = Window_Command.new(640, [s1, s2, s3, s4, s5, s6],
    array_menu, icon_commands)

    #---------把Scene_Menu的26行脚本替换为以上内容,就能看到效果---------

    =end
    class Window_Command < Window_Selectable
      def initialize(width, command, commands = [], icon_commands = 0)
        if icon_commands = 0or icon_commands.class != Array
          icon_commands = ["041-Item10.png", "050-Skill07.png",
          "019-Accessory04.png", "045-Skill02.png", "036-Item05.png",
          "046-Skill03.png"]
        elsif icon_commands.class == Arrayand(icon_commands[0] == nilor
          icon_commands[1] == nilor icon_commands[2] == nilor
          icon_commands[3] == nilor icon_commands[4] == nilor
          icon_commands[5] == nil)
          icon_commands = ["041-Item10.png", "050-Skill07.png",
          "019-Accessory04.png", "045-Skill02.png", "036-Item05.png",
          "046-Skill03.png"]
        end  
        if commands.class != Array
          commands = []
        end  
        if commands[0] == 1or commands[0] == nil
          if commands[1] == niland commands[2] != nil
          super(0, commands[2], width, command.size * 32 + 32)
          elsif commands[1] != niland commands[2] == nil
          super(commands[1], 0, width, command.size * 32 + 32)
          elsif commands[1] == niland commands[2] == nil
          super(0, 0, width, command.size * 32 + 32)
          elsif commands[1] != niland commands[2] != nil
          super(commands[1], commands[2], width, command.size * 32 + 32)      
          end
        else
          if commands[1] == niland commands[2] != nil
          super(0, commands[2], width, 64)
          elsif commands[1] != niland commands[2] == nil
          super(commands[1], 0, width, 64)
          elsif commands[1] == niland commands[2] == nil
          super(0, 0, width, 64)
          elsif commands[1] != niland commands[2] != nil
          super(commands[1], commands[2], width, 64)
          end
        end
        if commands[3] != nil
        self.z = commands[3]
        else
        self.z = 100
        end
        @command = command
        @item_max = @command.size
        if commands[0] != nil
        @column_max = commands[0]
        else
        @column_max = 1
        end
        if commands[4] != nil
        @size1 = commands[4]
        else
        @size1 = 22
        end
        if commands[5] != nil
        @size2 = commands[5]
        else
        @size2 = 22
        end
        if commands[6] != nil
        @color1 = commands[6]
        else
        @color1 = normal_color
        end
        if commands[7] != nil
        @color2 = commands[7]
        else
        @color2 = normal_color
        end
        if commands[8] != nil
        @name1 = commands[8]
        else
        @name1 = "黑体"
        end
        if commands[9] != nil
        @name2 = commands[9]
        else
        @name2 = "黑体"
        end
        if commands[10] != nil
        @name3 = commands[10]
        else
        @name3 = "黑体"
        end
        if commands[11] != nil
        @disable_item1 = commands[11]
        else
        @disable_item1 = -1
        end
        if commands[12] != nil
        @disable_item2 = commands[12]
        else
        @disable_item2 = -1
        end
        if commands[13] != nil
        @disable_item3 = commands[13]
        else
        @disable_item3 = -1
        end
        if commands[14] != nil
        @disable_item4 = commands[14]
        else
        @disable_item4 = -1
        end
        self.contents = Bitmap.new(width - 32, @item_max * 32)
        if commands[15] != niland commands[15] >= 0and commands[15] = 0and commands[16] = 0and commands[17]

    本帖子中包含更多资源

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

    x

    帖子地址: 

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-10-20 06:17 , Processed in 0.084692 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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