Project1

标题: 屬性加點腳本問題 [打印本页]

作者: elemmy72    时间: 2017-7-20 23:43
标题: 屬性加點腳本問題


問題:物理反擊被HP再生取代掉了 冏

很嚴重的問題,我在添加能力那兒添加的物理反擊+10%,進遊戲卻變成了HP再生+10%
經過我一番調查之後,發現是魔法小肉包奆奆修改的部分所導致的問題…
但我仍然需要這份修改腳本,不想刪除他呀!
請問有哪位大哥大姐能幫個忙急救一下錯誤的地方呢…
作者: 魔法丶小肉包    时间: 2017-7-21 11:22
把我之前改的脚本部分完全删掉,换上这个试一下
RUBY 代码复制
  1. class Window_Point_Actor < Window_Base
  2.   def draw_actor_param_point(x,y)
  3.       draw_actor_param_to_s(x,y,0)
  4.       draw_actor_param_to_s(x,y+16,1)
  5.       draw_actor_param_to_s(x,y+16*3,2)
  6.       draw_actor_param_to_s(x,y+16*5,3)
  7.       draw_actor_param_to_s(x,y+16*5,4)
  8.       draw_actor_param_to_s(x,y+16*6,5)
  9.       draw_actor_param_to_s(x,y+16*6,6)
  10.       draw_actor_param_to_s(x,y+16*7,7)
  11.   end
  12.   def draw_actor_xparam_point(x,y)
  13.     2.times {|i| draw_actor_xparam_to_s(x,y-80+16*3,i)}#
  14.     draw_actor_xparam_to_s(x,y-96-16*8,7)
  15.     draw_actor_xparam_to_s(x,y-96-16*7,8)
  16.     draw_actor_xparam_to_s(x,y-96-16*7,9)
  17.     draw_actor_xparam_to_s(x,y-96+16*4,4)
  18.     draw_actor_xparam_to_s(x,y-96+16*8,3)
  19.     draw_actor_xparam_to_s(x,y-96+16*11,2)
  20.   end
  21.   def draw_actor_xparam_to_s(x,y,xparam_id)
  22.     a=0.00
  23.     for i in 0 .. POINT_KIND-1
  24.       a+=($temp_point[i]*POINT_ADD_XPARAM[i][xparam_id]/10000.0)
  25.     end
  26.     s1 = XARAM_NAME[xparam_id]
  27.     s2 = sprintf("%02.2f%%",@actor.xparam(xparam_id)*100)
  28.     s3 = sprintf("%02.2f%%",(@actor.xparam(xparam_id) + a)*100)
  29.  
  30.     if @index < POINT_KIND
  31.       if POINT_ADD_XPARAM[@index][xparam_id]==0
  32.         s4=""
  33.       else
  34.         s4 = sprintf("+%02.2f%%",POINT_ADD_XPARAM[@index][xparam_id]/100.0)
  35.       end
  36.     else
  37.       s4 = ""
  38.     end
  39.  
  40.     change_color(system_color)
  41.     draw_text(x+20,y+16*xparam_id,100,line_height,s1)
  42.     change_color(normal_color)
  43.     s2+= " →"
  44.     draw_text(x+82,y+16*xparam_id,120,line_height,s2,2)
  45.     change_color(system_color)
  46.     draw_text(x+150,y+16*xparam_id,100,line_height,s3,2)
  47.     change_color(normal_color)
  48.     contents.font.size = 14
  49.     draw_text(x+266,y+16*xparam_id,100,line_height,s4)
  50.     contents.font.size = 16
  51.   end
  52. end





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