Module: Sound
- Defined in:
- lib/rgss3_default_scripts/Sound.rb
Overview
** Sound
This module plays sound effects. It obtains sound effects specified in the
database from the global variable $data_system, and plays them.
Class Method Summary collapse
-
.play_actor_collapse ⇒ Object
Actor Collapse.
-
.play_actor_damage ⇒ Object
Actor Damage.
-
.play_battle_start ⇒ Object
Battle Start.
-
.play_boss_collapse1 ⇒ Object
Boss Collapse 1.
-
.play_boss_collapse2 ⇒ Object
Boss Collapse 2.
-
.play_buzzer ⇒ Object
Buzzer.
-
.play_cancel ⇒ Object
Cancel.
-
.play_cursor ⇒ Object
Cursor Movement.
-
.play_enemy_attack ⇒ Object
Enemy Attack.
-
.play_enemy_collapse ⇒ Object
Enemy Collapse.
-
.play_enemy_damage ⇒ Object
Enemy Damage.
-
.play_equip ⇒ Object
Equip.
-
.play_escape ⇒ Object
Escape.
-
.play_evasion ⇒ Object
Evasion.
-
.play_load ⇒ Object
Load.
-
.play_magic_evasion ⇒ Object
Magic Evasion.
-
.play_miss ⇒ Object
Miss.
-
.play_ok ⇒ Object
Decision.
-
.play_recovery ⇒ Object
Recovery.
-
.play_reflection ⇒ Object
Magic Reflection.
-
.play_save ⇒ Object
Save.
-
.play_shop ⇒ Object
Shop.
-
.play_system_sound(n) ⇒ Object
System Sound Effect.
-
.play_use_item ⇒ Object
Use Item.
-
.play_use_skill ⇒ Object
Use Skill.
Class Method Details
.play_actor_collapse ⇒ Object
Actor Collapse
91 92 93 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 91 def self.play_actor_collapse play_system_sound(15) end |
.play_actor_damage ⇒ Object
Actor Damage
86 87 88 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 86 def self.play_actor_damage play_system_sound(14) end |
.play_battle_start ⇒ Object
Battle Start
51 52 53 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 51 def self.play_battle_start play_system_sound(7) end |
.play_boss_collapse1 ⇒ Object
Boss Collapse 1
76 77 78 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 76 def self.play_boss_collapse1 play_system_sound(12) end |
.play_boss_collapse2 ⇒ Object
Boss Collapse 2
81 82 83 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 81 def self.play_boss_collapse2 play_system_sound(13) end |
.play_buzzer ⇒ Object
Buzzer
31 32 33 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 31 def self.play_buzzer play_system_sound(3) end |
.play_cancel ⇒ Object
Cancel
26 27 28 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 26 def self.play_cancel play_system_sound(2) end |
.play_cursor ⇒ Object
Cursor Movement
16 17 18 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 16 def self.play_cursor play_system_sound(0) end |
.play_enemy_attack ⇒ Object
Enemy Attack
61 62 63 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 61 def self.play_enemy_attack play_system_sound(9) end |
.play_enemy_collapse ⇒ Object
Enemy Collapse
71 72 73 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 71 def self.play_enemy_collapse play_system_sound(11) end |
.play_enemy_damage ⇒ Object
Enemy Damage
66 67 68 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 66 def self.play_enemy_damage play_system_sound(10) end |
.play_equip ⇒ Object
Equip
36 37 38 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 36 def self.play_equip play_system_sound(4) end |
.play_escape ⇒ Object
Escape
56 57 58 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 56 def self.play_escape play_system_sound(8) end |
.play_evasion ⇒ Object
Evasion
106 107 108 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 106 def self.play_evasion play_system_sound(18) end |
.play_load ⇒ Object
Load
46 47 48 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 46 def self.play_load play_system_sound(6) end |
.play_magic_evasion ⇒ Object
Magic Evasion
111 112 113 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 111 def self.play_magic_evasion play_system_sound(19) end |
.play_miss ⇒ Object
Miss
101 102 103 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 101 def self.play_miss play_system_sound(17) end |
.play_ok ⇒ Object
Decision
21 22 23 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 21 def self.play_ok play_system_sound(1) end |
.play_recovery ⇒ Object
Recovery
96 97 98 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 96 def self.play_recovery play_system_sound(16) end |
.play_reflection ⇒ Object
Magic Reflection
116 117 118 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 116 def self.play_reflection play_system_sound(20) end |
.play_save ⇒ Object
Save
41 42 43 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 41 def self.play_save play_system_sound(5) end |
.play_shop ⇒ Object
Shop
121 122 123 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 121 def self.play_shop play_system_sound(21) end |
.play_system_sound(n) ⇒ Object
System Sound Effect
11 12 13 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 11 def self.play_system_sound(n) $data_system.sounds[n].play end |
.play_use_item ⇒ Object
Use Item
126 127 128 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 126 def self.play_use_item play_system_sound(22) end |
.play_use_skill ⇒ Object
Use Skill
131 132 133 |
# File 'lib/rgss3_default_scripts/Sound.rb', line 131 def self.play_use_skill play_system_sound(23) end |