发一段那部分的代码吧 也许能对问题有所帮助
另外本人用的还是未汉化的那个XAS脚本……
#=============================================================================== # ■ Game Actor #=============================================================================== class Game_Actor < Game_Battler attr_accessor :ct attr_accessor :ct_max attr_accessor :ct_speed attr_accessor :ct_wait #-------------------------------------------------------------------------- # ● Iinitialize #-------------------------------------------------------------------------- alias xas_ct_initialize initialize def initialize(actor_id) xas_ct_initialize(actor_id) @ct_max = 100 @ct = @ct_max @ct_speed = 1 @ct_wait = false setup_initial_ct(actor_id) end #-------------------------------------------------------------------------- # ● Setup Initial CT #-------------------------------------------------------------------------- def setup_initial_ct(actor_id) ct_par = XAS_CT_SYSTEM::ACTOR_INITIAL_CT[actor_id] if ct_par != nil @ct_max = ct_par[0] @ct_speed = ct_par[1] @ct = @ct_max end end #-------------------------------------------------------------------------- # ● CT #-------------------------------------------------------------------------- def ct n = [[@ct, 0].max, @ct_max].min return n end #-------------------------------------------------------------------------- # ● CT Max #-------------------------------------------------------------------------- def ct_max n = [[@ct_max, 1].max, 9999].min return n end #-------------------------------------------------------------------------- # ● CT Speed #-------------------------------------------------------------------------- def ct_speed n_speed = @ct_speed * @ct_max / 100 n = [[n_speed, 0].max, @ct_max].min return n end end
#===============================================================================
# ■ Game Actor
#===============================================================================
class Game_Actor < Game_Battler
attr_accessor :ct
attr_accessor :ct_max
attr_accessor :ct_speed
attr_accessor :ct_wait
#--------------------------------------------------------------------------
# ● Iinitialize
#--------------------------------------------------------------------------
alias xas_ct_initialize initialize
def initialize(actor_id)
xas_ct_initialize(actor_id)
@ct_max = 100
@ct = @ct_max
@ct_speed = 1
@ct_wait = false
setup_initial_ct(actor_id)
end
#--------------------------------------------------------------------------
# ● Setup Initial CT
#--------------------------------------------------------------------------
def setup_initial_ct(actor_id)
ct_par = XAS_CT_SYSTEM::ACTOR_INITIAL_CT[actor_id]
if ct_par != nil
@ct_max = ct_par[0]
@ct_speed = ct_par[1]
@ct = @ct_max
end
end
#--------------------------------------------------------------------------
# ● CT
#--------------------------------------------------------------------------
def ct
n = [[@ct, 0].max, @ct_max].min
return n
end
#--------------------------------------------------------------------------
# ● CT Max
#--------------------------------------------------------------------------
def ct_max
n = [[@ct_max, 1].max, 9999].min
return n
end
#--------------------------------------------------------------------------
# ● CT Speed
#--------------------------------------------------------------------------
def ct_speed
n_speed = @ct_speed * @ct_max / 100
n = [[n_speed, 0].max, @ct_max].min
return n
end
end
应该就只有这一段和CT系统有关了 目前已知的是可以在该页上方设置某个角色在游戏开始时的CT槽相关设定,但是无法通过指令对这些设定进行修改…… |