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 "martlet_syringe": |
6 |
audio_play_sound(snd_monster_damage_hit_critical, 1, 0) |
7 |
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
} (6, 2) |
8 |
instance_create_depth(x, y, (depth - 1), obj_martlet_final_transformation_effect) |
9 |
instance_create_depth((x - 24), (y - 100), (depth - 2), obj_martlet_final_syringe) |
10 |
break |
11 |
case "martlet_inject": |
12 |
audio_play_sound(snd_hurt, 1, 0) |
13 |
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
} (6, 2) |
14 |
break |
15 |
} |
16 |
|
17 |
} |