赞 | 23 |
VIP | 207 |
好人卡 | 31 |
积分 | 31 |
经验 | 48797 |
最后登录 | 2024-5-11 |
在线时间 | 1535 小时 |
Lv3.寻梦者 孤独守望
- 梦石
- 0
- 星屑
- 3132
- 在线时间
- 1535 小时
- 注册时间
- 2006-10-16
- 帖子
- 4321
|
= =b 偶尔写点脚本骗点分- 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::CTRL)
- ac = $game_party.actors[0]
- if ac.sp > 0
- if Graphics.frame_count % 40 == 0
- ac.sp -= 1
- @animation_id = 1 if @animation_id == 0
- end
- if moving?
- if @move_speed != 6
- @move_speed = 6
- @character_name_run = @character_name
- @character_name = @character_name# + "run"
- Audio.se_play("Audio/SE/"+"013-Move01",80,100)
- end
- end
- else
- if @move_speed != 4
- @move_speed = 4
- @character_name = @character_name_run
- end
- end
- end
- end
- old_update
- end
- end
复制代码 注:其中
- if ac.sp > 0
- if Graphics.frame_count % 40 == 0
- ac.sp -= 1
- @animation_id = 2 if @animation_id == 0
- end
复制代码 40为帧周期,每过40帧播放动画并扣领队的SP
2为动画ID
1为扣除的SP |
评分
-
查看全部评分
|