设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 3538|回复: 10
打印 上一主题 下一主题

[已经过期] 请问rm能做到从物品菜单中选择物品来做成分歧吗?

 关闭 [复制链接]
头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
23 小时
注册时间
2010-9-12
帖子
45
跳转到指定楼层
1
发表于 2011-5-5 20:29:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽

Lv1.梦旅人

梦石
0
星屑
50
在线时间
40 小时
注册时间
2011-5-3
帖子
28
2
发表于 2011-5-5 23:04:16 | 只看该作者
会脚本就研究Window_Selectable类吧..不然只有慢慢做了
回复 支持 反对

使用道具 举报

Lv1.梦旅人

XYGG

梦石
0
星屑
62
在线时间
115 小时
注册时间
2009-1-20
帖子
340
3
发表于 2011-5-6 13:58:33 | 只看该作者
如果是选择项的话站里有一个增加选择项的脚本的
路过……酱油……别烦我……
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
23 小时
注册时间
2010-9-12
帖子
45
4
 楼主| 发表于 2011-5-6 22:16:57 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

XYGG

梦石
0
星屑
62
在线时间
115 小时
注册时间
2009-1-20
帖子
340
5
发表于 2011-5-7 09:54:03 | 只看该作者
更多选项
累死我了,找了这么久终于找到了,不知道是不是楼主要的那个
路过……酱油……别烦我……
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
23 小时
注册时间
2010-9-12
帖子
45
6
 楼主| 发表于 2011-5-8 09:23:24 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

XYGG

梦石
0
星屑
62
在线时间
115 小时
注册时间
2009-1-20
帖子
340
7
发表于 2011-5-8 10:11:20 | 只看该作者
慕月寒霜 发表于 2011-5-8 09:23
那个工程现在下载不了了TAT

我再看看,下载个给你吧
路过……酱油……别烦我……
回复 支持 反对

使用道具 举报

Lv1.梦旅人

XYGG

梦石
0
星屑
62
在线时间
115 小时
注册时间
2009-1-20
帖子
340
8
发表于 2011-5-8 10:17:06 | 只看该作者
class Game_Temp
  attr_accessor :need_show_more
  attr_accessor :window_pos_y
  attr_accessor :choices
  
  alias old_ini initialize
  def initialize
    old_ini
    @need_show_more = false
    @window_pos_y = 16
    @choices = nil
  end
end

class Window_Message < Window_Selectable
  alias old_ref refresh
  def refresh
    if $game_temp.need_show_more
      self.y = $game_temp.window_pos_y
      self.height = 160 + 32 * ($game_temp.choice_max - 4)
      self.contents = Bitmap.new(self.width - 32, self.height - 32)
    else
      self.height = 160
      self.contents = Bitmap.new(self.width - 32, self.height - 32)
    end
    old_ref
  end
  #--------------------------------------------------------------------------
  # ● 刷新画面
  #--------------------------------------------------------------------------
  def update
    super
    # 渐变的情况下
    if @fade_in
      self.contents_opacity += 24
      if @input_number_window != nil
        @input_number_window.contents_opacity += 24
      end
      if self.contents_opacity == 255
        @fade_in = false
      end
      return
    end
    # 输入数值的情况下
    if @input_number_window != nil
      @input_number_window.update
      # 确定
      if Input.trigger?(Input::C)
        $game_system.se_play($data_system.decision_se)
        $game_variables[$game_temp.num_input_variable_id] =
          @input_number_window.number
        $game_map.need_refresh = true
        # 释放输入数值窗口
        @input_number_window.dispose
        @input_number_window = nil
        terminate_message
      end
      return
    end
    # 显示信息中的情况下
    if @contents_showing
      # 如果不是在显示选择项中就显示暂停标志
      if $game_temp.choice_max == 0
        self.pause = true
      end
      # 取消
      if Input.trigger?(Input::B)
        if $game_temp.choice_max > 0 and $game_temp.choice_cancel_type > 0
          $game_system.se_play($data_system.cancel_se)
          $game_temp.choice_proc.call($game_temp.choice_cancel_type - 1)
          $game_variables[100] = $game_temp.choice_cancel_type - 1
          $game_temp.need_show_more = false
          terminate_message
        end
      end
      # 确定
      if Input.trigger?(Input::C)
        if $game_temp.choice_max > 0
          $game_system.se_play($data_system.decision_se)
          $game_variables[100] = self.index
          $game_temp.choice_proc.call(self.index)
        end
        $game_temp.need_show_more = false
        terminate_message
      end
      return
    end
    # 在渐变以外的状态下有等待显示的信息与选择项的场合
    if @fade_out == false and $game_temp.message_text != nil
      @contents_showing = true
      $game_temp.message_window_showing = true
      reset_window
      refresh
      Graphics.frame_reset
      self.visible = true
      self.contents_opacity = 0
      if @input_number_window != nil
        @input_number_window.contents_opacity = 0
      end
      @fade_in = true
      return
    end
    # 没有可以显示的信息、但是窗口为可见的情况下
    if self.visible
      @fade_out = true
      self.opacity -= 48
      if self.opacity == 0
        self.visible = false
        @fade_out = false
        $game_temp.message_window_showing = false
      end
      return
    end
  end
end

class Interpreter
  def command_102
    # 文章已经设置过 message_text 的情况下
    if $game_temp.message_text != nil
      # 结束
      return false
    end
    # 设置信息结束后待机和返回调用标志
    @message_waiting = true
    $game_temp.message_proc = Proc.new { @message_waiting = false }
    # 设置选择项
    $game_temp.message_text = ""
    $game_temp.choice_start = 0
    if $game_temp.need_show_more
      @parameters = [$game_temp.choices, $game_temp.choice_cancel_type]
    end
    setup_choices(@parameters)
    # 继续
    return true
  end
end

点评

这是脚本  发表于 2011-5-8 10:17

评分

参与人数 1星屑 -40 收起 理由
禾西 -40 三連貼還是要警告

查看全部评分

路过……酱油……别烦我……
回复 支持 反对

使用道具 举报

Lv1.梦旅人

XYGG

梦石
0
星屑
62
在线时间
115 小时
注册时间
2009-1-20
帖子
340
9
发表于 2011-5-8 10:18:49 | 只看该作者
more choice.rar (189.3 KB, 下载次数: 108)

点评

这是范例  发表于 2011-5-8 10:19

评分

参与人数 2星屑 +302 收起 理由
禾西 + 300 認可
慕月寒霜 + 2 喔喔~~谢谢了!

查看全部评分

路过……酱油……别烦我……
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
23 小时
注册时间
2010-9-12
帖子
45
10
 楼主| 发表于 2011-5-8 12:22:10 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2025-7-22 17:48

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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