赞 | 13 |
VIP | 9 |
好人卡 | 3 |
积分 | 51 |
经验 | 27577 |
最后登录 | 2024-10-30 |
在线时间 | 1004 小时 |
Lv4.逐梦者 【欧皇】
- 梦石
- 3
- 星屑
- 2066
- 在线时间
- 1004 小时
- 注册时间
- 2013-8-19
- 帖子
- 3486
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 欧买歌 于 2014-4-9 20:36 编辑
{:7_289:} 而且行走是走1步血扣1滴,战斗时一回合扣50滴。
跑步时一步血扣2滴。跑步脚本:- class Game_Player < Game_Character
- alias move_speed update
- def update
- #==============第一个角色===============#
- if $game_party.actors.include?($game_actors[1])
- $game_variables[5000] += 1
- if $game_player.moving?
- $game_variables[5000] = 0
- @step_anime = false
- if Input.press?(Input::CTRL)
- @move_speed = 5 #按下CTRL时的移动速度
- @character_name = ("旅行者") #按下CTRL键 跑步的行走图
- else
- @character_name = ("旅行者") #无按下CTRL键 走路的行走图
- @move_speed = 4 #无按下CTRL时的移动速度
- end
- else
- if $game_variables[5000] >= 5 #等待20帧开始播放待机行走图
- @move_speed = 2
- @step_anime = true
- @character_name = ("旅行者") #不走路时 待机行走图
- else
- end
- end
- end
- #==============第二个角色===============#
- if not $game_party.actors.include?($game_actors[1]) and $game_party.actors.include?($game_actors[2])
- $game_variables[5000] += 1
- if $game_player.moving?
- $game_variables[5000] = 0
- @step_anime = false
- if Input.press?(Input::CTRL)
- @move_speed = 5 #按下CTRL时的移动速度
- @character_name = ("旅行者") #按下CTRL键 跑步的行走图
- else
- @character_name = ("旅行者") #无按下CTRL键 走路的行走图
- @move_speed = 4 #无按下CTRL时的移动速度
- end
- else
- if $game_variables[5000] >= 5 #等待20帧开始播放待机行走图
- @move_speed = 2
- @step_anime = true
- @character_name = ("旅行者") #不走路时 待机行走图
- else
- end
- end
- end
- #==============第三个角色===============#
- if not $game_party.actors.include?($game_actors[1])and not $game_party.actors.include?($game_actors[2]) and $game_party.actors.include?($game_actors[3])
- $game_variables[5000] += 1
- if $game_player.moving?
- $game_variables[5000] = 0
- @step_anime = false
- if Input.press?(Input::CTRL)
- @move_speed = 5 #按下CTRL时的移动速度
- @character_name = ("旅行者") #按下CTRL键 跑步的行走图
- else
- @character_name = ("旅行者") #无按下CTRL键 走路的行走图
- @move_speed = 4 #无按下CTRL时的移动速度
- end
- else
- if $game_variables[5000] >= 5 #等待20帧开始播放待机行走图
- @move_speed = 2
- @step_anime = true
- @character_name = ("旅行者") #不走路时 待机行走图
- else
- end
- end
- end
- #==============第四个角色===============#
- if not $game_party.actors.include?($game_actors[1])and not $game_party.actors.include?($game_actors[2])and not $game_party.actors.include?($game_actors[3]) and $game_party.actors.include?($game_actors[4])
- $game_variables[5000] += 1
- if $game_player.moving?
- $game_variables[5000] = 0
- @step_anime = false
- if Input.press?(Input::CTRL)
- @move_speed = 5 #按下CTRL时的移动速度
- @character_name = ("旅行者") #按下CTRL键 跑步的行走图
- else
- @character_name = ("旅行者") #无按下CTRL键 走路的行走图
- @move_speed = 4 #无按下CTRL时的移动速度
- end
- else
- if $game_variables[5000] >= 5 #等待20帧开始播放待机行走图
- @move_speed = 2
- @step_anime = true
- @character_name = ("旅行者") #不走路时 待机行走图
- else
- end
- end
- end
- move_speed
- end
- end
复制代码 |
|