Project1

标题: 求解决!~ [打印本页]

作者: 靰鞡靰鞡瓦鰰鰰    时间: 2013-4-25 17:20
标题: 求解决!~
本帖最后由 hys111111 于 2013-4-25 18:15 编辑

这要肿么解决?所有的脚本——
作者: 靰鞡靰鞡瓦鰰鰰    时间: 2013-4-25 17:20
新人一只。
作者: 亿万星辰    时间: 2013-4-25 17:36
你这个@actor_window_command是Window_CommandIcon类的对象,无法使用Window_Command的方法set_command_window。
作者: 靰鞡靰鞡瓦鰰鰰    时间: 2013-4-25 21:07
毛意思?说新人话,通俗点{:2_268:}
作者: 靰鞡靰鞡瓦鰰鰰    时间: 2013-4-25 21:23
本帖最后由 hcm 于 2013-5-10 12:55 编辑
  1. # ▼▲▼ XRXS15. スキル名クラス別設定 ▼▲▼
  2. # by 桜雅 在土, シムナフ, fukuyama

  3. #==============================================================================
  4. # □ RPG::Class
  5. #==============================================================================
  6. module RPG
  7.   class Class
  8.     def name
  9.       name = @name.split(/,/)[0]
  10.       return name != nil ? name : ''
  11.     end
  12.     def name=(str)
  13.       str2 = @name[/^[^,]*(,.*)/, 1]
  14.       @name = str2 != nil ? str + str2 : str
  15.     end
  16.     def word_skill
  17.       name = @name.split(/,/)[1]
  18.       return name != nil ? name : $data_system.words.skill
  19.     end
  20.   end
  21. end
  22. #==============================================================================
  23. # ■ Window_Command
  24. #==============================================================================
  25. class Window_Command
  26.   def set_command_name(index, name)
  27.     @commands[index] = name
  28.     refresh
  29.   end
  30. end
  31.   
  32. #==============================================================================
  33. # ■ Scene_Battle
  34. #==============================================================================
  35. class Scene_Battle
  36.   alias skill_names_original_phase3_setup_command_window phase3_setup_command_window
  37.   def phase3_setup_command_window
  38.     skill_names_original_phase3_setup_command_window
  39.     return if @active_battler.nil?
  40.     word_skill = $data_classes[@active_battler.class_id].word_skill
  41.     @actor_command_window.set_command_name(1234,word_skill)
  42.   end
  43. end



  44. #==============================================================================
  45. # 本脚本来自66RPG,使用和转载请保留此信息
  46. #==============================================================================
复制代码
那,求修改个差不多的




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