Unit Is Created can also be used for when you specify the action - Create Units in your trigger. This means any action - Create Units that you have created in separate triggers or actions, you can specify that unit using the Trigger event - Unit Is Created, by adding a condition - Created Unit == The Unit that is created through the action - Create Units.
Say for example,
Trigger A
Event - Map Initialization
Action - Create Units With Default Facing - Hero A at Point...
Trigger B
Event - Unit Is Created
Condition - Created Unit == Hero A
Action - Here, you specify the actions for Hero A. Eg. Execute Effect A to Target Unit (Hero A) from Caster Unit (Hero A).
If, for example, your unit is created through data and not through Triggers, e.g. through a train ability.
Then, you will need to create a dummy effect which you can use via triggers.
Put the dummy effect under the Unit : Effect (Birth).
Next, create a trigger with Effect Used Event specifying the dummy effect.
Create a global variable which serves to mark the Unit.
Under the Effect Used Event Trigger, set the global variable == Triggering Effect Unit (Caster).
This means that during the Unit : Effect (Birth) event when the unit is created through the train ability, the following actions runs and so on.
Lastly, another alternative is to use Data Tables where you can save a Unit into a string and later use it in your trigger.
In reply to sc2ggamer:
Unit Is Created can also be used for when you specify the action - Create Units in your trigger. This means any action - Create Units that you have created in separate triggers or actions, you can specify that unit using the Trigger event - Unit Is Created, by adding a condition - Created Unit == The Unit that is created through the action - Create Units.
Say for example,
Trigger A
Event - Map Initialization
Action - Create Units With Default Facing - Hero A at Point...
Trigger B
Event - Unit Is Created
Condition - Created Unit == Hero A
Action - Here, you specify the actions for Hero A. Eg. Execute Effect A to Target Unit (Hero A) from Caster Unit (Hero A).
If, for example, your unit is created through data and not through Triggers, e.g. through a train ability.
Then, you will need to create a dummy effect which you can use via triggers.
Put the dummy effect under the Unit : Effect (Birth).
Next, create a trigger with Effect Used Event specifying the dummy effect.
Create a global variable which serves to mark the Unit.
Under the Effect Used Event Trigger, set the global variable == Triggering Effect Unit (Caster).
This means that during the Unit : Effect (Birth) event when the unit is created through the train ability, the following actions runs and so on.
Lastly, another alternative is to use Data Tables where you can save a Unit into a string and later use it in your trigger.
I hope that explains.
Then use the Ability/Create Unit effect to use a dummy damage effect that the triggers recognise.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg