#1
function Condition takes nothing returns boolean
//your condition here
endfunction
function TheUnitGroup takes unit u returns nothing
local location l = GetUnitLoc( u )
local location l2 = GetUnitLoc( udg_caster )
local lightning li
call AddLightningLoc( from l to 12 using "mdl" ) ill let u write that
set li = GetLastCreatedLightning()
// put a wait until the unit stops casting the ability or whatever stops it
call DestroyLightning( l )
endfunction
function TheOrigUnitGroup takes nothing returns nothing
call ExecuteFunc( "TheUnitGroup" ) // also give it the Picked Unit, the code is GetEnumUnit()
endfunction
function action takes nothing returns nothing
//functions
call ForGroup( group g, function TheOrigUnitGroup )
//more functions
endfunction
function InitTrig_MyTrig takes nothing returns nothing
//do stuff here
endfunction