The trigger didn't work...
I didn't use a trigger; instead, I launched the 'lost_PL_4' function in a separate thread, starting from the moment the task to kill PLAYER_4 was issued, with an interval of 5 sleeps. I did this so that the check would also run during the opponent's turn.