-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaru_SkipAnimationBattle.rb
46 lines (41 loc) · 1.74 KB
/
maru_SkipAnimationBattle.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
#
#Animation skip (battle)
#
#While pressing the set button,
#Animation aren't shown.
#
#★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
module MARU_SKIP_ANIME
#---------------------------------------------------------------------------
#Setting
BOTTAN = :A #Button for use for skipping animation
#End of setting
#---------------------------------------------------------------------------
end
#==============================================================================
# ■ Scene_Battle
#------------------------------------------------------------------------------
# Class performs battle screen processing.
#==============================================================================
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# ● Animation display
# targets : Target array
# animation_id : Animation ID (-1: Same as normal attack)
#--------------------------------------------------------------------------
alias maru_show_animation show_animation
def show_animation(targets, animation_id)
if Input.press?(MARU_SKIP_ANIME::BOTTAN)
return
end
maru_show_animation(targets, animation_id)
end
#--------------------------------------------------------------------------
# ● Fast forward
#--------------------------------------------------------------------------
alias maru_show_fast? show_fast?
def show_fast?
Input.press?(:A) || Input.press?(:C) || Input.press?(MARU_SKIP_ANIME::BOTTAN)
end
end