extflag = 10; if (global.flag[123] == 1) { extflag = 0; image_index = 26; }