设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1386|回复: 0
打印 上一主题 下一主题

[已经过期] 怎么让中毒时行走不闪烁。

[复制链接]

Lv4.逐梦者

【欧皇】

梦石
3
星屑
2046
在线时间
1004 小时
注册时间
2013-8-19
帖子
3486

开拓者

跳转到指定楼层
1
发表于 2014-4-9 20:27:49 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
本帖最后由 欧买歌 于 2014-4-9 20:36 编辑

{:7_289:} 而且行走是走1步血扣1滴,战斗时一回合扣50滴。
跑步时一步血扣2滴。跑步脚本:
  1. class Game_Player < Game_Character
  2.   alias move_speed update
  3.   def update
  4.   #==============第一个角色===============#
  5.    if $game_party.actors.include?($game_actors[1])
  6.     $game_variables[5000] += 1
  7.    if $game_player.moving?
  8.      $game_variables[5000] = 0
  9.      @step_anime = false
  10.     if Input.press?(Input::CTRL)
  11.       @move_speed = 5     #按下CTRL时的移动速度               
  12.       @character_name = ("旅行者") #按下CTRL键 跑步的行走图
  13.     else
  14.       @character_name = ("旅行者") #无按下CTRL键 走路的行走图
  15.       @move_speed = 4     #无按下CTRL时的移动速度         
  16.     end
  17.   else
  18.    if  $game_variables[5000] >= 5 #等待20帧开始播放待机行走图
  19.     @move_speed = 2
  20.     @step_anime = true
  21.     @character_name = ("旅行者") #不走路时 待机行走图
  22.   else
  23.     end
  24.   end
  25. end
  26.    #==============第二个角色===============#
  27.    if not $game_party.actors.include?($game_actors[1]) and $game_party.actors.include?($game_actors[2])
  28.     $game_variables[5000] += 1
  29.    if $game_player.moving?
  30.      $game_variables[5000] = 0
  31.      @step_anime = false
  32.     if Input.press?(Input::CTRL)
  33.       @move_speed = 5     #按下CTRL时的移动速度               
  34.       @character_name = ("旅行者") #按下CTRL键 跑步的行走图
  35.     else
  36.       @character_name = ("旅行者") #无按下CTRL键 走路的行走图
  37.       @move_speed = 4     #无按下CTRL时的移动速度         
  38.     end
  39.   else
  40.    if  $game_variables[5000] >= 5 #等待20帧开始播放待机行走图
  41.     @move_speed = 2
  42.     @step_anime = true
  43.     @character_name = ("旅行者") #不走路时 待机行走图
  44.   else
  45.     end
  46.   end
  47. end
  48.    #==============第三个角色===============#
  49.    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])
  50.     $game_variables[5000] += 1
  51.    if $game_player.moving?
  52.      $game_variables[5000] = 0
  53.      @step_anime = false
  54.     if Input.press?(Input::CTRL)
  55.       @move_speed = 5     #按下CTRL时的移动速度               
  56.       @character_name = ("旅行者") #按下CTRL键 跑步的行走图
  57.     else
  58.       @character_name = ("旅行者") #无按下CTRL键 走路的行走图
  59.       @move_speed = 4     #无按下CTRL时的移动速度         
  60.     end
  61.   else
  62.    if  $game_variables[5000] >= 5 #等待20帧开始播放待机行走图
  63.     @move_speed = 2
  64.     @step_anime = true
  65.     @character_name = ("旅行者") #不走路时 待机行走图
  66.   else
  67.     end
  68.   end
  69. end
  70.    #==============第四个角色===============#
  71.    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])
  72.     $game_variables[5000] += 1
  73.    if $game_player.moving?
  74.      $game_variables[5000] = 0
  75.      @step_anime = false
  76.     if Input.press?(Input::CTRL)
  77.       @move_speed = 5     #按下CTRL时的移动速度               
  78.       @character_name = ("旅行者") #按下CTRL键 跑步的行走图
  79.     else
  80.       @character_name = ("旅行者") #无按下CTRL键 走路的行走图
  81.       @move_speed = 4     #无按下CTRL时的移动速度         
  82.     end
  83.   else
  84.    if  $game_variables[5000] >= 5 #等待20帧开始播放待机行走图
  85.     @move_speed = 2
  86.     @step_anime = true
  87.     @character_name = ("旅行者") #不走路时 待机行走图
  88.   else
  89.     end
  90.   end
  91. end

  92.   move_speed
  93.   end
  94. end
复制代码
QQ:2223942063
Q群:365819625
贪吃方1.4
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-9-22 07:17

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表