Okay,here is this.
Event - A unit starts the effect of an ability
Condition - Ability being cast equal to Time Banish
Action - Set <Temp_Integer> equal to random integer between 1 and 4
Action - Create 1 Dummy for owner of triggering unit,facing default building angle
Action - Cause triggering unit to damage target unit of ability being cast by level of ability being cast x 75,attack type Spells,damage type Normal
I do this because if there is a event that triggers at death,the casting unit will trigger it.
Action - Set TimeBanishStunAbility level equal to <Temp_Integer>
Order last created unit to (the base ID of the stun ability,use whatever you want)
Action - Set <Temp_Integer> equal to 0
Action - Set Unitcast equal to Triggering Unit
The trigger that makes the time banish ability to damage units that are out of existence(stunned) based on the how long they are stunned.
Event - Every 1 second of game-time
Action - Pick every unit in units in playable map area
If then else
If - Picked unit has buff Timebanished
Then - Cause Unitcast to damage picked unit by 40,attack type Spells,damage type Normal.
So in summary,damages a enemy unit by level of the ability x 75(you can maybe skip that part),and then stuns it for a random duration between 1 and 4.Each second,everything that was banished from time will be damaged by 50.