查看: 2094|回复: 4

[已经解决] 请问下这个提示脚本怎么添加失去提示

[复制链接]
梦石
0
星屑
50
在线时间
35 小时
注册时间
2013-9-16
回帖
15
发表于 2013-10-16 10:22:50 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

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

×
  1. #==============================================================================
  2. # ■ VXAce-RGSS3-41 簡易メッセージ                           by Claimh
  3. #------------------------------------------------------------------------------
  4. #   マップ上に簡易メッセージを表示します。
  5. #------------------------------------------------------------------------------
  6. # ● 簡易メッセージ表示実行(イベント)
  7. # show_msg(type, msg, num)
  8. #    type  :項目番号
  9. #               0  .. msgの内容を表示(制御文字も使用可能)
  10. #               1  .. アイテムを入手(msgにアイテムID、numに個数を指定)
  11. #               2  .. 武器获得(msgに武器ID、numに個数を指定)
  12. #               3  .. 防具を入手(msgに防具ID、numに個数を指定)
  13. #               4  .. スキルを習得(msgにスキルID, numにアクターIDを指定)
  14. #               5  .. レベルアップ(msgにアクターIDを指定)
  15. #               6  .. 加入(msgにアクターIDを指定)
  16. #               7  .. 離脱(msgにアクターIDを指定)
  17. #               8  .. お金を入手(msgに金額を入れる)
  18. #               20 .. クエスト開始(msgにIDを指定) ※「クエストシステム」必須
  19. #               21 .. クエスト完了(msgにIDを指定) ※「クエストシステム」必須
  20. #               22 .. 用語登録(msgにカテゴリ、numに用語IDを指定)※「用語辞典」必須
  21. #    msg   :表示文字、ID情報(アイテム等)など
  22. #    num   :個数(省略可能)
  23. #------------------------------------------------------------------------------
  24. # ● メッセージ表示の強制停止(全停止)
  25. # stop_msg
  26. #   ※強制停止中は解除されるまで簡易メッセージ表示を行いません。
  27. #     強制停止中にshow_msgが実行された場合はrestart_msg実行まで待たされます
  28. #------------------------------------------------------------------------------
  29. # ● メッセージ表示の強制停止解除
  30. # restart_msg
  31. #==============================================================================

  32. module ShtMsg
  33.   # スキンタイプ
  34.   #    0 .. ウィンドウ
  35.   #    1 .. 半透明ブラックボックス
  36.   #    2 .. ピクチャ
  37.   SKIN = 0
  38.   # ウィンドウ背景の不透明度
  39.   OPACITY = 160
  40.   # ピクチャファイル(Graphics/System)
  41.   PICT = "msg_skin"

  42.   # メッセージ矩形サイズ(x,yは未参照)
  43.   RECT = Rect.new(0, 0, 160, 28)
  44.   # 表示矩形(x,widthは未参照。yは最初のy位置, heightは表示する範囲)
  45.   VIEW = Rect.new(0, Graphics.height * 2/ 3, 0, Graphics.height / 1) # 下のほう
  46. #~   VIEW = Rect.new(0, 0, 0, Graphics.height / 3)  # 上のほう
  47.   # 表示位置(高さ)のずらし幅
  48.   OFST = 0
  49.   
  50.   # スライドイン方向(true:左端から / false:右端から)
  51.   SLD_DIR = false
  52.   # スライド時間
  53.   SLD_FRM = 8
  54.   # 表示ウェイト時間
  55.   WAIT = 100

  56.   # 固有名の着色(色index)   0..normal_color
  57.   COLOR = 14
  58.   # フォントサイズ
  59.   FSZ = 20
  60.   # 文字描画開始X位置
  61.   STX = 5

  62.   # SE音(鳴らさない場合はnilにする)
  63.   SE = RPG::SE.new("Chime2")

  64.   # メッセージ表示と同時に本処理(アイテム入手等)を実行する
  65.   EXE = false
  66. end



  67. #==============================================================================
  68. # ■ Game_Interpreter
  69. #==============================================================================
  70. class Game_Interpreter
  71.   #--------------------------------------------------------------------------
  72.   # ● 簡易メッセージ表示
  73.   #     type  : 項目番号
  74.   #     msg   : メッセージ
  75.   #     num   : 個数(省略可能)
  76.   #--------------------------------------------------------------------------
  77.   def show_msg(type, msg, num=0)
  78.     if SceneManager.scene_is?(Scene_Map)
  79.       SceneManager.scene.show_msg(type, msg, num)
  80.     end
  81.   end
  82.   #--------------------------------------------------------------------------
  83.   # ● 簡易メッセージの強制停止
  84.   #--------------------------------------------------------------------------
  85.   def stop_msg
  86.     if SceneManager.scene_is?(Scene_Map)
  87.       SceneManager.scene.stop_msg
  88.     end
  89.   end
  90.   #--------------------------------------------------------------------------
  91.   # ● 簡易メッセージの強制停止解除
  92.   #--------------------------------------------------------------------------
  93.   def restart_msg
  94.     if SceneManager.scene_is?(Scene_Map)
  95.       SceneManager.scene.restart
  96.     end
  97.   end
  98. end


  99. #==============================================================================
  100. # ■ ShtMsg::Messenger
  101. #==============================================================================
  102. class ShtMsg::Messenger
  103.   #--------------------------------------------------------------------------
  104.   # ● オブジェクト初期化
  105.   #--------------------------------------------------------------------------
  106.   def initialize(type, msg, num)
  107.     @type = type; @msg = msg; @num = num
  108.   end
  109.   #--------------------------------------------------------------------------
  110.   # ● 簡易メッセージ表示内容
  111.   #--------------------------------------------------------------------------
  112.   def text
  113.     exe if ShtMsg::EXE
  114.     c = ShtMsg::COLOR
  115.     n = @num > 1 ? "#{@num}個" : ""
  116.     case @type
  117.     when 0;  return @msg
  118.     when 1;  return "\\C[#{c}]#{$data_items[@msg].name}\\C[0]#{n}获得"
  119.     when 2;  return "\\C[#{c}]#{$data_weapons[@msg].name}\\C[0]#{n}获得"
  120.     when 3;  return "\\C[#{c}]#{$data_armors[@msg].name}\\C[0]#{n}获得"
  121.     when 4;  return "\\C[#{c}]#{$data_skills[@msg].name}\\C[0]习得"
  122.     when 5;  return "\\C[#{c}]#{$game_actors[@msg].name}\\C[0]がレベルアップ"
  123.     when 6;  return "\\C[#{c}]#{$game_actors[@msg].name}\\C[0]が仲間になった"
  124.     when 7;  return "\\C[#{c}]#{$game_actors[@msg].name}\\C[0]が離脱した…"
  125.     when 8;  return "\\C[#{c}]#{@msg}#{Vocab::currency_unit}\\C[0]获得"
  126.     when 20; return "『\\C[#{c}]#{$game_system.quest[@msg].name}\\C[0]』開始"
  127.     when 21; return "『\\C[#{c}]#{$game_system.quest[@msg].name}\\C[0]』クリア"
  128.     when 22; return "新語『\\C[#{c}]#{$game_system.dictionary[@msg][@num].name}\\C[0]』"
  129.     end
  130.     return "type error<#{@type},#{@msg}>"
  131.   end
  132.   
  133.   #--------------------------------------------------------------------------
  134.   # ● 本処理実行
  135.   #--------------------------------------------------------------------------
  136.   def exe
  137.     case @type
  138.     when 1;  $game_party.gain_item($data_items[@msg], @num) if @num > 0
  139.     when 2;  $game_party.gain_item($data_weapons[@msg], @num) if @num > 0
  140.     when 3;  $game_party.gain_item($data_armors[@msg], @num) if @num > 0
  141.     when 4;  $game_actors[@num].learn_skill(@msg) if @num > 0
  142.     when 5;  $game_actors[@msg].level_up
  143.     when 6;  $game_party.add_actor(@msg)
  144.     when 7;  $game_party.remove_actor(@msg)
  145.     when 8;  $game_party.gain_gold(@msg)
  146.     when 20; $game_system.quest[@msg].quest_start
  147.     when 21; $game_system.quest[@msg].quest_clear
  148.     when 22; $game_system.dictionary[@msg][@num].show_flg = true if @num > 0
  149.     end
  150.   end
  151. end

  152. #==============================================================================
  153. # ■ Sprite_ShrtMsgrBack
  154. #==============================================================================
  155. class Sprite_ShrtMsgrBack < Sprite
  156.   #--------------------------------------------------------------------------
  157.   # ● オブジェクト初期化
  158.   #--------------------------------------------------------------------------
  159.   def initialize(x, y, z, bitmap)
  160.     super(nil)
  161.     self.bitmap = bitmap
  162.     self.x = x; self.y = y; self.z = z
  163.   end
  164. end

  165. #==============================================================================
  166. # ■ Window_ShrtMsgr
  167. #==============================================================================
  168. class Window_ShrtMsgr < Window_Base
  169.   #--------------------------------------------------------------------------
  170.   # ● オブジェクト初期化
  171.   #--------------------------------------------------------------------------
  172.   def initialize(msg, x, y, back)
  173.     @count = 0
  174.     @phase = 0
  175.     super(x, y, ShtMsg::RECT.width, fitting_height(1))
  176.     self.opacity = 0
  177.     self.back_opacity = ShtMsg::OPACITY
  178.     [url=home.php?mod=space&uid=114926]@sprite[/url] = Sprite_ShrtMsgrBack.new(x, y+4, z-1, back) if ShtMsg::SKIN != 0
  179.     refresh(msg)
  180.   end
  181.   #--------------------------------------------------------------------------
  182.   # ● 解放
  183.   #--------------------------------------------------------------------------
  184.   def dispose
  185.     @sprite.dispose if ShtMsg::SKIN != 0
  186.     super
  187.   end
  188.   #--------------------------------------------------------------------------
  189.   # ● X位置の設定
  190.   #--------------------------------------------------------------------------
  191.   def x=(x)
  192.     super(x)
  193.     @sprite.x = x if ShtMsg::SKIN != 0
  194.   end
  195.   #--------------------------------------------------------------------------
  196.   # ● Y位置の設定
  197.   #--------------------------------------------------------------------------
  198.   def y=(y)
  199.     super(y)
  200.     @sprite.y = y if ShtMsg::SKIN != 0
  201.   end
  202.   #--------------------------------------------------------------------------
  203.   # ● 行の高さを取得
  204.   #--------------------------------------------------------------------------
  205.   def line_height
  206.     ShtMsg::RECT.height
  207.   end
  208.   #--------------------------------------------------------------------------
  209.   # ● 標準パディングサイズの取得
  210.   #--------------------------------------------------------------------------
  211.   def standard_padding
  212.     return 4
  213.   end
  214.   #--------------------------------------------------------------------------
  215.   # ● フォント設定のリセット
  216.   #--------------------------------------------------------------------------
  217.   def reset_font_settings
  218.     change_color(normal_color)
  219.     contents.font.size = ShtMsg::FSZ
  220.     contents.font.bold = false
  221.     contents.font.italic = false
  222.   end
  223.   #--------------------------------------------------------------------------
  224.   # ● リフレッシュ
  225.   #--------------------------------------------------------------------------
  226.   def refresh(msg)
  227.     contents.clear
  228.     draw_text_ex(ShtMsg::STX, 0, msg.text)
  229.   end
  230.   #--------------------------------------------------------------------------
  231.   # ● 簡易メッセージの強制停止
  232.   #--------------------------------------------------------------------------
  233.   def stop
  234.     update_phase while @phase == 0
  235.     @count = ShtMsg::WAIT / 2
  236.   end
  237.   #--------------------------------------------------------------------------
  238.   # ● フレーム更新
  239.   #--------------------------------------------------------------------------
  240.   def update
  241.     return if self.disposed?
  242.     super
  243.     update_phase
  244.   end
  245.   #--------------------------------------------------------------------------
  246.   # ● フレーム更新
  247.   #--------------------------------------------------------------------------
  248.   def update_phase
  249.     case @phase
  250.     when 0
  251.       @phase += 1 if update_slidein and update_fadein
  252.     when 1
  253.       @phase += 1 if (@count += 1) >= ShtMsg::WAIT
  254.     when 2
  255.       dispose if update_slideout and update_fadeout
  256.     end
  257.   end
  258.   #--------------------------------------------------------------------------
  259.   # ● フレーム更新 : スライドイン
  260.   #--------------------------------------------------------------------------
  261.   def update_slidein
  262.     w = ShtMsg::RECT.width / ShtMsg::SLD_FRM
  263.     if ShtMsg::SLD_DIR
  264.       return true if self.x >= 0
  265.       self.x += w
  266.       self.x = 0 if self.x >= 0
  267.     else
  268.       xx = Graphics.width - ShtMsg::RECT.width
  269.       return true if self.x <= xx
  270.       self.x -= w
  271.       self.x = xx if self.x <= xx
  272.     end
  273.     return false
  274.   end
  275.   #--------------------------------------------------------------------------
  276.   # ● フレーム更新 : スライドアウト
  277.   #--------------------------------------------------------------------------
  278.   def update_slideout
  279.     w = ShtMsg::RECT.width / ShtMsg::SLD_FRM
  280.     if ShtMsg::SLD_DIR
  281.       xx = 0 - ShtMsg::RECT.width
  282.       return true if self.x <= xx
  283.       self.x -= w
  284.       self.x = xx if self.x <= xx
  285.     else
  286.       return true if self.x >= Graphics.width
  287.       self.x += w
  288.       self.x = Graphics.width if self.x >= Graphics.width
  289.     end
  290.     return false
  291.   end
  292.   #--------------------------------------------------------------------------
  293.   # ● フレーム更新 : フェードイン
  294.   #--------------------------------------------------------------------------
  295.   def update_fadein
  296.     op = 255 / ShtMsg::SLD_FRM
  297.     wp = ShtMsg::OPACITY / ShtMsg::SLD_FRM
  298.     if ShtMsg::SKIN == 0
  299.       return true if self.opacity = 255
  300.       self.opacity += op
  301.       self.opacity = 255 if self.opacity >= 255
  302.     else
  303.       return true
  304.     end
  305.     return false
  306.   end
  307.   #--------------------------------------------------------------------------
  308.   # ● フレーム更新 : フェードアウト
  309.   #--------------------------------------------------------------------------
  310.   def update_fadeout
  311.     op = 255 / ShtMsg::SLD_FRM
  312.     wp = ShtMsg::OPACITY / ShtMsg::SLD_FRM
  313.     if ShtMsg::SKIN == 0
  314.       return true if self.opacity = 0 and self.back_opacity == 0 and self.contents_opacity == 0
  315.       self.opacity -= op
  316.       self.back_opacity -= wp
  317.       self.contents_opacity -= op
  318.       self.opacity = 0 if self.opacity <= 0
  319.       self.back_opacity = 0 if self.back_opacity <= 0
  320.       self.contents_opacity = 0 if self.contents_opacity <= 0
  321.     else
  322.       return true if self.contents_opacity == 0 and @sprite.opacity == 0
  323.       self.contents_opacity -= op
  324.       @sprite.opacity -= wp
  325.       self.contents_opacity = 0 if self.contents_opacity <= 0
  326.       @sprite.opacity = 0 if @sprite.opacity <= 0
  327.     end
  328.     return false
  329.   end
  330. end

  331. #==============================================================================
  332. # ■ ShtMsg::MsgManager
  333. #==============================================================================
  334. class ShtMsg::MsgManager
  335.   #--------------------------------------------------------------------------
  336.   # ● オブジェクト初期化
  337.   #--------------------------------------------------------------------------
  338.   def initialize
  339.     @msg = []
  340.     [url=home.php?mod=space&uid=33409]@Stk[/url] = []
  341.     [url=home.php?mod=space&uid=76426]@stop[/url] = false
  342.     create_back_bitmap
  343.   end
  344.   #--------------------------------------------------------------------------
  345.   # ● 解放
  346.   #--------------------------------------------------------------------------
  347.   def dispose
  348.     @msg.each {|m| m.dispose}
  349.     @bitmap.dispose if ShtMsg::SKIN == 1
  350.   end
  351.   #--------------------------------------------------------------------------
  352.   # ● 背景ビットマップの作成
  353.   #--------------------------------------------------------------------------
  354.   def create_back_bitmap
  355.     case ShtMsg::SKIN
  356.     when 1
  357.       width  = ShtMsg::RECT.width
  358.       height = ShtMsg::RECT.height
  359.       @bitmap = Bitmap.new(width, height)
  360.       rect1 = Rect.new(0, 0, width, 4)
  361.       rect2 = Rect.new(0, 4, width, height - 8)
  362.       rect3 = Rect.new(0, height - 4, width, 4)
  363.       @bitmap.gradient_fill_rect(rect1, back_color2, back_color1, true)
  364.       @bitmap.fill_rect(rect2, back_color1)
  365.       @bitmap.gradient_fill_rect(rect3, back_color1, back_color2, true)
  366.     when 2
  367.       @bitmap = Cache.system(ShtMsg::PICT)
  368.     end
  369.   end
  370.   #--------------------------------------------------------------------------
  371.   # ● 背景色 1 の取得
  372.   #--------------------------------------------------------------------------
  373.   def back_color1
  374.     Color.new(0, 0, 0, 160)
  375.   end
  376.   #--------------------------------------------------------------------------
  377.   # ● 背景色 2 の取得
  378.   #--------------------------------------------------------------------------
  379.   def back_color2
  380.     Color.new(0, 0, 0, 0)
  381.   end
  382.   #--------------------------------------------------------------------------
  383.   # ● 初期X位置
  384.   #--------------------------------------------------------------------------
  385.   def start_x
  386.     ShtMsg::SLD_DIR ? (0 - ShtMsg::RECT.width) : (Graphics.width)
  387.   end
  388.   #--------------------------------------------------------------------------
  389.   # ● メッセージセットアップ
  390.   #--------------------------------------------------------------------------
  391.   def setup(type, msg, num=0)
  392.     search_y(ShtMsg::Messenger.new(type, msg, num))
  393.   end
  394.   #--------------------------------------------------------------------------
  395.   # ● Y位置サーチ
  396.   #--------------------------------------------------------------------------
  397.   def search_y(msg)
  398.     y = ShtMsg::VIEW.y
  399.     loop do
  400.       break if @stop
  401.       if @msg.all? {|m| m.y != y }
  402.         push_msg(msg, y)  # 空き場所へ
  403.         return true
  404.       end
  405.       y += ShtMsg::RECT.height + ShtMsg::OFST
  406.       break if y > (ShtMsg::VIEW.y + ShtMsg::VIEW.height - ShtMsg::RECT.height)
  407.     end
  408.     @stk.push(msg)  # 空くまで保持
  409.     return false
  410.   end
  411.   #--------------------------------------------------------------------------
  412.   # ● メッセージ表示開始
  413.   #--------------------------------------------------------------------------
  414.   def push_msg(msg, y)
  415.     @msg.push(Window_ShrtMsgr.new(msg, start_x, y, @bitmap))
  416.     ShtMsg::SE.play unless ShtMsg::SE.nil?
  417.   end
  418.   #--------------------------------------------------------------------------
  419.   # ● ストックの再挿入
  420.   #--------------------------------------------------------------------------
  421.   def shift_stock
  422.     if !@stk.empty? # ストックある場合、空いたらmsg挿入
  423.       loop do
  424.         break unless search_y(@stk.shift)
  425.         break if @stk.empty?
  426.       end
  427.     end
  428.   end
  429.   #--------------------------------------------------------------------------
  430.   # ● フレーム更新
  431.   #--------------------------------------------------------------------------
  432.   def update
  433.     @msg = @msg.each {|m| m.update }.select {|m| !m.disposed? }
  434.     shift_stock unless @stop
  435.   end
  436.   #--------------------------------------------------------------------------
  437.   # ● 簡易メッセージの強制停止
  438.   #--------------------------------------------------------------------------
  439.   def stop
  440.     @msg.each {|m| m.stop }
  441.     @stop = true
  442.   end
  443.   #--------------------------------------------------------------------------
  444.   # ● 簡易メッセージの強制停止解除
  445.   #--------------------------------------------------------------------------
  446.   def restart
  447.     @stop = false
  448.     shift_stock
  449.   end
  450. end


  451. #==============================================================================
  452. # ■ Scene_Map
  453. #==============================================================================
  454. class Scene_Map < Scene_Base
  455.   #--------------------------------------------------------------------------
  456.   # ● 開始処理
  457.   #--------------------------------------------------------------------------
  458.   alias start_shrtmsg start
  459.   def start
  460.     start_shrtmsg
  461.     @msgr = ShtMsg::MsgManager.new
  462.   end
  463.   #--------------------------------------------------------------------------
  464.   # ● 終了処理
  465.   #--------------------------------------------------------------------------
  466.   alias terminate_msg terminate
  467.   def terminate
  468.     terminate_msg
  469.     @msgr.dispose
  470.   end
  471.   #--------------------------------------------------------------------------
  472.   # ● 簡易メッセージ表示
  473.   #--------------------------------------------------------------------------
  474.   def show_msg(type, msg, num=0)
  475.     @msgr.setup(type, msg, num)
  476.   end
  477.   #--------------------------------------------------------------------------
  478.   # ● 簡易メッセージの強制停止
  479.   #--------------------------------------------------------------------------
  480.   def stop_msg
  481.     @msgr.stop
  482.   end
  483.   #--------------------------------------------------------------------------
  484.   # ● 簡易メッセージの強制停止解除
  485.   #--------------------------------------------------------------------------
  486.   def restart
  487.     @msgr.restart
  488.   end
  489.   #--------------------------------------------------------------------------
  490.   # ● フレーム更新
  491.   #--------------------------------------------------------------------------
  492.   alias update_msg update
  493.   def update
  494.     update_msg
  495.     @msgr.update
  496.   end
  497. end
复制代码

如上,这个脚本可以提示队员加入队伍、物品获得、技能习得等信息,请问下怎么提示物品失去、技能遗忘等这种负数的提示。
梦石
0
星屑
22879
在线时间
8598 小时
注册时间
2011-12-31
回帖
3270
发表于 2013-10-16 10:58:05 | 显示全部楼层
本帖最后由 76213585 于 2013-10-31 15:48 编辑

從行120到行159可設定
  1. #--------------------------------------------------------------------------
  2.   def text
  3.     exe if ShtMsg::EXE
  4.     c = ShtMsg::COLOR
  5.     n = @num > 1 ? "#{@num}個" : ""
  6.     case @type
  7.     when 0;  return @msg
  8.     when 1;  return "\\C[#{c}]#{$data_items[@msg].name}\\C[0]を#{n}入手"
  9.     when 2;  return "\\C[#{c}]#{$data_weapons[@msg].name}\\C[0]を#{n}入手"
  10.     when 3;  return "\\C[#{c}]#{$data_armors[@msg].name}\\C[0]を#{n}入手"
  11.     when 4;  return "\\C[#{c}]#{$data_skills[@msg].name}\\C[0]を習得"
  12.     when 5;  return "\\C[#{c}]#{$game_actors[@msg].name}\\C[0]がレベルアップ"
  13.     when 6;  return "\\C[#{c}]#{$game_actors[@msg].name}\\C[0]が仲間になった"
  14.     when 7;  return "\\C[#{c}]#{$game_actors[@msg].name}\\C[0]が離脱した…"
  15.     when 8;  return "\\C[#{c}]#{@msg}#{Vocab::currency_unit}\\C[0]入手"
  16.     when 20; return "『\\C[#{c}]#{$game_system.quest[@msg].name}\\C[0]』開始"
  17.     when 21; return "『\\C[#{c}]#{$game_system.quest[@msg].name}\\C[0]』クリア"
  18.     when 22; return "新語『\\C[#{c}]#{$game_system.dictionary[@msg][@num].name}\\C[0]』"
  19.     end
  20.     return "type error<#{@type},#{@msg}>"
  21.   end
  22.   #--------------------------------------------------------------------------
  23.   # ● 本処理実行
  24.   #--------------------------------------------------------------------------
  25.   def exe
  26.     case @type
  27.     when 1;  $game_party.gain_item($data_items[@msg], @num) if @num > 0
  28.     when 2;  $game_party.gain_item($data_weapons[@msg], @num) if @num > 0
  29.     when 3;  $game_party.gain_item($data_armors[@msg], @num) if @num > 0
  30.     when 4;  $game_actors[@num].learn_skill(@msg) if @num > 0
  31.     when 5;  $game_actors[@msg].level_up
  32.     when 6;  $game_party.add_actor(@msg)
  33.     when 7;  $game_party.remove_actor(@msg)
  34.     when 8;  $game_party.gain_gold(@msg)
  35.     when 20; $game_system.quest[@msg].quest_start
  36.     when 21; $game_system.quest[@msg].quest_clear
  37.     when 22; $game_system.dictionary[@msg][@num].show_flg = true if @num > 0
  38.     end
  39.   end
  40. end
复制代码
回复

使用道具 举报

梦石
0
星屑
50
在线时间
35 小时
注册时间
2013-9-16
回帖
15
 楼主| 发表于 2013-10-16 11:09:09 | 显示全部楼层
tseyik 发表于 2013-10-16 10:58
從行120到行159可設定

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

呃。。。不会设置
回复

使用道具 举报

梦石
0
星屑
22879
在线时间
8598 小时
注册时间
2011-12-31
回帖
3270
发表于 2013-10-16 11:15:24 | 显示全部楼层
本帖最后由 tseyik 于 2013-10-16 11:19 编辑

アイテムの入手
列物品入手
$game_party.gain_item($data_items[n], 1)

n編号道具1個入手
減小場合はgain的部分,1 改成-1。

例減小道具
when 9;  return "\\C[#{c}]#{$data_items[@msg].name}\\C[0]を#{n}失去"

when 9;  $game_party.gain_item($data_items[@msg], -@num) if @num > 0



測試薬水
01.png

评分

参与人数 1星屑 +132 收起 理由
熊喵酱 + 132 认可答案

查看全部评分

回复

使用道具 举报

梦石
0
星屑
50
在线时间
35 小时
注册时间
2013-9-16
回帖
15
 楼主| 发表于 2013-10-16 14:40:53 | 显示全部楼层
tseyik 发表于 2013-10-16 11:15
アイテムの入手
列物品入手
$game_party.gain_item($data_items[n], 1)

谢谢解答,问题已经解决了,太感激了!!!
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部