查看: 1043|回复: 3

如何让HP低下时,人物速度减慢

  [复制链接]
头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-4-2
回帖
47
发表于 2009-2-17 03:34:58 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2009-1-23
回帖
518
发表于 2009-2-17 05:28:59 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

綾川司の姫様<

梦石
0
星屑
50
在线时间
796 小时
注册时间
2007-12-20
回帖
4461

贵宾第3届短篇游戏大赛R剧及RMTV组亚军

发表于 2009-2-18 00:03:53 | 显示全部楼层
#==============================================================================
# ■ Game_Player
#==============================================================================
class Game_Player
  #--------------------------------------------------------------------------
  # ● フレーム更新
  #--------------------------------------------------------------------------
  alias old_update update
  def update
    unless moving? or $game_system.map_interpreter.running? or
      @move_route_forcing or $game_temp.message_window_showing
      if $game_actors[1].hp <= $game_actors[1].maxhp / 5
      # 速度変更
        @move_speed = 3
      else
        @move_speed = 4
      end
    end
    old_update
  end
end
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================

插入main前,当1号角色HP低于20%,行走速度减慢。
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~

生命即是责任。自己即是世界。
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-4-2
回帖
47
 楼主| 发表于 2009-2-18 01:59:47 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部