Undertale script viewer

← back to main script listing

gml_Object_obj_encount_fire1_Create_0

(view raw script w/o annotations or w/e)
1
if (global.flag[8 disable_random_encounters] == 1 || global.flag[7 true_pacifist] == 1)
2
    instance_destroy();
3
alldead = 0;
4
global.encounter = 0;
5
factor = 220;
6
desto = 0;
7
if (room == room_fire5 && global.flag[408 progress_hotland_battles] < 1)
8
    factor = 80;
9
if (room == room_fire6 && global.flag[408 progress_hotland_battles] < 2)
10
    factor = 120;
11
if (room == room_fire_walkandbranch && global.flag[408 progress_hotland_battles] < 3)
12
    factor = 80;
13
if (room == room_fire_preshootguy4 && global.flag[408 progress_hotland_battles] < 4)
14
    factor = 20;
15
script_execute(scr_steps, factor, 30, 40, 205);
16
if (scr_enemynpc3
scr_enemynpc3

if (global.plot > 191) { if (global.flag[7 true_pacifist] == 1 || global.flag[8 disable_random_encounters] == 1) { if (global.flag[205 kills_hotland] == 0 && global.flag[206 hide_hotland_npcs] == 0) return 1; else return 0; } else { return 0; } } else { return 0; }
() == 1)
17
    instance_destroy();
18
if (room == room_fire_preshootguy4 && global.flag[400 completed_shoot_puzzle4] != 0)
19
    instance_destroy();