Project1
标题:
中毒后地图上爆血
[打印本页]
作者:
阿尔西斯的马甲
时间:
2011-12-21 15:40
标题:
中毒后地图上爆血
本帖最后由 阿尔西斯的马甲 于 2011-12-21 16:10 编辑
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================
class Game_Party
def check_map_slip_damage
for actor in @actors
if actor.hp > 0 and actor.slip_damage?
baoxue(-1,(actor.maxhp / 100).to_i,false)
actor.hp -= [actor.maxhp / 100, 1].max
if actor.hp == 0
$game_system.se_play($data_system.actor_collapse_se)
end
$game_screen.start_flash(Color.new(255,0,0,128), 4)
$game_temp.gameover = $game_party.all_dead?
end
end
end
end
def baoxue(a,b,c)
if a==-1
$game_player.damage = b
$game_player.critical = c
$game_player.damage_pop = true
else
$game_map.events[a].damage = b
$game_map.events[a].critical = c
$game_map.events[a].damage_pop = true
end
end
class Sprite_Character < RPG::Sprite
def battler
return @character
end
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
#------------------------------
# 动画 ID 与当前的情况有差异的情况下
if @character.damage == nil and
@character.state_animation_id != @state_animation_id
@state_animation_id = @character.state_animation_id
loop_animation($data_animations[@state_animation_id])
end
#collapse
# 明灭
if @character.blink
blink_on
else
blink_off
end
# 白色闪烁
if @character.white_flash
whiten
@character.white_flash = false
end
# 死亡
if @character.dead
collapse
@character.dead = false
end
#------------------------------
end
end
class Game_Character
attr_accessor :damage_pop
attr_accessor :damage
attr_accessor :critical
attr_accessor :white_flash # 白色屏幕闪烁标志
attr_accessor :blink # 闪烁标志
attr_accessor :dead # 死亡消失标志
attr_accessor :state_animation_id # 状态动画ID
alias carol3_66RPG_damage_pop_initialize initialize
def initialize
@damage_pop = false
@damage = nil
@critical = false
carol3_66RPG_damage_pop_initialize
@white_flash = false
@blink = false
@dead = false
end
end
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================
复制代码
补丁不用加了。中毒后每走两步爆一次血,可以看到。
作者:
r951027
时间:
2011-12-30 13:16
不晓得脚本会不会冲突
作者:
RPG问题多多者
时间:
2011-12-31 15:50
感謝大大嚕~
挺好的腳本~
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1