Project1

标题: 整合RTAB & 技能個別設定... [打印本页]

作者: kenxin    时间: 2007-8-6 08:07
提示: 作者被禁止或删除 内容自动屏蔽
作者: kenxin    时间: 2007-8-6 08:07
提示: 作者被禁止或删除 内容自动屏蔽
作者: K’    时间: 2007-8-6 16:48
  1. #==============================================================================
  2. # 本脚本来自www.66RPG.com,使用和转载请保留此信息
  3. #==============================================================================

  4. # ▼▲▼ XRXS15. スキル名クラス別設定 ▼▲▼
  5. # by 桜雅 在土, シムナフ, fukuyama

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



  47. #==============================================================================
  48. # 本脚本来自www.66RPG.com,使用和转载请保留此信息
  49. #==============================================================================
复制代码



RTAB0.16b带彩虹神剑的效果 [LINE]1,#dddddd[/LINE]系统信息:本贴获得楼主认可,66RPG感谢您的热情解答~
作者: kenxin    时间: 2007-8-6 22:21
提示: 作者被禁止或删除 内容自动屏蔽




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