1 |
if (ds_map_find_value(event_data, "event_type") == "sprite event") |
2 |
{ |
3 |
switch ds_map_find_value(event_data, "message") |
4 |
{ |
5 |
case "ceroba_ending_sounds": |
6 |
audio_play_sound(snd_ceroba_defeated_sounds, 1, 0) |
7 |
break |
8 |
case "ceroba_charge": |
9 |
audio_play_sound(snd_ceroba_charge, 1, 0) |
10 |
break |
11 |
case "cloak_sound": |
12 |
audio_play_sound(snd_ceroba_cloak, 1, 0) |
13 |
break |
14 |
case "ceroba_scream": |
15 |
scr_screenshake_battlescr_screenshake_battlefunction scr_screenshake_battle() //gml_Script_scr_screenshake_battle
{
instance_destroy(obj_screenshake_battle)
var screenshake = instance_create(0, 0, obj_screenshake_battle)
battle_screenshake_duration = argument[0]
battle_screenshake_intensity = argument[1]
battle_screenshake_dec = battle_screenshake_intensity / battle_screenshake_duration
} (110, 1) |
16 |
var scream_rings = instance_create_depth(x, (y - 100), (depth + 10), obj_ceroba_scream_ring_spawner) |
17 |
scream_rings.alarm[0] = 60 |
18 |
global.battle_music = audio_play_sound(mus_mothers_love_phase_3, 20, true) |
19 |
obj_petal_generator_phase_2.fade_out = false |
20 |
obj_petal_generator_phase_2.petals_enabled = true |
21 |
audio_play_sound(snd_ceroba_scream, 1, 0) |
22 |
audio_play_sound(snd_ceroba_yell, 1, 0) |
23 |
break |
24 |
case "ceroba_punch_floor": |
25 |
scr_screenshake_battlescr_screenshake_battlefunction scr_screenshake_battle() //gml_Script_scr_screenshake_battle
{
instance_destroy(obj_screenshake_battle)
var screenshake = instance_create(0, 0, obj_screenshake_battle)
battle_screenshake_duration = argument[0]
battle_screenshake_intensity = argument[1]
battle_screenshake_dec = battle_screenshake_intensity / battle_screenshake_duration
} (5, 2) |
26 |
audio_play_sound(snd_undertale_impact, 1, 0) |
27 |
break |
28 |
case "ceroba_retransform": |
29 |
audio_play_sound(snd_ceroba_retransform, 1, 0) |
30 |
break |
31 |
} |
32 |
|
33 |
} |