JASS:
function Trig_Spawn_Custom_Players_Copy_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='hpea'))then
return false
endif
return true
endfunction
function Trig_Spawn_Custom_Players_Copy_Func003C takes nothing returns boolean
if(not(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="anders91"))then
return false
endif
return true
endfunction
function Trig_Spawn_Custom_Players_Copy_Func004C takes nothing returns boolean
if(not(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="torokid"))then
return false
endif
return true
endfunction
function Trig_Spawn_Custom_Players_Copy_Func005C takes nothing returns boolean
if(not(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="M2tM"))then
return false
endif
return true
endfunction
function Trig_Spawn_Custom_Players_Copy_Func006C takes nothing returns boolean
if(not(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="Raijin99"))then
return false
endif
return true
endfunction
function Trig_Spawn_Custom_Players_Copy_Func007C takes nothing returns boolean
if(not(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="Fujin99"))then
return false
endif
return true
endfunction
function Trig_Spawn_Custom_Players_Copy_Func008C takes nothing returns boolean
if(not(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="Berretta_"))then
return false
endif
return true
endfunction
function Trig_Spawn_Custom_Players_Copy_Func009C takes nothing returns boolean
if(not(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="Nyflame"))then
return false
endif
return true
endfunction
function Trig_Spawn_Custom_Players_Copy_Func010C takes nothing returns boolean
if(not(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="Redwizard"))then
return false
endif
return true
endfunction
function Trig_Spawn_Custom_Players_Copy_Func011C takes nothing returns boolean
if(not(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="MuffinKrazy"))then
return false
endif
return true
endfunction
function Trig_Spawn_Custom_Players_Copy_Func012C takes nothing returns boolean
if(not(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="Shinn-Asuka"))then
return false
endif
return true
endfunction
function Trig_Spawn_Custom_Players_Copy_Func013C takes nothing returns boolean
if(not(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="agentcase"))then
return false
endif
return true
endfunction
function Trig_Spawn_Custom_Players_Copy_Func014Func001C takes nothing returns boolean
if((GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="deathbringer-"))then
return true
endif
if((GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="Deathbringer-"))then
return true
endif
if((GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="Deathbringer_"))then
return true
endif
if((GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="Deathbringer_"))then
return true
endif
return false
endfunction
function Trig_Spawn_Custom_Players_Copy_Func014C takes nothing returns boolean
if(not Trig_Spawn_Custom_Players_Copy_Func014Func001C())then
return false
endif
return true
endfunction
function Trig_Spawn_Custom_Players_Copy_Actions takes nothing returns nothing
call UnitAddItemByIdSwapped('I015',GetEnteringUnit())
if(Trig_Spawn_Custom_Players_Copy_Func003C())then
call ReplaceUnitBJ(GetTriggerUnit(),'h012',bj_UNIT_STATE_METHOD_RELATIVE)
call SelectUnitForPlayerSingle(GetLastReplacedUnitBJ(),GetOwningPlayer(GetTriggerUnit()))
call UnitAddItemByIdSwapped('I015',GetLastReplacedUnitBJ())
else
endif
if(Trig_Spawn_Custom_Players_Copy_Func004C())then
call ReplaceUnitBJ(GetTriggerUnit(),'h011',bj_UNIT_STATE_METHOD_RELATIVE)
call AddSpecialEffectTargetUnitBJ("overhead",GetLastReplacedUnitBJ(),"Abilities\\Spells\\Items\\HealingSalve\\HealingSalveTarget.mdl")
call SetUnitVertexColorBJ(GetLastRestoredUnitBJ(),100.00,100.00,20.00,30.00)
call SelectUnitForPlayerSingle(GetLastReplacedUnitBJ(),GetOwningPlayer(GetTriggerUnit()))
call UnitAddItemByIdSwapped('I015',GetLastReplacedUnitBJ())
else
endif
if(Trig_Spawn_Custom_Players_Copy_Func005C())then
call ReplaceUnitBJ(GetTriggerUnit(),'h00X',bj_UNIT_STATE_METHOD_RELATIVE)
call SelectUnitForPlayerSingle(GetLastReplacedUnitBJ(),GetOwningPlayer(GetTriggerUnit()))
call UnitAddItemByIdSwapped('I015',GetLastReplacedUnitBJ())
else
endif
if(Trig_Spawn_Custom_Players_Copy_Func006C())then
call ReplaceUnitBJ(GetTriggerUnit(),'h014',bj_UNIT_STATE_METHOD_RELATIVE)
call SelectUnitForPlayerSingle(GetLastReplacedUnitBJ(),GetOwningPlayer(GetTriggerUnit()))
call UnitAddItemByIdSwapped('I015',GetLastReplacedUnitBJ())
else
endif
if(Trig_Spawn_Custom_Players_Copy_Func007C())then
call ReplaceUnitBJ(GetTriggerUnit(),'h016',bj_UNIT_STATE_METHOD_RELATIVE)
call AddSpecialEffectTargetUnitBJ("hand, right",GetLastReplacedUnitBJ(),"Abilities\\Weapons\\FaerieDragonMissile\\FaerieDragonMissile.mdl")
call SelectUnitForPlayerSingle(GetLastReplacedUnitBJ(),GetOwningPlayer(GetTriggerUnit()))
call UnitAddItemByIdSwapped('I015',GetLastReplacedUnitBJ())
else
endif
if(Trig_Spawn_Custom_Players_Copy_Func008C())then
call ReplaceUnitBJ(GetTriggerUnit(),'h017',bj_UNIT_STATE_METHOD_RELATIVE)
call SelectUnitForPlayerSingle(GetLastReplacedUnitBJ(),GetOwningPlayer(GetTriggerUnit()))
call UnitAddItemByIdSwapped('I015',GetLastReplacedUnitBJ())
else
endif
if(Trig_Spawn_Custom_Players_Copy_Func009C())then
call ReplaceUnitBJ(GetTriggerUnit(),'h013',bj_UNIT_STATE_METHOD_RELATIVE)
call SetUnitVertexColorBJ(GetLastReplacedUnitBJ(),5.00,5.00,40.00,30.00)
call AddSpecialEffectTargetUnitBJ("hand, right",GetLastReplacedUnitBJ(),"Abilities\\Weapons\\AvengerMissile\\AvengerMissile.mdl")
call AddSpecialEffectTargetUnitBJ("hand, left",GetLastReplacedUnitBJ(),"Abilities\\Weapons\\AvengerMissile\\AvengerMissile.mdl")
call SelectUnitForPlayerSingle(GetLastReplacedUnitBJ(),GetOwningPlayer(GetTriggerUnit()))
call UnitAddItemByIdSwapped('I015',GetLastReplacedUnitBJ())
else
endif
if(Trig_Spawn_Custom_Players_Copy_Func010C())then
call ReplaceUnitBJ(GetTriggerUnit(),'h015',bj_UNIT_STATE_METHOD_RELATIVE)
call AddSpecialEffectTargetUnitBJ("hand, left",GetLastReplacedUnitBJ(),"Abilities\\Weapons\\FaerieDragonMissile\\FaerieDragonMissile.mdl")
call AddSpecialEffectTargetUnitBJ("hand, right",GetLastReplacedUnitBJ(),"Abilities\\Weapons\\FaerieDragonMissile\\FaerieDragonMissile.mdl")
call SelectUnitForPlayerSingle(GetLastReplacedUnitBJ(),GetOwningPlayer(GetTriggerUnit()))
call UnitAddItemByIdSwapped('I015',GetLastReplacedUnitBJ())
else
endif
if(Trig_Spawn_Custom_Players_Copy_Func011C())then
call ReplaceUnitBJ(GetTriggerUnit(),'h018',bj_UNIT_STATE_METHOD_RELATIVE)
call AddSpecialEffectTargetUnitBJ("hand, left",GetLastReplacedUnitBJ(),"Abilities\\Weapons\\AvengerMissile\\AvengerMissile.mdl")
call AddSpecialEffectTargetUnitBJ("hand, right",GetLastReplacedUnitBJ(),"Abilities\\Weapons\\AvengerMissile\\AvengerMissile.mdl")
call SelectUnitForPlayerSingle(GetLastReplacedUnitBJ(),GetOwningPlayer(GetTriggerUnit()))
call UnitAddItemByIdSwapped('I015',GetLastReplacedUnitBJ())
else
endif
if(Trig_Spawn_Custom_Players_Copy_Func012C())then
call ReplaceUnitBJ(GetTriggerUnit(),'h01B',bj_UNIT_STATE_METHOD_RELATIVE)
call AddSpecialEffectTargetUnitBJ("hand, left",GetLastReplacedUnitBJ(),"Abilities\\Weapons\\AvengerMissile\\AvengerMissile.mdl")
call AddSpecialEffectTargetUnitBJ("hand, right",GetLastReplacedUnitBJ(),"Abilities\\Weapons\\AvengerMissile\\AvengerMissile.mdl")
call SetUnitVertexColorBJ(GetLastReplacedUnitBJ(),30.00,0.00,0.00,30.00)
call SelectUnitForPlayerSingle(GetLastReplacedUnitBJ(),GetOwningPlayer(GetTriggerUnit()))
call UnitAddItemByIdSwapped('I015',GetLastReplacedUnitBJ())
else
endif
if(Trig_Spawn_Custom_Players_Copy_Func013C())then
call ReplaceUnitBJ(GetTriggerUnit(),'h01A',bj_UNIT_STATE_METHOD_RELATIVE)
call AddSpecialEffectTargetUnitBJ("hand, left",GetLastReplacedUnitBJ(),"Abilities\\Weapons\\DruidoftheTalonMissile\\DruidoftheTalonMissile.mdl")
call AddSpecialEffectTargetUnitBJ("hand, right",GetLastReplacedUnitBJ(),"Abilities\\Weapons\\DruidoftheTalonMissile\\DruidoftheTalonMissile.mdl")
call SelectUnitForPlayerSingle(GetLastReplacedUnitBJ(),GetOwningPlayer(GetTriggerUnit()))
call UnitAddItemByIdSwapped('I015',GetLastReplacedUnitBJ())
else
endif
if(Trig_Spawn_Custom_Players_Copy_Func014C())then
call ReplaceUnitBJ(GetTriggerUnit(),'h01C',bj_UNIT_STATE_METHOD_RELATIVE)
call SelectUnitForPlayerSingle(GetLastReplacedUnitBJ(),GetOwningPlayer(GetTriggerUnit()))
call UnitAddItemByIdSwapped('I015',GetLastReplacedUnitBJ())
else
endif
call GroupAddGroup(GetUnitsOfTypeIdAll('hpea'),udg_group02)
call GroupAddGroup(GetUnitsOfTypeIdAll('h00Y'),udg_group02)
call GroupAddGroup(GetUnitsOfTypeIdAll('h00V'),udg_group02)
call GroupAddGroup(GetUnitsOfTypeIdAll('h00X'),udg_group02)
call GroupAddGroup(GetUnitsOfTypeIdAll('h00W'),udg_group02)
call GroupAddGroup(GetUnitsOfTypeIdAll('h012'),udg_group02)
call GroupAddGroup(GetUnitsOfTypeIdAll('h011'),udg_group02)
call GroupAddGroup(GetUnitsOfTypeIdAll('h014'),udg_group02)
call GroupAddGroup(GetUnitsOfTypeIdAll('h016'),udg_group02)
call GroupAddGroup(GetUnitsOfTypeIdAll('h017'),udg_group02)
call GroupAddGroup(GetUnitsOfTypeIdAll('h013'),udg_group02)
call GroupAddGroup(GetUnitsOfTypeIdAll('h015'),udg_group02)
call GroupAddGroup(GetUnitsOfTypeIdAll('h018'),udg_group02)
call GroupAddGroup(GetUnitsOfTypeIdAll('h01A'),udg_group02)
call GroupAddGroup(GetUnitsOfTypeIdAll('h01B'),udg_group02)
call GroupAddGroup(GetUnitsOfTypeIdAll('h01C'),udg_group02)
call EnableTrigger(udg_trigger179)
endfunction
function Trig_Spawn_Custom_Players_Copy_Copy_Func002C takes nothing returns boolean
if((GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="7336"))then
return true
endif
if((GetPlayerName(GetOwningPlayer(GetTriggerUnit()))=="styles-7336"))then
return true
endif
return false
endfunction
function Trig_Spawn_Custom_Players_Copy_Copy_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='hpea'))then
return false
endif
if(not Trig_Spawn_Custom_Players_Copy_Copy_Func002C())then
return false
endif
return true
endfunction
function Trig_Spawn_Custom_Players_Copy_Copy_Actions takes nothing returns nothing
call ReplaceUnitBJ(GetTriggerUnit(),'h00Y',bj_UNIT_STATE_METHOD_RELATIVE)
call EnableTrigger(udg_trigger37)
call SetUnitVertexColorBJ(GetLastReplacedUnitBJ(),30.00,0.00,0.00,30.00)
call SelectUnitForPlayerSingle(GetLastReplacedUnitBJ(),GetOwningPlayer(GetTriggerUnit()))
call UnitAddItemByIdSwapped('I015',GetLastReplacedUnitBJ())
call GroupAddGroup(GetUnitsOfTypeIdAll('h00Y'),udg_group02)
endfunction