赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 0 |
经验 | 0 |
最后登录 | 2008-6-25 |
在线时间 | 0 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 65
- 在线时间
- 0 小时
- 注册时间
- 2008-5-22
- 帖子
- 4
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
想实现一种效果。在地图上,某个有“加速”技能的角色,使用“加速”技能后
能将@move_speed 改为5,他自己的SP不断减少,当为0时,@move_speed 回到4
我用公共事件加按键加速脚本改了改,效果不如意。
1,当有“加速”技能的角色使用“加速”技能时,会出现一个角色选择框,让你选择给哪个角色使用技能(跟回血技能似的),我想把这个技能改成,当有“加速”技能角色使用“加速”技能后,直接给自己加上这个状态,不出现选择角色的框。(特技中的“效果范围”改成“使用者”,虽然不能选择其他人,但那个角色选择框还是会出现,现在要的是不出现那个角色选择框,直接就使用)
2,怎么样让SP不断减少,跟中毒效果似的。只是在地图中走路时减少,战斗每回合不减。
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================
#==============================================================================
# ■ Game_Player
#==============================================================================
class Game_Player
#--------------------------------------------------------------------------
# ● フレーム更新
#--------------------------------------------------------------------------
alias old_update update
def update
unless $game_system.map_interpreter.running? or
@move_route_forcing or $game_temp.message_window_showing
if Input.press?(Input::SHIFT) and $game_switches[9]==true #9号开关打开时,按SHIFT加速
if moving?
if @move_speed != 5
@move_speed = 5
@character_name_run = @character_name
@character_name = @character_name + "run"
end
end
else
if $game_switches[10]==true #公共事件,用“加速”技能时,打开10号开关
if @move_speed != 5
@move_speed = 5
@character_name_run = @character_name
@character_name = @character_name + "run"
if $game_party.steps % 2 == 0
# 检查连续伤害
$game_party.check_map_slip_damage2 #效果不理想,只减少一次SP剩下的就减HP了。由check_map_slip_damage改的,只是把HP换成了SP
end
end
else
if @move_speed != 4
@move_speed = 4
@character_name = @character_name_run
end
end
end
end
old_update
end
end
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#============================================================================== 此贴于 2008-6-17 3:12:46 被版主darkten提醒,请楼主看到后对本贴做出回应。 |
|