if (bet == true) { with (obj_pippins_enemy) diedwithbet = true; } if (cheat == true) { with (obj_pippins_enemy) diedwithcheat = true; }