Sample
Events
Unit - Any Unit Enters Region 001
Local Variables
u = (Triggering unit) <Unit>
Conditions
Actions
Unit - Set u custom value 9 to (Unit tag of u)
Debug - Display {(Name of (Unit type of u))|(Text((Custom value 9 of u)) with Any Precision decimal places)|(Text((Unit tag of u)) with Any Precision decimal places)} as debug output using Type 01, and Do display it in the game window