(set cheat_deathless_player true)

1 is a short (integer) value, not a boolean, and cheat_deathless_player is a global variable.