本帖最后由 无忧谷主幻 于 2015-7-23 18:30 编辑
1,建议使用自动执行或并行处理的事件来更改该事件行走图的合成方式
2,你需要
#============================================================================== # 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息 #============================================================================== # # 使用方法: # # ★、对角色显示伤害,如下3步: # # 1、设置伤害内容:$game_player.damage = 数值 # 注意:如果数值是负数,就变成补血的颜色了。 # # 2、设置是否会心一击:$game_player.critical = true/false # 如果不是会心一击,就不用这一步了 # # 3、释放伤害:$game_player.damage_pop = true # # # ★、对普通NPC和事件进行伤害,类似的3步: # # 1、设置伤害内容:$game_map.events[事件编号].damage = 数值 # # 2、设置是否会心一击:$game_map.events[事件编号].critical = true/false # # 3、释放伤害:$game_map.events[事件编号].damage_pop = true # # 注意,事件编号是事件的ID号,如果目标是“本事件”,那么在事件编号输入@event_id # #------------------------------------------------------------------------------ # 预祝有人能早日做出华丽的ARPG来,别忘了到网站发布哦~ #------------------------------------------------------------------------------ class Sprite_Character < RPG::Sprite alias carol3_66RPG_damage_pop_update update def update carol3_66RPG_damage_pop_update if @character.damage_pop damage(@character.damage, @character.critical) @character.damage = nil @character.critical = false @character.damage_pop = false end end end class Game_Character attr_accessor :damage_pop attr_accessor :damage attr_accessor :critical alias carol3_66RPG_damage_pop_initialize initialize def initialize @damage_pop = false @damage = 0 @critical = false carol3_66RPG_damage_pop_initialize end end #============================================================================== # 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息 #==============================================================================
#==============================================================================
# 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息
#==============================================================================
#
# 使用方法:
#
# ★、对角色显示伤害,如下3步:
#
# 1、设置伤害内容:$game_player.damage = 数值
# 注意:如果数值是负数,就变成补血的颜色了。
#
# 2、设置是否会心一击:$game_player.critical = true/false
# 如果不是会心一击,就不用这一步了
#
# 3、释放伤害:$game_player.damage_pop = true
#
#
# ★、对普通NPC和事件进行伤害,类似的3步:
#
# 1、设置伤害内容:$game_map.events[事件编号].damage = 数值
#
# 2、设置是否会心一击:$game_map.events[事件编号].critical = true/false
#
# 3、释放伤害:$game_map.events[事件编号].damage_pop = true
#
# 注意,事件编号是事件的ID号,如果目标是“本事件”,那么在事件编号输入@event_id
#
#------------------------------------------------------------------------------
# 预祝有人能早日做出华丽的ARPG来,别忘了到网站发布哦~
#------------------------------------------------------------------------------
class Sprite_Character < RPG::Sprite
alias carol3_66RPG_damage_pop_update update
def update
carol3_66RPG_damage_pop_update
if @character.damage_pop
damage(@character.damage, @character.critical)
@character.damage = nil
@character.critical = false
@character.damage_pop = false
end
end
end
class Game_Character
attr_accessor :damage_pop
attr_accessor :damage
attr_accessor :critical
alias carol3_66RPG_damage_pop_initialize initialize
def initialize
@damage_pop = false
@damage = 0
@critical = false
carol3_66RPG_damage_pop_initialize
end
end
#==============================================================================
# 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息
#==============================================================================
|