Project1

标题: 求一个RPG VX ACE 的血条和经验脚本 [打印本页]

作者: 深渊丶龙    时间: 2016-10-5 15:27
标题: 求一个RPG VX ACE 的血条和经验脚本
1.跪求一个战斗显示敌人的HP条脚本

2.求一个菜单界面的经验条脚本

条件:必须是RPG VX ACE
作者: 卡奥尼特    时间: 2016-10-5 16:10

RPG VX ACE? ……
話說這裡是 RPG VX 提問區 吧?  按理說妳不是應該去隔壁嗎?
作者: chd114    时间: 2016-10-24 00:59
这不是va提问区
菜单界面的经验条是什么···
作者: QQ蚊子湯    时间: 2016-10-25 03:03
顯示血條
https://rpg.blue/thread-384538-1-1.html
顯示經驗條
  1.     #  ●設定區域
  2.     #===================================
  3.      
  4.     module WD
  5.     module Exp_Gauge
  6.       #EXP條COLOR,請修改成TEXT文字
  7.       EXP_GAUGE_COLOR1 = 6
  8.       EXP_GAUGE_COLOR2 = 14
  9.      
  10.       #EXP條文字顯示設定,true為打開,false為關閉
  11.       EXP_TEXT_DISPLAY = false
  12.     end
  13.     end
  14.      
  15.     #==============================================================================
  16.     # ■ Window_Base
  17.     #------------------------------------------------------------------------------
  18.     #  ゲーム中の全てのウィンドウのスーパークラスです。
  19.     #==============================================================================
  20.      
  21.     class Window_Base < Window
  22.       include WD::Exp_Gauge
  23.      
  24.       def exp_gauge_color1;   text_color(EXP_GAUGE_COLOR1);  end;    # EXP ゲージ 1
  25.       def exp_gauge_color2;   text_color(EXP_GAUGE_COLOR2);  end;    # EXP ゲージ 2
  26.      
  27.       #--------------------------------------------------------------------------
  28.       # ● シンプルなステータスの描画
  29.       #--------------------------------------------------------------------------
  30.       def draw_actor_simple_status(actor, x, y)
  31.         draw_actor_name(actor, x, y + line_height * 0.5)
  32.         draw_actor_level(actor, x, y - line_height * 0.5)
  33.         draw_actor_icons(actor, x, y + line_height * 1.5)
  34.         draw_actor_class(actor, x + 120, y - line_height * 0.5)
  35.         draw_actor_hp(actor, x + 120, y + line_height * 0.5)
  36.         draw_actor_mp(actor, x + 120, y + line_height * 1.5)
  37.         draw_actor_exp(actor, x, y + line_height * 2.5, EXP_TEXT_DISPLAY)
  38.       end
  39.       #--------------------------------------------------------------------------
  40.       # ● EXP の描画
  41.       #--------------------------------------------------------------------------
  42.       def draw_actor_exp(actor, x, y, display = true, width = 244)
  43.         this_level = actor.exp - actor.past_level_exp
  44.         next_level = actor.next_level_exp - actor.past_level_exp
  45.         draw_gauge(x, y, width, actor.exp_rate, exp_gauge_color1, exp_gauge_color2)
  46.         change_color(system_color)
  47.         if display
  48.           draw_text(x, y, 30, line_height, "EXP")
  49.           draw_current_and_max_values(x, y, width, this_level, next_level, mp_color(actor), normal_color)
  50.         end
  51.       end
  52.     end
  53.      
  54.     class Game_Actor < Game_Battler
  55.       #--------------------------------------------------------------------------
  56.       # ● EXP の割合を取得
  57.       #--------------------------------------------------------------------------
  58.       def exp_rate
  59.         this_level = exp - past_level_exp
  60.         next_level = next_level_exp - past_level_exp
  61.         next_level > 0 ? this_level.to_f / next_level : 0
  62.       end
  63.       #--------------------------------------------------------------------------
  64.       # ● 前のレベルの経験値を取得
  65.       #--------------------------------------------------------------------------
  66.       def past_level_exp
  67.         @level > 1 ? exp_for_level(@level - 1) : 0
  68.       end
  69.     end
复制代码


請善用搜尋
作者: marco99168    时间: 2016-10-29 20:35
{:2_248:} 行了……还是老老实实看着吧。




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1