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

Project1

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

[已经解决] 如何删除打开任务/加点系统界面后背景的背景暗化效果?

[复制链接]

Lv3.寻梦者

虚空人形

梦石
0
星屑
4604
在线时间
2037 小时
注册时间
2011-8-11
帖子
3398

贵宾

跳转到指定楼层
1
发表于 2013-12-2 13:16:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
本帖最后由 hcm 于 2013-12-2 13:20 编辑

以下的任务系统和加点系统在开启界面后地图会极限暗化(淡出),请问如何去除这一效果。
希望透过半透明的窗口可以正常看到地图,像商店界面等那样。。

任务系统:
  1. =begin
  2. 领取任务:$game_party.get_task(任意数字,任务名称,任务描述)
  3. 完成任务:$game_party.finish_task(领取任务时设定的数字)
  4. 对已有任务追加说明:$game_party.add_task(任务编号,任务追加描述)

  5. 如:
  6. 前面有事件$game_party.get_task(1,"测试","只是测试")

  7. 此时任务1的说明为

  8. >只是测试

  9. 后面完成任务的脚本就是$game_party.finish_task(1)

  10. 追加说明$game_party.add_task(1,"真的只是测试哦")

  11. 此时任务1的说明为:
  12. >只是测试
  13. >真的只是测试哦

  14. 召唤任务界面:SceneManager.call(Scene_Task)

  15. 该脚本来自66rpg,发布者:韩云溪
  16. 改进:工藤由纪(论坛ID:zyyczp)
  17. =end

  18. #===========================================================
  19. #●任务系统
  20. #===========================================================
  21. class Task
  22.   attr_reader :desc
  23.   attr_reader :finished
  24.   def initialize(origin_name,desc)
  25.     @origin_name = origin_name
  26.     @desc = desc
  27.     @finished = false
  28.   end
  29.   def name
  30.     if @finished
  31.       return @origin_name + ""
  32.     else
  33.       return @origin_name
  34.     end
  35.   end
  36.   def desc=(desc)
  37.     @desc = desc
  38.   end
  39.   
  40.   def finish
  41.     @finished = true
  42.   end
  43.    
  44. end

  45. class Game_Party < Game_Unit
  46.   alias old_init initialize
  47.   def initialize
  48.     old_init
  49.     @tasks = {}
  50.   end
  51.   def add_task(i,desc)
  52.     @tasks[i].desc = @tasks[i].desc + "\n" + desc
  53.   end
  54.   def get_task(i,name,desc)
  55.     @tasks[i]=Task.new(name,desc)
  56.   end
  57.   def have_task?(i)
  58.     @tasks[i] != nil
  59.   end
  60.   def finish_task(i)
  61.     @tasks[i].finish if have_task?(i)
  62.   end
  63.   def unfinished_tasks
  64.     n = []
  65.     for i in @tasks.values
  66.       next if i.finished
  67.       n.push(i)
  68.     end
  69.     return n
  70.   end
  71.   def finished_tasks
  72.     n = []
  73.     for i in @tasks.values
  74.       next unless i.finished
  75.       n.push(i)
  76.     end
  77.     return n
  78.   end
  79. end

  80. class Window_Task_Type < Window_HorzCommand
  81.   #--------------------------------------------------------------------------
  82.   # ● オブジェクト初期化
  83.   #--------------------------------------------------------------------------
  84.   def initialize
  85.     super(0, 0)
  86.     activate
  87.   end
  88.   def window_width
  89.     return Graphics.width
  90.   end
  91.   def col_max
  92.     return 3
  93.   end
  94.   #--------------------------------------------------------------------------
  95.   # ● コマンドリストの作成
  96.   #--------------------------------------------------------------------------
  97.   def make_command_list
  98.     add_command("未完成任务",  :unfinished_task)
  99.     add_command("已完成任务", :finished_task)
  100.     add_command("取消", :cancel)
  101.   end
  102. end

  103. class Window_TaskLeft < Window_Selectable
  104.   attr_reader :finished
  105.   def initialize
  106.     super(0,48,160,Graphics.height - 48)
  107.     create_contents
  108.     @finished = false
  109.     [url=home.php?mod=space&uid=370741]@Index[/url] = 0
  110.     refresh
  111.     deactivate
  112.   end
  113.   def set_finish(finish)
  114.     @finished = finish
  115.     set_item_max
  116.   end
  117.   def item_max
  118.     return @item_max != nil ? @item_max : 0
  119.   end
  120.   def set_item_max
  121.     if @finished
  122.       @item_max = $game_party.finished_tasks.size
  123.     else
  124.       @item_max = $game_party.unfinished_tasks.size
  125.     end
  126.   end

  127.   def refresh
  128.     set_item_max
  129.     super
  130.   end
  131.   #--------------------------------------------------------------------------
  132.   # ● 項目の描画
  133.   #--------------------------------------------------------------------------
  134.   def draw_item(index)
  135.     text = ""
  136.     unless @finished
  137.       if $game_party.unfinished_tasks[index] != nil
  138.         text = $game_party.unfinished_tasks[index].name
  139.       end
  140.     else
  141.       if $game_party.finished_tasks[index] != nil
  142.         text = $game_party.finished_tasks[index].name  
  143.       end
  144.     end
  145.     draw_text(item_rect_for_text(index), text)
  146.   end

  147. end

  148. class Window_TaskRight < Window_Base
  149.   attr_reader :left_index
  150.   def initialize
  151.     super(160,48,Graphics.width - 160,Graphics.height - 48)
  152.     create_contents
  153.     @left_index = 0
  154.     @finished = false
  155.     refresh
  156.   end
  157.   def set_index(i)
  158.     @left_index = i
  159.     refresh
  160.   end
  161.   def set_finish(i)
  162.     @finished = i
  163.   end
  164.   
  165.   def refresh
  166.     contents.clear
  167.     draw_desc
  168.   end
  169.   def draw_desc
  170.     if @finished
  171.       if $game_party.finished_tasks[@left_index] != nil
  172.         draw_text_ex(0,0,$game_party.finished_tasks[@left_index].desc)
  173.       end
  174.     else
  175.       if $game_party.unfinished_tasks[@left_index] != nil
  176.         draw_text_ex(0,0,$game_party.unfinished_tasks[@left_index].desc)
  177.       end
  178.     end
  179.   end
  180.   
  181. end

  182. class Scene_Task < Scene_Base
  183.   def start
  184.     super
  185.     create_task_type_window
  186.     create_left_window
  187.     create_right_window
  188.   end
  189.   def update
  190.     super
  191.     if @left_window.active
  192.       if Input.trigger?(:B)
  193.         @left_window.deactivate
  194.         @task_type_window.activate
  195.       end
  196.       if Input.trigger?(:UP) || Input.trigger?(:DOWN)
  197.         @right_window.set_finish(@left_window.finished)
  198.         @right_window.set_index(@left_window.index)
  199.       end
  200.     end
  201.   end
  202.   
  203.   def terminate
  204.     super
  205.   end
  206.   def create_task_type_window
  207.     @task_type_window = Window_Task_Type.new
  208.     @task_type_window.set_handler(:unfinished_task,method(:view_unfinished_task))
  209.     @task_type_window.set_handler(:finished_task,method(:view_finished_task))
  210.     @task_type_window.set_handler(:cancel,method(:return_scene))
  211.   end
  212.   def create_left_window
  213.     @left_window = Window_TaskLeft.new
  214.     @left_window.set_finish(false)
  215.     @left_window.refresh
  216.   end
  217.   def create_right_window
  218.     @right_window = Window_TaskRight.new
  219.     @right_window.refresh
  220.   end
  221.   def view_unfinished_task
  222.     @left_window.set_finish(false)
  223.     @left_window.refresh
  224.     @left_window.activate
  225.     @task_type_window.deactivate
  226.     @right_window.set_finish(false)
  227.     @right_window.set_index(@left_window.index)
  228.   end
  229.   def view_finished_task
  230.     @left_window.set_finish(true)
  231.     @left_window.refresh
  232.     @left_window.activate
  233.     @task_type_window.deactivate
  234.     @right_window.set_finish(true)
  235.     @right_window.set_index(@left_window.index)
  236.   end
  237. end
复制代码
加点系统:
  1. #原作者:superufo
  2. #转换者:消失的三千
  3. #原脚本出处:http://rpg.blue/thread-73243-1-1.html
  4. #要修改加点的属性在280~318行
  5. LEVEL_UP_POINT = 3 #升级时所获得的点数
  6. LEVEL_UP_VARIABLE = 50 #控制角色属性点的变量
  7.                        #比如说角色ID1的属性变量就是51,ID2就是52,依此推类

  8. class Game_Actor < Game_Battler
  9.   def level_up
  10.     [url=home.php?mod=space&uid=22147]@level[/url] += 1
  11.     $game_variables[self.id + LEVEL_UP_VARIABLE] += LEVEL_UP_POINT
  12.     for learning in self.class.learnings
  13.       learn_skill(learning.skill_id) if learning.level == @level
  14.     end
  15.   end
  16. end

  17. class Window_PointCommand < Window_Command
  18.   def initialize
  19.     super(25,200)
  20.     self.opacity = 0
  21.     self.z = 1000
  22.     open
  23.   end
  24.   def window_width
  25.     return 115
  26.   end
  27.   def make_command_list
  28.     add_command("+MHP", :HPBoost)#(Vocab::param(0), :HPBoost)
  29.     add_command("+MSP", :MPBoost)#(Vocab::param(1), :MPBoost)
  30.     add_command("+ATK", :ATKBoost)#(Vocab::param(2), :ATKBoost)
  31.     add_command("+DEF", :DEFBoost)#(Vocab::param(3), :DEFBoost)
  32.     add_command("+MAT", :MATBoost)#(Vocab::param(4), :MATBoost)
  33.     add_command("+MDF", :MDFBoost)#(Vocab::param(5), :MDFBoost)
  34.     add_command("+AGI", :AGIBoost)#(Vocab::param(6), :AGIBoost)
  35.     add_command("+LUK", :LUKBoost)#(Vocab::param(7), :LUKBoost)
  36.     add_command("重叠加点", :PointReset)
  37.     add_command("确认加点", :PointBoost)
  38.   end
  39.   def point_enought
  40.     $point > 0
  41.   end
  42. end

  43. class Window_Base < Window
  44.   def draw_actor_hp_lvup(actor, x, y)
  45.     self.contents.font.color = system_color
  46.     self.contents.draw_text(x , y, 96, 32, Vocab::param(0))
  47.     if $temp_hp == 0
  48.       self.contents.font.color = normal_color
  49.       self.contents.draw_text(x + 70 , y, 48, 32, actor.mhp.to_s, 2)
  50.     else
  51.       mhp = actor.mhp + $temp_hp
  52.       self.contents.font.color = Color.new(255, 128, 128, 255)
  53.       self.contents.draw_text(x + 75 , y, 48, 32, mhp.to_s ,2)
  54.       self.contents.font.color = normal_color      
  55.       if $temp_hp >=0
  56.         self.contents.font.color = Color.new(255, 128, 128, 255)
  57.         self.contents.draw_text(x + 105, y, 36, 32, " +",2)
  58.       else
  59.         self.contents.font.color = Color.new(255,255,0,255)
  60.         self.contents.draw_text(x + 105, y, 36, 32, " -",2)
  61.       end
  62.       self.contents.draw_text(x + 145, y, 32, 32, $temp_hp.to_s, 1)
  63.       self.contents.font.color = normal_color
  64.     end
  65.   end
  66.   def draw_actor_mp_lvup(actor, x, y)
  67.     self.contents.font.color = system_color
  68.     self.contents.draw_text(x , y, 96, 32, Vocab::param(1))
  69.     if $temp_mp == 0
  70.       self.contents.font.color = normal_color
  71.       self.contents.draw_text(x + 70 , y, 48, 32, actor.mmp.to_s, 2)
  72.     else
  73.       mmp = actor.mmp + $temp_mp
  74.       self.contents.font.color = Color.new(255, 128, 128, 255)
  75.       self.contents.draw_text(x + 75 , y, 48, 32, mmp.to_s ,2)
  76.       self.contents.font.color = normal_color      
  77.       if $temp_mp >=0
  78.         self.contents.font.color = Color.new(255, 128, 128, 255)
  79.         self.contents.draw_text(x + 105, y, 36, 32, " +",2)
  80.       else
  81.         self.contents.font.color = Color.new(255,255,0,255)
  82.         self.contents.draw_text(x + 105, y, 36, 32, " -",2)
  83.       end
  84.       self.contents.draw_text(x + 145, y, 32, 32, $temp_mp.to_s, 1)
  85.       self.contents.font.color = normal_color
  86.     end
  87.   end
  88.   def draw_actor_lvup(actor, x, y, type)
  89.     lvup = normal_color
  90.     upcolor = Color.new(255, 128, 128, 255)
  91.     self.contents.font.color = normal_color   
  92.     case type
  93.     when 0
  94.       parameter_name = Vocab::param(2)
  95.       parameter_value = actor.atk
  96.       parameter_value_temp = parameter_value + $temp_atk
  97.       if $temp_atk != 0
  98.         lvup = upcolor
  99.         if $temp_atk >= 0
  100.           self.contents.font.color = lvup
  101.           self.contents.draw_text(x + 205, y, 80, 32, "+",0)
  102.         else
  103.           self.contents.font.color = Color.new(255,255,0,255)
  104.           self.contents.draw_text(x + 205, y, 80, 32, "-",0)
  105.         end        
  106.         self.contents.draw_text(x + 205, y, 88, 32, $temp_atk.abs.to_s,1)
  107.         self.contents.font.color = normal_color
  108.       end
  109.     when 1
  110.       parameter_name = Vocab::param(3)
  111.       parameter_value = actor.def
  112.       parameter_value_temp = parameter_value + $temp_def
  113.       if $temp_def != 0
  114.         lvup = upcolor
  115.         if $temp_def >= 0
  116.           self.contents.font.color = lvup
  117.           self.contents.draw_text(x + 205, y, 80, 32, "+",0)
  118.         else
  119.           self.contents.font.color = Color.new(255,255,0,255)
  120.           self.contents.draw_text(x + 205, y, 80, 32, "-",0)
  121.         end        
  122.         self.contents.draw_text(x + 205, y, 88, 32, $temp_def.abs.to_s,1)
  123.         self.contents.font.color = normal_color
  124.       end
  125.     when 2
  126.       parameter_name = Vocab::param(4)
  127.       parameter_value = actor.mat
  128.       parameter_value_temp = parameter_value + $temp_mat
  129.       if $temp_mat != 0
  130.         lvup = upcolor
  131.         if $temp_mat >= 0
  132.           self.contents.font.color = lvup
  133.           self.contents.draw_text(x + 205, y, 80, 32, "+",0)
  134.         else
  135.           self.contents.font.color = Color.new(255,255,0,255)
  136.           self.contents.draw_text(x + 205, y, 80, 32, "-",0)
  137.         end        
  138.         self.contents.draw_text(x + 205, y, 88, 32, $temp_mat.abs.to_s,1)
  139.         self.contents.font.color = normal_color
  140.       end
  141.     when 3
  142.       parameter_name = Vocab::param(5)
  143.       parameter_value = actor.mdf
  144.       parameter_value_temp = parameter_value + $temp_mdf
  145.       if $temp_mdf != 0
  146.         lvup = upcolor
  147.         if $temp_mdf >= 0
  148.           self.contents.font.color = lvup
  149.           self.contents.draw_text(x + 205, y, 80, 32, "+",0)
  150.         else
  151.           self.contents.font.color = Color.new(255,255,0,255)
  152.           self.contents.draw_text(x + 205, y, 80, 32, "-",0)
  153.         end        
  154.         self.contents.draw_text(x + 205, y, 88, 32, $temp_mdf.abs.to_s,1)
  155.         self.contents.font.color = normal_color
  156.       end
  157.     when 4
  158.       parameter_name = Vocab::param(6)
  159.       parameter_value = actor.agi
  160.       parameter_value_temp = parameter_value + $temp_agi
  161.       if $temp_agi != 0
  162.         lvup = upcolor
  163.         if $temp_agi >= 0
  164.           self.contents.font.color = lvup
  165.           self.contents.draw_text(x + 205, y, 80, 32, "+",0)
  166.         else
  167.           self.contents.font.color = Color.new(255,255,0,255)
  168.           self.contents.draw_text(x + 205, y, 80, 32, "-",0)
  169.         end        
  170.         self.contents.draw_text(x + 205, y, 88, 32, $temp_agi.abs.to_s,1)
  171.         self.contents.font.color = normal_color
  172.       end
  173.     when 5
  174.       parameter_name = Vocab::param(7)
  175.       parameter_value = actor.luk
  176.       parameter_value_temp = parameter_value + $temp_luk
  177.       if $temp_luk != 0
  178.         lvup = upcolor
  179.         if $temp_luk >= 0
  180.           self.contents.font.color = lvup
  181.           self.contents.draw_text(x + 205, y, 80, 32, "+",0)
  182.         else
  183.           self.contents.font.color = Color.new(255,255,0,255)
  184.           self.contents.draw_text(x + 205, y, 80, 32, "-",0)
  185.         end        
  186.         self.contents.draw_text(x + 205, y, 88, 32, $temp_luk.abs.to_s,1)
  187.         self.contents.font.color = normal_color
  188.       end
  189.     end
  190.     self.contents.font.color = system_color
  191.     self.contents.draw_text(x, y, 120, 32, parameter_name)
  192.     self.contents.font.color = normal_color
  193.     self.contents.draw_text(x + 86, y, 36, 32, parameter_value.to_s)
  194.     self.contents.draw_text(x + 110, y, 36, 32, "→")
  195.     self.contents.font.color = lvup
  196.     self.contents.draw_text(x + 146, y, 96, 32, parameter_value_temp.to_s)
  197.     self.contents.font.color = normal_color            
  198.   end
  199. end

  200. class Window_Lvpoint < Window_Base
  201.   def initialize
  202.     super(28,300,180,60)
  203.     self.opacity = 0
  204.     refresh
  205.   end
  206.   def refresh
  207.     self.contents.clear
  208.     parameter_name = "剩余点数"
  209.     parameter_value = $point
  210.     self.contents.font.color = system_color
  211.     self.contents.draw_text(0, 0, self.contents.width, self.contents.height, parameter_name)
  212.     self.contents.font.color = normal_color
  213.     self.contents.draw_text(0, 0, self.contents.width, self.contents.height, parameter_value.to_s,2)
  214.   end
  215. end

  216. class Window_Lvup < Window_Base
  217.   def initialize
  218.     super(0, 0, 800, 544)
  219. #    self.opacity = 0
  220.     self.contents = Bitmap.new(width - 25, height - 25)
  221.     [url=home.php?mod=space&uid=95897]@actor[/url] = $game_party.menu_actor
  222.     refresh
  223.   end  
  224.   def refresh
  225.     self.contents.clear
  226.     draw_actor_face(@actor, 0, 0)
  227.     change_color(system_color)
  228.     draw_text(30, 15, 180, line_height, "Name:")
  229.     draw_text(260, 15, 180, line_height, "Race:")
  230.     draw_text(450, 15, 180, line_height, "Nickname:")
  231.     change_color(normal_color)
  232.     draw_actor_name(@actor, 90, 15)
  233.     draw_actor_class(@actor, 290, 15)
  234.     draw_actor_nickname(@actor, 550, 15)
  235.     draw_actor_level(@actor, 130, 270)
  236.     draw_actor_hp_lvup(@actor, 120, 55)
  237.     draw_actor_mp_lvup(@actor, 120, 79)
  238.     draw_actor_lvup(@actor, 120, 103, 0)
  239.     draw_actor_lvup(@actor, 120, 127, 1)
  240.     draw_actor_lvup(@actor, 120, 151, 2)
  241.     draw_actor_lvup(@actor, 120, 175, 3)
  242.     draw_actor_lvup(@actor, 120, 199, 4)
  243.     draw_actor_lvup(@actor, 120, 223, 5)
  244.   end
  245. end



  246. class Scene_Lvup < Scene_Base
  247.   def initialize
  248. #    super(128,128,128,58)
  249.     [url=home.php?mod=space&uid=95897]@actor[/url] = $game_party.menu_actor
  250.     set_data
  251.     create_window
  252.   end
  253.    def dispose_background
  254.      @background_sprite.dispose
  255.    end
  256.   def create_window
  257.     @command_window = Window_PointCommand.new
  258.     @command_window.set_handler(:HPBoost, method(:CommandHPBoost))
  259.     @command_window.set_handler(:MPBoost, method(:CommandMPBoost))
  260.     @command_window.set_handler(:ATKBoost, method(:CommandATKBoost))
  261.     @command_window.set_handler(:DEFBoost, method(:CommandDEFBoost))
  262.     @command_window.set_handler(:MATBoost, method(:CommandMATBoost))
  263.     @command_window.set_handler(:MDFBoost, method(:CommandMDFBoost))
  264.     @command_window.set_handler(:AGIBoost, method(:CommandAGIBoost))
  265.     @command_window.set_handler(:LUKBoost, method(:CommandLUKBoost))
  266.     @command_window.set_handler(:PointReset, method(:reset_point))
  267.     @command_window.set_handler(:PointBoost, method(:process_point))
  268.     @command_window.set_handler(:cancel,    method(:return_scene))
  269.     @command_window.y = 56
  270.     @lvup_window = Window_Lvup.new
  271.     @lvpoint_window = Window_Lvpoint.new
  272.   end
  273.   def set_data
  274.     reset_point
  275.    
  276.     @hp_hp = 15;@hp_mp = 0
  277.     @hp_atk = 0;@hp_def = 0
  278.     @hp_mat = 0;@hp_mdf = 0
  279.     @hp_agi = 0;@hp_luk = 0
  280.    
  281.     @mp_hp = 0;@mp_mp = 10
  282.     @mp_atk = 0;@mp_def = 0
  283.     @mp_mat = 0;@mp_mdf = 0
  284.     @mp_agi = 0;@mp_luk = 0
  285.    
  286.     @atk_hp = 0;@atk_mp = 0
  287.     @atk_atk = 1;@atk_def = 0
  288.     @atk_mat = 0;@atk_mdf = 0
  289.     @atk_agi = 0;@atk_luk = 0
  290.    
  291.     @def_hp = 0;@def_mp = 0
  292.     @def_atk = 0;@def_def = 1
  293.     @def_mat = 0;@def_mdf = 0
  294.     @def_agi = 0;@def_luk = 0
  295.    
  296.     @mat_hp = 0;@mat_mp = 0
  297.     @mat_atk = 0;@mat_def = 0
  298.     @mat_mat = 1;@mat_mdf = 0
  299.     @mat_agi = 0;@mat_luk = 0
  300.    
  301.     @mdf_hp = 0;@mdf_mp = 0
  302.     @mdf_atk = 0;@mdf_def = 0
  303.     @mdf_mat = 0;@mdf_mdf = 1
  304.     @mdf_agi = 0;@mdf_luk = 0
  305.    
  306.     @agi_hp = 0;@agi_mp = 0
  307.     @agi_atk = 0;@agi_def = 0
  308.     @agi_mat = 0;@agi_mdf = 0
  309.     @agi_agi = 1;@agi_luk = 0
  310.    
  311.     @luk_hp = 0;@luk_mp = 0
  312.     @luk_atk = 0;@luk_def = 0
  313.     @luk_mat = 0;@luk_mdf = 0
  314.     @luk_agi = 0;@luk_luk = 1
  315.   end
  316.   def window_refresh
  317.     @lvup_window.refresh
  318.     @lvpoint_window.refresh
  319.     @command_window.activate
  320.   end
  321.   def CommandHPBoost
  322.     Sound.play_buzzer if $point == 0
  323.     @command_window.activate if $point == 0
  324.     return if $point == 0
  325.     $temp_hp += @hp_hp
  326.     $temp_mp += @hp_mp
  327.     $temp_atk += @hp_atk
  328.     $temp_def += @hp_def
  329.     $temp_mat += @hp_mat
  330.     $temp_mdf += @hp_mdf
  331.     $temp_agi += @hp_agi
  332.     $temp_luk += @hp_luk
  333.     $point -= 1
  334.     window_refresh
  335.   end
  336.   def CommandMPBoost
  337.     Sound.play_buzzer if $point == 0
  338.     @command_window.activate if $point == 0
  339.     return if $point == 0
  340.     $temp_hp += @mp_hp
  341.     $temp_mp += @mp_mp
  342.     $temp_atk += @mp_atk
  343.     $temp_def += @mp_def
  344.     $temp_mat += @mp_mat
  345.     $temp_mdf += @mp_mdf
  346.     $temp_agi += @mp_agi
  347.     $temp_luk += @mp_luk
  348.     $point -= 1
  349.     window_refresh
  350.   end
  351.   def CommandATKBoost
  352.     Sound.play_buzzer if $point == 0
  353.     @command_window.activate if $point == 0
  354.     return if $point == 0
  355.     $temp_hp += @atk_hp
  356.     $temp_mp += @atk_mp
  357.     $temp_atk += @atk_atk
  358.     $temp_def += @atk_def
  359.     $temp_mat += @atk_mat
  360.     $temp_mdf += @atk_mdf
  361.     $temp_agi += @atk_agi
  362.     $temp_luk += @atk_luk
  363.     $point -= 1
  364.     window_refresh
  365.   end
  366.   def CommandDEFBoost
  367.     Sound.play_buzzer if $point == 0
  368.     @command_window.activate if $point == 0
  369.     return if $point == 0
  370.     $temp_hp += @def_hp
  371.     $temp_mp += @def_mp
  372.     $temp_atk += @def_atk
  373.     $temp_def += @def_def
  374.     $temp_mat += @def_mat
  375.     $temp_mdf += @def_mdf
  376.     $temp_agi += @def_agi
  377.     $temp_luk += @def_luk
  378.     $point -= 1
  379.     window_refresh
  380.   end
  381.   def CommandMATBoost
  382.     Sound.play_buzzer if $point == 0
  383.     @command_window.activate if $point == 0
  384.     return if $point == 0
  385.     $temp_hp += @mat_hp
  386.     $temp_mp += @mat_mp
  387.     $temp_atk += @mat_atk
  388.     $temp_def += @mat_def
  389.     $temp_mat += @mat_mat
  390.     $temp_mdf += @mat_mdf
  391.     $temp_agi += @mat_agi
  392.     $temp_luk += @mat_luk
  393.     $point -= 1
  394.     window_refresh
  395.   end
  396.   def CommandMDFBoost
  397.     Sound.play_buzzer if $point == 0
  398.     @command_window.activate if $point == 0
  399.     return if $point == 0
  400.     $temp_hp += @mdf_hp
  401.     $temp_mp += @mdf_mp
  402.     $temp_atk += @mdf_atk
  403.     $temp_def += @mdf_def
  404.     $temp_mat += @mdf_mat
  405.     $temp_mdf += @mdf_mdf
  406.     $temp_agi += @mdf_agi
  407.     $temp_luk += @mdf_luk
  408.     $point -= 1
  409.     window_refresh
  410.   end
  411.   def CommandAGIBoost
  412.     Sound.play_buzzer if $point == 0
  413.     @command_window.activate if $point == 0
  414.     return if $point == 0
  415.     $temp_hp += @agi_hp
  416.     $temp_mp += @agi_mp
  417.     $temp_atk += @agi_atk
  418.     $temp_def += @agi_def
  419.     $temp_mat += @agi_mat
  420.     $temp_mdf += @agi_mdf
  421.     $temp_agi += @agi_agi
  422.     $temp_luk += @agi_luk
  423.     $point -= 1
  424.     window_refresh
  425.   end
  426.   def CommandLUKBoost
  427.     Sound.play_buzzer if $point == 0
  428.     @command_window.activate if $point == 0
  429.     return if $point == 0
  430.     $temp_hp += @luk_hp
  431.     $temp_mp += @luk_mp
  432.     $temp_atk += @luk_atk
  433.     $temp_def += @luk_def
  434.     $temp_mat += @luk_mat
  435.     $temp_mdf += @luk_mdf
  436.     $temp_agi += @luk_agi
  437.     $temp_luk += @luk_luk
  438.     $point -= 1
  439.     window_refresh
  440.   end
  441.   def reset_point
  442.     $point = $game_variables[@actor.id + LEVEL_UP_VARIABLE]
  443.     $temp_hp = 0
  444.     $temp_mp = 0
  445.     $temp_atk = 0
  446.     $temp_def = 0
  447.     $temp_mat = 0
  448.     $temp_mdf = 0
  449.     $temp_agi = 0
  450.     $temp_luk = 0
  451.     window_refresh if @command_window != nil
  452.   end
  453.   def process_point
  454.     if $temp_hp + $temp_mp + $temp_atk + $temp_def + $temp_mat + $temp_mdf + $temp_agi + $temp_luk < 1
  455.       Sound.play_buzzer
  456.       @command_window.activate
  457.       return
  458.     else
  459.       $game_variables[@actor.id + LEVEL_UP_VARIABLE] = $point
  460.       @actor.add_param(0, $temp_hp)
  461.       @actor.add_param(1, $temp_mp)
  462.       @actor.add_param(2, $temp_atk)
  463.       @actor.add_param(3, $temp_def)
  464.       @actor.add_param(4, $temp_mat)
  465.       @actor.add_param(5, $temp_mdf)
  466.       @actor.add_param(6, $temp_agi)
  467.       @actor.add_param(7, $temp_luk)
  468.       reset_point
  469.     end
  470.   end
  471. end
复制代码

Lv2.观梦者 (暗夜天使)

梦石
0
星屑
266
在线时间
2355 小时
注册时间
2009-3-13
帖子
2309

贵宾

2
发表于 2013-12-2 15:46:05 | 只看该作者
本帖最后由 Sion 于 2013-12-2 15:47 编辑
  1. class Scene_Task < Scene_Base
复制代码
改成
  1. class Scene_Task < Scene_MenuBase
复制代码
就可以了
加点的应该也差不多

评分

参与人数 1星屑 +100 收起 理由
hcm + 100 认可答案

查看全部评分

回复 支持 反对

使用道具 举报

Lv3.寻梦者

虚空人形

梦石
0
星屑
4604
在线时间
2037 小时
注册时间
2011-8-11
帖子
3398

贵宾

3
 楼主| 发表于 2013-12-3 08:51:54 | 只看该作者
本帖最后由 hcm 于 2013-12-3 08:54 编辑
Sion 发表于 2013-12-2 15:46
改成就可以了
加点的应该也差不多


多谢版主。

顺便问一下:http://rpg.blue/thread-339725-1-1.html是否可以回答?
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-11-17 07:23

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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