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

Project1

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

请问哪个人物仓库的脚本兼容性较好啊

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

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-8-12
帖子
22
跳转到指定楼层
1
发表于 2007-8-25 18:21:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-8-12
帖子
22
2
 楼主| 发表于 2007-8-25 18:21:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽

Lv3.寻梦者 (暗夜天使)

精灵族の天使

梦石
0
星屑
1712
在线时间
3039 小时
注册时间
2007-3-16
帖子
33731

开拓者贵宾

3
发表于 2007-8-25 18:31:13 | 只看该作者
你可以搜索“人物仓库”,主站那边有搜索的……
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
192 小时
注册时间
2007-7-14
帖子
2746
4
发表于 2007-8-25 18:32:58 | 只看该作者
好难啊~~~~~~~
请问什么游戏会有20位主角呢?
以前,站上有人说过,8人游戏已经很难做下去了~~~(不是容易胜利或是失败)
还有,只有4位参战,另外16位靠边站,换人都换累啊~~~
打怪要平均地打,升极更是难啊~~~
难道LZ的游戏就是要让别人花大多时间打怪吗?
(浪费很多时间啊,除了好游戏外,没人会花这么多时间在打怪啊~)
插入点好玩的小游戏到游戏中倒是实在~~~

说了这么多,还是推荐一个脚本~~~~~~~~
不太像LZ说的那样,但是很适合~~~
就是站上的"拥兵"之类的脚本~~~
自己去搜吧~~~~~~~~
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

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

使用道具 举报

Lv2.观梦者

梦石
0
星屑
431
在线时间
125 小时
注册时间
2006-11-2
帖子
1200
6
发表于 2007-8-25 21:01:26 | 只看该作者
借个位置贴下,能放20个人的战斗待机脚本.

  1. #==============================================================================
  2. # 本脚本来自www.66RPG.com,使用和转载请保留此信息
  3. #==============================================================================  

  4. # ▼▲▼ XRXS26. 人物扩张系统 ver..05 ▼▲▼
  5. # by 桜雅 在土

  6. #==============================================================================
  7. # □ 初始化定义
  8. #==============================================================================
  9. module XRXS26
  10.   FRONT_MEMBER_LIMIT    = 4        # 战斗参战人数最大值
  11.   BACKWARD_MEMBER_LIMIT = 20        # 待机人数最大值
  12.   BACKWARD_EXP_GAINABLE = true     # 待机人物是否获得经验
  13.   MENU_STATUS_STRETCH   = false    # 3人以下的时候,菜单是否拉伸大小
  14. end
  15. #------------------------------------------------------------------------------
  16. # 菜单页面状态
  17. #------------------------------------------------------------------------------
  18. class Window_MenuStatus < Window_Selectable
  19.   # 列数
  20.   COLUMN_MAX = 1
  21.   # 光标高度
  22.   CURSOR_HEIGHT = 96
  23.   # 一行的高度
  24.   LINE_HEIGHT = 116
  25. end
  26. #------------------------------------------------------------------------------
  27. # 菜单场景
  28. #------------------------------------------------------------------------------
  29. class Scene_Menu
  30.   MENU_MEMBER_CHANGE_KEY_GO    = Input::RIGHT # 进入键
  31.   MENU_MEMBER_CHANGE_KEY_END   = Input::LEFT  # 离开键
  32.   MENU_MEMBER_CHANGE_INDEX_MIN = 0            # 可更换角色最小编号
  33.   FORCETOBATTLE_ACTORS         = []           # 不能待机的角色编号
  34.   UMBATTLABLE_ACTORS           = []           # 不能加入战斗的角色编号
  35.   UNMOVABLE_ACTORS             = []           # 不能移动的角色编号
  36. end
  37. #------------------------------------------------------------------------------
  38. #
  39. # 解説
  40. #    Game_Partyの @actors のうち先頭から↑FRONT_MEMBER_LIMIT番目までのアクターを
  41. #   戦闘メンバーとして、それ以上を待機メンバーとして扱います。
  42. #
  43. #==============================================================================
  44. # ■ Game_Party
  45. #==============================================================================
  46. class Game_Party
  47.   #--------------------------------------------------------------------------
  48.   # ○ インクルード
  49.   #--------------------------------------------------------------------------
  50.   include XRXS26
  51.   #--------------------------------------------------------------------------
  52.   # ○ 公開インスタンス変数
  53.   #--------------------------------------------------------------------------
  54.   attr_reader   :backword_actors          # 待機アクター
  55.   #--------------------------------------------------------------------------
  56.   # ● オブジェクト初期化
  57.   #--------------------------------------------------------------------------
  58.   alias xrxs26_initialize initialize
  59.   def initialize
  60.     xrxs26_initialize
  61.     # 待機メンバー配列を初期化
  62.     @backword_actors = []
  63.   end
  64.   #--------------------------------------------------------------------------
  65.   # ● アクターを加える
  66.   #--------------------------------------------------------------------------
  67.   def add_actor(actor_id)
  68.     # アクターを取得
  69.     actor = $game_actors[actor_id]
  70.     # このアクターがパーティにいない場合
  71.     if not @actors.include?(actor)
  72.       # 満員でないならメンバーに追加
  73.       if @actors.size < (FRONT_MEMBER_LIMIT + BACKWARD_MEMBER_LIMIT)
  74.         # アクターを追加
  75.         @actors.push(actor)
  76.         # プレイヤーをリフレッシュ
  77.         $game_player.refresh
  78.       end
  79.     end
  80.   end
  81. end
  82. #==============================================================================
  83. # ■ Spriteset_Battle
  84. #==============================================================================
  85. class Spriteset_Battle
  86.   #--------------------------------------------------------------------------
  87.   # ● インクルード
  88.   #--------------------------------------------------------------------------
  89.   include XRXS26
  90.   #--------------------------------------------------------------------------
  91.   # ● フレーム更新
  92.   #--------------------------------------------------------------------------
  93.   alias xrxs26_initialize initialize
  94.   def initialize
  95.     xrxs26_initialize
  96.     #
  97.     # 以下、五人目以降のアクタースプライトの追加処理---
  98.     #
  99.     # アクターが表示されるビューポートを、とりあえず先頭の人から取得しとく(素
  100.     actor_viewport = @actor_sprites[0].viewport
  101.     # 戦闘参加メンバーが5人以上の場合
  102.     if FRONT_MEMBER_LIMIT > 4
  103.       for i in 5..FRONT_MEMBER_LIMIT
  104.         # アクタースプライトを追加
  105.         @actor_sprites.push(Sprite_Battler.new(actor_viewport))
  106.         @actor_sprites[i-1].battler = $game_party.actors[i-1]
  107.       end
  108.     end
  109.     # ビューポートを更新
  110.     actor_viewport.update
  111.   end
  112. end
  113. #==============================================================================
  114. # ■ Scene_Battle
  115. #==============================================================================
  116. class Scene_Battle
  117.   #--------------------------------------------------------------------------
  118.   # ● インクルード
  119.   #--------------------------------------------------------------------------
  120.   include XRXS26
  121.   #--------------------------------------------------------------------------
  122.   # ● メイン処理 をパーティメンバー処理ではさむ
  123.   #--------------------------------------------------------------------------
  124.   alias xrxs26_main main
  125.   def main
  126.     # 待機メンバーへ退避----------
  127.     $game_party.backword_actors[0,0] = $game_party.actors[FRONT_MEMBER_LIMIT, BACKWARD_MEMBER_LIMIT]
  128.     $game_party.actors[FRONT_MEMBER_LIMIT, BACKWARD_MEMBER_LIMIT] = nil
  129.     $game_party.actors.compact!
  130.     # メイン処理
  131.     xrxs26_main
  132.     # 待機メンバーから復帰
  133.     $game_party.actors[$game_party.actors.size,0] = $game_party.backword_actors
  134.     $game_party.backword_actors.clear
  135.   end
  136.   #--------------------------------------------------------------------------
  137.   # ● アフターバトルフェーズ開始
  138.   #--------------------------------------------------------------------------
  139.   alias xrxs26_start_phase5 start_phase5
  140.   def start_phase5
  141.     # 「待機メンバー経験値獲得」が有効 and 待機アクターが一人以上いる
  142.     if BACKWARD_EXP_GAINABLE and $game_party.backword_actors.size >= 1
  143.       # 待機メンバーから復帰
  144.       $game_party.actors[$game_party.actors.size,0] = $game_party.backword_actors
  145.       $game_party.backword_actors.clear
  146.       # 呼び戻す
  147.       xrxs26_start_phase5
  148.       # 待機メンバーへ退避----------
  149.       $game_party.backword_actors[0,0] = $game_party.actors[FRONT_MEMBER_LIMIT, BACKWARD_MEMBER_LIMIT]
  150.       $game_party.actors[FRONT_MEMBER_LIMIT, BACKWARD_MEMBER_LIMIT] = nil
  151.       $game_party.actors.compact!
  152.     else
  153.       # 呼び戻す
  154.       xrxs26_start_phase5
  155.     end
  156.   end
  157. end
  158. # ▽△▽ XRXL 4. 第二カーソル 機構 ▽△▽
  159. # by 桜雅 在土

  160. #==============================================================================
  161. # --- XRXS. 第二カーソル 機構 ---
  162. #------------------------------------------------------------------------------
  163. #     ウィンドウに .index2 プロパティを追加します。
  164. #==============================================================================
  165. module XRXS_Cursor2
  166.   #--------------------------------------------------------------------------
  167.   # ● オブジェクト初期化
  168.   #--------------------------------------------------------------------------
  169.   def initialize(x, y, w, h)
  170.     super(x, y, h, w)
  171.     # 補助ウィンドウ(透明)を作成:カーソル専用
  172.     @xrxsc2_window = Window_Selectable.new(self.x, self.y, self.width, self.height)
  173.     @xrxsc2_window.opacity = 0
  174.     @xrxsc2_window.active = false
  175.     @xrxsc2_window.index = -1
  176.   end
  177.   #--------------------------------------------------------------------------
  178.   # ○ 第二カーソルの設置
  179.   #--------------------------------------------------------------------------
  180.   def index2
  181.     return @xrxsc2_window.index
  182.   end
  183.   def index2=(index)
  184.     @xrxsc2_window.index = index
  185.     if index == -1
  186.       @xrxsc2_window.cursor_rect.empty
  187.     else
  188.       @xrxsc2_window.x = self.x
  189.       @xrxsc2_window.y = self.y
  190.       @xrxsc2_window.cursor_rect = self.cursor_rect
  191.     end
  192.   end
  193.   #--------------------------------------------------------------------------
  194.   # ○ 先頭の行の設定
  195.   #--------------------------------------------------------------------------
  196.   def top_row=(row)
  197.     super
  198.     # 補助ウィンドウの oy を更新
  199.     pre_oy = @xrxsc2_window.oy
  200.     @xrxsc2_window.oy = self.oy
  201.     @xrxsc2_window.cursor_rect.y -= self.oy - pre_oy
  202.   end
  203.   #--------------------------------------------------------------------------
  204.   # ○ 解放
  205.   #--------------------------------------------------------------------------
  206.   def dispose
  207.     @xrxsc2_window.dispose
  208.     super
  209.   end
  210.   #--------------------------------------------------------------------------
  211.   # ○ X, Y 座標
  212.   #--------------------------------------------------------------------------
  213.   def x=(n)
  214.     super
  215.     @xrxsc2_window.x = self.x unless @xrxsc2_window.nil?
  216.   end
  217.   def y=(n)
  218.     super
  219.     @xrxsc2_window.y = self.y unless @xrxsc2_window.nil?
  220.   end
  221. end
  222. # ▼▲▼ XRXS26AX. +入れ替えメニュー ver.2 ▼▲▼ built 081113
  223. # by 桜雅 在土

  224. #==============================================================================
  225. # ■ Window_MenuStatus
  226. #==============================================================================
  227. class Window_MenuStatus < Window_Selectable
  228.   #--------------------------------------------------------------------------
  229.   # ○ インクルード
  230.   #--------------------------------------------------------------------------
  231.   include XRXS26
  232.   include XRXS_Cursor2
  233.   #--------------------------------------------------------------------------
  234.   # ● 公開インスタンス変数
  235.   #--------------------------------------------------------------------------
  236.   attr_reader   :column_max             # 列数
  237.   #--------------------------------------------------------------------------
  238.   # ● オブジェクト初期化
  239.   #--------------------------------------------------------------------------
  240.   def initialize
  241.     h = 480
  242.     if MENU_STATUS_STRETCH
  243.       h = FRONT_MEMBER_LIMIT * 116 + 16
  244.     end
  245.     super(0, 0, 480, h)
  246.     h = ($game_party.actors.size - 1) * LINE_HEIGHT + CURSOR_HEIGHT
  247.     self.contents = Bitmap.new(width - 32, h)
  248.     refresh
  249.     self.active = false
  250.     self.index = -1
  251.   end
  252.   #--------------------------------------------------------------------------
  253.   # ○ 1 ページに表示できる行数の取得
  254.   #--------------------------------------------------------------------------
  255.   def page_row_max
  256.     if MENU_STATUS_STRETCH
  257.       return FRONT_MEMBER_LIMIT          # 戦闘パーティ最大数
  258.     else
  259.       return [FRONT_MEMBER_LIMIT, 4].max # 戦闘パーティ最大数(最低4)
  260.     end
  261.   end
  262.   #--------------------------------------------------------------------------
  263.   # ○ 先頭の行の取得
  264.   #--------------------------------------------------------------------------
  265.   def top_row
  266.     # ウィンドウ内容の転送元 Y 座標を、1 行の高さ LINE_HEIGHT で割る
  267.     return self.oy / LINE_HEIGHT
  268.   end
  269.   #--------------------------------------------------------------------------
  270.   # ○ 先頭の行の設定
  271.   #--------------------------------------------------------------------------
  272.   def top_row=(row)
  273.     super
  274.     self.oy = self.oy/32 * LINE_HEIGHT
  275.   end
  276.   #--------------------------------------------------------------------------
  277.   # ● カーソルの矩形更新
  278.   #--------------------------------------------------------------------------
  279.   def update_cursor_rect
  280.     super
  281.     unless @index < 0
  282.       y = (self.cursor_rect.y + self.oy) * LINE_HEIGHT/32 - self.oy
  283.       self.cursor_rect.set(0, y, self.cursor_rect.width, CURSOR_HEIGHT)
  284.     end
  285.   end
  286. end
  287. #==============================================================================
  288. # ■ Scene_Menu
  289. #==============================================================================
  290. class Scene_Menu
  291.   #--------------------------------------------------------------------------
  292.   # ○ インクルード
  293.   #--------------------------------------------------------------------------
  294.   include XRXS26
  295.   #--------------------------------------------------------------------------
  296.   # ● フレーム更新
  297.   #--------------------------------------------------------------------------
  298.   alias xrxs26ax_update update
  299.   def update
  300.     # インデックスを保存
  301.     @status_index = @status_window.index
  302.     # 呼び戻す
  303.     xrxs26ax_update
  304.   end
  305.   #--------------------------------------------------------------------------
  306.   # ● フレーム更新 (コマンドウィンドウがアクティブの場合)
  307.   #--------------------------------------------------------------------------
  308.   alias xrxs26ax_update_command update_command
  309.   def update_command
  310.     # 呼び戻す
  311.     xrxs26ax_update_command
  312.     # 入れ替え移行キーが押されたとき、@command_window.indexが設定値以上
  313.     if Input.trigger?(MENU_MEMBER_CHANGE_KEY_GO) and
  314.        @command_window.index >= MENU_MEMBER_CHANGE_INDEX_MIN
  315.       # 決定 SE を演奏
  316.       $game_system.se_play($data_system.decision_se)
  317.       # カーソル位置を記憶
  318.       @command_index_before_menu_member_change = @command_window.index
  319.       # 入れ替えウィンドウへ移行
  320.       @command_window.active = false
  321.       @command_window.index = -1
  322.       @status_window.active = true
  323.       @status_window.index = 0
  324.     end
  325.   end
  326.   #--------------------------------------------------------------------------
  327.   # ● フレーム更新 (ステータスウィンドウがアクティブの場合)
  328.   #--------------------------------------------------------------------------
  329.   alias xrxs26ax_update_status update_status
  330.   def update_status
  331.     # 呼び戻す
  332.     if @command_window.index != -1
  333.       xrxs26ax_update_status
  334.       return
  335.     end
  336.     # B ボタンか入れ替え終了キーが押されたとき
  337.     if ((Input.trigger?(Input::B) or Input.trigger?(MENU_MEMBER_CHANGE_KEY_END)) and
  338.         @status_window.index2 == -1 and
  339.         @status_index%@status_window.column_max == 0)
  340.       # キャンセル SE を演奏
  341.       $game_system.se_play($data_system.cancel_se)
  342.       # コマンドウィンドウをアクティブにする
  343.       @command_window.active = true
  344.       @command_window.index = 0
  345.       @status_window.active = false
  346.       @status_window.index = -1
  347.       return
  348.     end
  349.     # B ボタンが押されたとき
  350.     if Input.trigger?(Input::B) and @status_window.index2 >= 0
  351.       @status_window.index = @status_window.index2
  352.       @status_window.index2 = -1
  353.       return
  354.     end
  355.     # 決定キーが押されたとき
  356.     if Input.trigger?(Input::C)
  357.       if @status_window.index2 == -1
  358.         if UNMOVABLE_ACTORS.include?($game_party.actors[@status_window.index].id)
  359.           # ブザー SE を演奏
  360.           $game_system.se_play($data_system.buzzer_se)
  361.           return
  362.         end
  363.         # 決定 SE を演奏
  364.         $game_system.se_play($data_system.decision_se)
  365.         # メンバーの入れ替え一人目の決定
  366.         @status_window.index2 = @status_window.index
  367.       else
  368.         if UNMOVABLE_ACTORS.include?($game_party.actors[@status_window.index].id)
  369.           # ブザー SE を演奏
  370.           $game_system.se_play($data_system.buzzer_se)
  371.           return
  372.         end
  373.         # どちらかが戦闘メンバー かつ どちらかが戦闘禁止アクター の場合
  374.         if (@status_window.index < FRONT_MEMBER_LIMIT or
  375.             @status_window.index2 < FRONT_MEMBER_LIMIT) and
  376.            (UMBATTLABLE_ACTORS.include?($game_party.actors[@status_window.index].id) or
  377.             UMBATTLABLE_ACTORS.include?($game_party.actors[@status_window.index2].id))
  378.           # ブザー SE を演奏
  379.           $game_system.se_play($data_system.buzzer_se)
  380.           return
  381.         end
  382.         # どちらかが待機メンバー かつ どちらかが待機禁止アクター の場合
  383.         if (@status_window.index >= FRONT_MEMBER_LIMIT or
  384.             @status_window.index2 >= FRONT_MEMBER_LIMIT) and
  385.            (FORCETOBATTLE_ACTORS.include?($game_party.actors[@status_window.index].id) or
  386.             FORCETOBATTLE_ACTORS.include?($game_party.actors[@status_window.index2].id))
  387.           # ブザー SE を演奏
  388.           $game_system.se_play($data_system.buzzer_se)
  389.           return
  390.         end
  391.         # 決定 SE を演奏
  392.         $game_system.se_play($data_system.decision_se)
  393.         # メンバーの入れ替え二人目の決定と入れ替えの実行
  394.         actor2 = $game_party.actors[@status_window.index]
  395.         actor = $game_party.actors[@status_window.index2]
  396.         $game_party.actors[@status_window.index2] = actor2
  397.         $game_party.actors[@status_window.index] = actor
  398.         @status_window.index = @status_window.index2
  399.         @status_window.index2 = -1
  400.         # プレイヤーをリフレッシュ
  401.         $game_player.refresh
  402.         # ステータスウィンドウをリフレッシュ
  403.         @status_window.refresh
  404.       end
  405.       return
  406.     end
  407.   end
  408. end

复制代码

  1. #============================================================================================
  2. # 本脚本来自www.66RPG.com,转载和使用请保留此信息
  3. #============================================================================================

  4. # ▼▲▼ XRXS26BX. +BUZZデザイン ▼▲▼ built 033109
  5. # by 桜雅 在土

  6. #==============================================================================
  7. # □ 初始化定义
  8. #==============================================================================
  9. class Window_MenuStatus < Window_Selectable
  10.   #
  11.   # 不显示能力值的角色编号
  12.   #
  13.   NO_PARAMETER_ACTORS = []
  14. end
  15. #==============================================================================
  16. # ■ Window_MenuStatus
  17. #==============================================================================
  18. class Window_MenuStatus < Window_Selectable
  19.   #--------------------------------------------------------------------------
  20.   # ○ インクルード
  21.   #--------------------------------------------------------------------------
  22.   include XRXS26
  23.   #--------------------------------------------------------------------------
  24.   # ● 公開インスタンス変数
  25.   #--------------------------------------------------------------------------
  26.   attr_reader   :newitem_window
  27.   attr_reader   :bottomkeyhelp_window
  28.   #--------------------------------------------------------------------------
  29.   # ● オブジェクト初期化
  30.   #--------------------------------------------------------------------------
  31.   alias xrxs26bx_initialize initialize
  32.   def initialize
  33.     # 呼び戻す
  34.     xrxs26bx_initialize
  35.     # 寄生してウィンドウを作成
  36.     # ボトルキーヘルプウィンドウ
  37.     @bottomkeyhelp_window = Window_BottomKeyHelp.new
  38.     @bottomkeyhelp_window.visible = false
  39.     # 設定変更
  40.     self.height   = 448
  41.     self.contents = Bitmap.new(width - 32, height - 32)
  42.     refresh
  43.   end
  44.   #--------------------------------------------------------------------------
  45.   # ● リフレッシュ
  46.   #--------------------------------------------------------------------------
  47.   def refresh
  48.     self.contents.clear
  49.     @item_max = $game_party.actors.size
  50.     @column_max = 4
  51.     y = (FRONT_MEMBER_LIMIT+1)/2 * 64 + 28
  52.     self.contents.font.size = 18
  53.     self.contents.font.color = system_color
  54.     self.contents.draw_text(4, 0, 92, 28, "战斗人数")
  55.     self.contents.draw_text(4, y-48, 92, 28, "待机人数")
  56.     self.contents.font.size = 12
  57.     for i in 0...$game_party.actors.size
  58.       x = 64 + i%4 * 112
  59.       y = i/4 *  72 + 24
  60.       actor = $game_party.actors[i]
  61.       if i >= FRONT_MEMBER_LIMIT
  62.         y += 32
  63.         self.contents.font.color = disabled_color
  64.         self.contents.draw_text(x, y, 80, 32, actor.name)
  65.       else
  66.         draw_actor_name(actor   , x   -24  , y     )
  67.       end
  68.       draw_actor_graphic(actor, x - 48, y + 64)
  69.       unless NO_PARAMETER_ACTORS.include?(actor.id)
  70.         draw_actor_level(actor  , x -64, y +48   )
  71.         draw_actor_hp_k(actor     , x- 32, y + 16)
  72.         draw_actor_sp_k(actor     , x- 32 , y + 32)
  73.         draw_actor_state(actor  , x, y + 48)
  74.       end
  75.     end
  76.   end
  77.   #--------------------------------------------------------------------------
  78.   # ○ フレーム更新
  79.   #--------------------------------------------------------------------------
  80.   def update
  81.     # ウィンドウを更新
  82.     @bottomkeyhelp_window.update
  83.     super
  84.   end
  85.   #--------------------------------------------------------------------------
  86.   # ○ 解放
  87.   #--------------------------------------------------------------------------
  88.   def dispose
  89.     @bottomkeyhelp_window.dispose
  90.     super
  91.   end
  92.   #--------------------------------------------------------------------------
  93.   # ● カーソルの矩形更新
  94.   #--------------------------------------------------------------------------
  95.   def update_cursor_rect
  96.     if @index < 0
  97.       self.cursor_rect.empty
  98.     else
  99.       y = @index/4 * 72 + 24
  100.       if @index >= FRONT_MEMBER_LIMIT
  101.         y += 32
  102.       end
  103.       self.cursor_rect.set(@index%4 * 112, y, 112, 72)
  104.     end
  105.   end
  106. end
  107. #==============================================================================
  108. # ■ Scene_Menu
  109. #==============================================================================
  110. class Scene_Menu
  111.   #--------------------------------------------------------------------------
  112.   # ● フレーム更新
  113.   #--------------------------------------------------------------------------
  114.   alias xrxs26bx_update update
  115.   def update
  116.     # 登録
  117.     if @bottomkeyhelp_window.nil?
  118.       @bottomkeyhelp_window = @status_window.bottomkeyhelp_window
  119.       @bottomkeyhelp_window.visible = true
  120.       set_keyhelp1
  121.     end
  122.     # 呼び戻す
  123.     xrxs26bx_update
  124.   end
  125.   #--------------------------------------------------------------------------
  126.   # ● フレーム更新 (コマンドウィンドウがアクティブの場合)
  127.   #--------------------------------------------------------------------------
  128.   alias xrxs26bx_update_command update_command
  129.   def update_command
  130.     # 呼び戻す
  131.     xrxs26bx_update_command
  132.     # 入れ替え移行キーが押されたとき
  133.     if @command_window.index == -1 and @status_window.active
  134.       set_keyhelp2
  135.     end
  136.   end
  137.   #--------------------------------------------------------------------------
  138.   # ● フレーム更新 (ステータスウィンドウがアクティブの場合)
  139.   #--------------------------------------------------------------------------
  140.   alias xrxs26bx_update_status update_status
  141.   def update_status
  142.     # 保存
  143.     last_index = @status_window.index2
  144.     # 呼び戻す
  145.     xrxs26bx_update_status
  146.     #
  147.     if last_index != @status_window.index2
  148.       # 一人目を選択した場合
  149.       if @status_window.index2 >= 0
  150.         set_keyhelp3
  151.       else
  152.         set_keyhelp2
  153.       end
  154.     end
  155.     # 戻った場合
  156.     unless @status_window.active
  157.       set_keyhelp1
  158.     end
  159.   end
  160.   #--------------------------------------------------------------------------
  161.   # ○ キーヘルプを設定 1
  162.   #--------------------------------------------------------------------------
  163.   def set_keyhelp1
  164.     @bottomkeyhelp_window.clear
  165.     @bottomkeyhelp_window.add("B","关闭本窗口")
  166.     @bottomkeyhelp_window.add("C","确定")
  167.     @bottomkeyhelp_window.add("→","人物顺序调整")
  168.   end
  169.   #--------------------------------------------------------------------------
  170.   # ○ キーヘルプを設定 2
  171.   #--------------------------------------------------------------------------
  172.   def set_keyhelp2
  173.     @bottomkeyhelp_window.clear
  174.     @bottomkeyhelp_window.add("←,B","返回")
  175.     @bottomkeyhelp_window.add("C","第一个人物确定")
  176.   end
  177.   #--------------------------------------------------------------------------
  178.   # ○ キーヘルプを設定 3
  179.   #--------------------------------------------------------------------------
  180.   def set_keyhelp3
  181.     @bottomkeyhelp_window.clear
  182.     @bottomkeyhelp_window.add("B","返回")
  183.     @bottomkeyhelp_window.add("C","第二个人物确定")
  184.   end
  185. end



  186. #==============================================================================
  187. # □ Window_BottomKeyHelp
  188. #------------------------------------------------------------------------------
  189. #     画面下で操作説明をする透明なウィンドウです。
  190. #==============================================================================
  191. class Window_BottomKeyHelp < Window_Base
  192.   #--------------------------------------------------------------------------
  193.   # ○ オブジェクト初期化
  194.   #--------------------------------------------------------------------------
  195.   def initialize
  196.     super(0, 432, 640, 64)
  197.     self.contents = Bitmap.new(width - 32, height - 32)
  198.     self.opacity = 0
  199.     clear
  200.   end
  201.   #--------------------------------------------------------------------------
  202.   # ○ クリア
  203.   #--------------------------------------------------------------------------
  204.   def clear
  205.     self.contents.clear
  206.     @now_x = 608
  207.   end
  208.   #--------------------------------------------------------------------------
  209.   # ○ 追加
  210.   #--------------------------------------------------------------------------
  211.   def add(key, explanation)
  212.     # 計算
  213.     self.contents.font.size = 20
  214.     x  = self.contents.text_size(key).width
  215.     self.contents.font.size = 16
  216.     x += self.contents.text_size(explanation).width + 8
  217.     @now_x -= x
  218.     # 描写
  219.     self.contents.font.size = 20
  220.     self.contents.font.color = system_color
  221.     self.contents.draw_text(@now_x, 0, x, 32, key, 0)
  222.     self.contents.font.size = 16
  223.     self.contents.font.color = normal_color
  224.     self.contents.draw_text(@now_x, 0, x, 32, explanation, 2)
  225.     # 余白
  226.     @now_x -= 32
  227.   end
  228. end



  229. class Window_Base
  230.   #--------------------------------------------------------------------------
  231.   # ● 描绘 HP
  232.   #     actor : 角色
  233.   #     x     : 描画目标 X 坐标
  234.   #     y     : 描画目标 Y 坐标
  235.   #     width : 描画目标的宽
  236.   #--------------------------------------------------------------------------
  237.   def draw_actor_hp_k(actor, x, y, width = 144)
  238.     # 描绘字符串 "HP"
  239.     self.contents.font.color = system_color
  240.     self.contents.draw_text(x, y, 32, 32, $data_system.words.hp)
  241.     # 计算描绘 MaxHP 所需的空间
  242.     if width - 32 >= 108
  243.       hp_x = x + width - 108 - 40
  244.       flag = true
  245.     elsif width - 32 >= 48
  246.       hp_x = x + width - 48
  247.       flag = false
  248.     end
  249.     # 描绘 HP
  250.     self.contents.font.color = actor.hp == 0 ? knockout_color :
  251.       actor.hp <= actor.maxhp / 4 ? crisis_color : normal_color
  252.     self.contents.draw_text(hp_x, y, 48, 32, actor.hp.to_s, 2)
  253.     # 描绘 MaxHP
  254.     if flag
  255.       self.contents.font.color = normal_color
  256.       self.contents.draw_text(hp_x + 48, y, 12, 32, "/", 1)
  257.       self.contents.draw_text(hp_x + 60, y, 48, 32, actor.maxhp.to_s)
  258.     end
  259.   end
  260.   #--------------------------------------------------------------------------
  261.   # ● 描绘 SP
  262.   #     actor : 角色
  263.   #     x     : 描画目标 X 坐标
  264.   #     y     : 描画目标 Y 坐标
  265.   #     width : 描画目标的宽
  266.   #--------------------------------------------------------------------------
  267.   def draw_actor_sp_k(actor, x, y, width = 144)
  268.     # 描绘字符串 "SP"
  269.     self.contents.font.color = system_color
  270.     self.contents.draw_text(x, y, 32, 32, $data_system.words.sp)
  271.     # 计算描绘 MaxSP 所需的空间
  272.     if width - 32 >= 108
  273.       sp_x = x + width - 108 - 40
  274.       flag = true
  275.     elsif width - 32 >= 48
  276.       sp_x = x + width - 48
  277.       flag = false
  278.     end
  279.     # 描绘 SP
  280.     self.contents.font.color = actor.sp == 0 ? knockout_color :
  281.       actor.sp <= actor.maxsp / 4 ? crisis_color : normal_color
  282.     self.contents.draw_text(sp_x, y, 48, 32, actor.sp.to_s, 2)
  283.     # 描绘 MaxSP
  284.     if flag
  285.       self.contents.font.color = normal_color
  286.       self.contents.draw_text(sp_x + 48, y, 12, 32, "/", 1)
  287.       self.contents.draw_text(sp_x + 60, y, 48, 32, actor.maxsp.to_s)
  288.     end
  289.   end
  290. end
  291. #==============================================================================
  292. # 本脚本来自www.66RPG.com,使用和转载请保留此信息
  293. #==============================================================================
复制代码

系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
和记忆一起封存着的ID...
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-8-12
帖子
22
7
 楼主| 发表于 2007-8-25 21:37:03 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

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

使用道具 举报

Lv2.观梦者

梦石
0
星屑
431
在线时间
125 小时
注册时间
2006-11-2
帖子
1200
9
发表于 2007-8-25 21:50:31 | 只看该作者
我试了下,完全没有问题,脚本冲突么?

你建个新工程把这两个脚本放进去看看
和记忆一起封存着的ID...
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

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

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2026-6-24 18:01

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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