| 1 | script_execute(scr_depth, 0, 0, 0, 0, 0); |
| 2 | timer = 0; |
| 3 | direction = 0; |
| 4 | upsprite = 96; |
| 5 | downsprite = 97; |
| 6 | leftsprite = 92; |
| 7 | rightsprite = 95; |
| 8 | image_speed = 0; |
| 9 | waiter = 0; |
| 10 | fadeout = false; |
| 11 | hood = true; |
| 12 | spritelock = true; |
| 13 | door_open_alarm_counter = 0; |
| 14 | if ((global.flag[17 Dalv fate] == 1 && room == rm_darkruins_18) || room == rm_dalvshouse) |
| 15 | { |
| 16 | direction = 270; |
| 17 | sprite_index = spr_hoodoff; |
| 18 | hood = false; |
| 19 | } |
| 20 | fade_kill = false; |
| 21 | if (room == rm_darkruins_18 && global.flag[17 Dalv fate] != 0 && global.flag[27 Cutscene surrounding the Dalv fight completed] == 0) |
| 22 | obj_pl.y = 320; |
| 23 | if (room == rm_dalvshouse && (global.flag[28 Spoken to Dalv in his house] == 1 || global.flag[17 Dalv fate] == 4 || global.flag[17 Dalv fate] == 2)) |
| 24 | { |
| 25 | instance_destroy(); |
| 26 | exit; |
| 27 | } |