Requesting Trigger Condition "Player Resigns"

currently when a player resigns it doesn’t activate the player defeated condition - so when say a king is destroyed and that’s the conditional unit that once destroyed the player is defeated then another trigger that activates when the player is defeated like as a condition and the trigger activates destroys all civilian units -that would activate normally - but it does not activate when the player resigns so the trigger fails to activate because the condition is not exact - long story short - add a condition where the player resigns to get around that please, so I can clean up the map of units to reduce lag when the enemy or myself perishes or rather resigns before then.

there is already something like this but u have to create a triggger and this condition: accumulate attribute and than select player X defeated