hello all,
i change from GUI to jass , just want to change variable unit group to Local variable in jass..
can anyone help me fix the jass ? , just change all the udg_Unit_Groups to Local Variable g..
i change from GUI to jass , just want to change variable unit group to Local variable in jass..
-
Striker siege
-
Events
- Time - Every 2.00 seconds of game time
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player 1 (Red) controller) Equal to Computer
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of Acc1) Equal to Striker AI
-
Then - Actions
- Set zStri[1] = 0
-
Else - Actions
- Set zStri[1] = 1
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player 1 (Red) controller) Equal to Computer
-
Then - Actions
- Set Striker[7] = (Position of Acc1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- WarCon Equal to 0
-
Then - Actions
- Set Unit_Groups = (Units within 700.00 of Striker[7] matching ((((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True) and (((Unit-type of (Matching unit)) Not equal to Assasin (guardian)) and (((Unit-type of (Matching unit)) Not equal to Black Knight (guard
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in Unit_Groups) Greater than or equal to 1
- zStri[1] Equal to 0
-
Then - Actions
- Unit - Order Acc1 to Night Elf Demon Hunter - Metamorphosis
- Else - Actions
-
If - Conditions
- Custom script: call DestroyGroup(udg_Unit_Groups)
- Custom script: set udg_Unit_Groups = null
-
Else - Actions
- Set Unit_Groups = (Units within 700.00 of Striker[7] matching ((((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True) and (((Unit-type of (Matching unit)) Not equal to Assasin (guardian)) and (((Unit-type of (Matching unit)) Not equal to Black Knight (guard
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in Unit_Groups) Greater than or equal to 1
- zStri[1] Equal to 0
-
Then - Actions
- Unit - Order Acc1 to Night Elf Demon Hunter - Metamorphosis
- Else - Actions
-
If - Conditions
-
If - Conditions
- Custom script: call DestroyGroup(udg_Unit_Groups)
- Custom script: set udg_Unit_Groups = null
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- WarCon Equal to 0
-
Then - Actions
- Set Unit_Groups = (Units within 700.00 of Striker[7] matching ((((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True) and (((Unit-type of (Matching unit)) Not equal to Assasin (guardian)) and (((Unit-type of (Matching unit)) Not equal to Black Knight (guard
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in Unit_Groups) Equal to 0
- zStri[1] Equal to 1
-
Then - Actions
- Unit - Order Acc1 to Night Elf Demon Hunter - Metamorphosis
- Else - Actions
-
If - Conditions
-
Else - Actions
- Set Unit_Groups = (Units within 700.00 of Striker[7] matching ((((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True) and (((Unit-type of (Matching unit)) Not equal to Assasin (guardian)) and (((Unit-type of (Matching unit)) Not equal to Black Knight (guard
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in Unit_Groups) Equal to 0
- zStri[1] Equal to 1
-
Then - Actions
- Unit - Order Acc1 to Night Elf Demon Hunter - Metamorphosis
- Else - Actions
-
If - Conditions
-
If - Conditions
- Custom script: call DestroyGroup(udg_Unit_Groups)
- Custom script: set udg_Unit_Groups = null
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
- Custom script: call RemoveLocation(udg_Striker[7])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of Acc4) Equal to Striker AI
-
Then - Actions
- Set zStri[2] = 0
-
Else - Actions
- Set zStri[2] = 1
-
If - Conditions
- Set Striker[8] = (Position of Acc4)
- Set Unit_Groups = (Units within 700.00 of Striker[8] matching ((((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True) and (((Unit-type of (Matching unit)) Not equal to Assasin (guardian)) and (((Unit-type of (Matching unit)) Not equal to Black Knight (guard
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in Unit_Groups) Greater than or equal to 1
- zStri[2] Equal to 0
-
Then - Actions
- Unit - Order Acc4 to Night Elf Demon Hunter - Metamorphosis
- Else - Actions
-
If - Conditions
- Custom script: call DestroyGroup(udg_Unit_Groups)
- Custom script: set udg_Unit_Groups = null
- Set Unit_Groups = (Units within 700.00 of Striker[8] matching ((((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True) and (((Unit-type of (Matching unit)) Not equal to Assasin (guardian)) and (((Unit-type of (Matching unit)) Not equal to Black Knight (guard
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in Unit_Groups) Equal to 0
- zStri[2] Equal to 1
-
Then - Actions
- Unit - Order Acc4 to Night Elf Demon Hunter - Metamorphosis
- Else - Actions
-
If - Conditions
- Custom script: call DestroyGroup(udg_Unit_Groups)
- Custom script: set udg_Unit_Groups = null
- Custom script: call RemoveLocation(udg_Striker[8])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
JASS:
function Trig_Striker_siege_Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(udg_Acc1) == 'U008' ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Func001Func002Func002Func001002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), Player(11)) == true )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func001002003002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E004' )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func001002003002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E003' )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func001002003002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC16' )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func001002003002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC07' )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func001002003002002002002002 takes nothing returns boolean
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetFilterUnit()) >= 1000.00 )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func001002003002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func002Func001002003002002002002001(), Trig_Striker_siege_Func001Func002Func002Func001002003002002002002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func001002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func002Func001002003002002002001(), Trig_Striker_siege_Func001Func002Func002Func001002003002002002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func001002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func002Func001002003002002001(), Trig_Striker_siege_Func001Func002Func002Func001002003002002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func002Func001002003002001(), Trig_Striker_siege_Func001Func002Func002Func001002003002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func002Func001002003001(), Trig_Striker_siege_Func001Func002Func002Func001002003002() )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func002002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), Player(11)) == true )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func002002003002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E004' )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func002002003002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E003' )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func002002003002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC16' )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func002002003002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC07' )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func002002003002002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'nfrm' )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func002002003002002002002002002 takes nothing returns boolean
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetFilterUnit()) >= 1000.00 )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func002002003002002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func002Func002002003002002002002002001(), Trig_Striker_siege_Func001Func002Func002Func002002003002002002002002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func002002003002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func002Func002002003002002002002001(), Trig_Striker_siege_Func001Func002Func002Func002002003002002002002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func002002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func002Func002002003002002002001(), Trig_Striker_siege_Func001Func002Func002Func002002003002002002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func002002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func002Func002002003002002001(), Trig_Striker_siege_Func001Func002Func002Func002002003002002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func002002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func002Func002002003002001(), Trig_Striker_siege_Func001Func002Func002Func002002003002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func002002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func002Func002002003001(), Trig_Striker_siege_Func001Func002Func002Func002002003002() )
endfunction
function Trig_Striker_siege_Func001Func002Func002Func003C takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Unit_Groups) >= 1 ) ) then
return false
endif
if ( not ( udg_zStri[1] == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Func001Func002Func002Func004C takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Unit_Groups) >= 1 ) ) then
return false
endif
if ( not ( udg_zStri[1] == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Func001Func002Func002C takes nothing returns boolean
if ( not ( udg_WarCon == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Func001Func002Func006Func001002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), Player(11)) == true )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func001002003002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E004' )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func001002003002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E003' )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func001002003002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC16' )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func001002003002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC07' )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func001002003002002002002002 takes nothing returns boolean
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetFilterUnit()) >= 1000.00 )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func001002003002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func006Func001002003002002002002001(), Trig_Striker_siege_Func001Func002Func006Func001002003002002002002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func001002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func006Func001002003002002002001(), Trig_Striker_siege_Func001Func002Func006Func001002003002002002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func001002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func006Func001002003002002001(), Trig_Striker_siege_Func001Func002Func006Func001002003002002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func006Func001002003002001(), Trig_Striker_siege_Func001Func002Func006Func001002003002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func006Func001002003001(), Trig_Striker_siege_Func001Func002Func006Func001002003002() )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func002002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), Player(11)) == true )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func002002003002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E004' )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func002002003002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E003' )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func002002003002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC16' )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func002002003002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC07' )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func002002003002002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'nfrm' )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func002002003002002002002002002 takes nothing returns boolean
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetFilterUnit()) >= 1000.00 )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func002002003002002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func006Func002002003002002002002002001(), Trig_Striker_siege_Func001Func002Func006Func002002003002002002002002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func002002003002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func006Func002002003002002002002001(), Trig_Striker_siege_Func001Func002Func006Func002002003002002002002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func002002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func006Func002002003002002002001(), Trig_Striker_siege_Func001Func002Func006Func002002003002002002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func002002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func006Func002002003002002001(), Trig_Striker_siege_Func001Func002Func006Func002002003002002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func002002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func006Func002002003002001(), Trig_Striker_siege_Func001Func002Func006Func002002003002002() )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func002002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func001Func002Func006Func002002003001(), Trig_Striker_siege_Func001Func002Func006Func002002003002() )
endfunction
function Trig_Striker_siege_Func001Func002Func006Func003C takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Unit_Groups) == 0 ) ) then
return false
endif
if ( not ( udg_zStri[1] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Func001Func002Func006Func004C takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Unit_Groups) == 0 ) ) then
return false
endif
if ( not ( udg_zStri[1] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Func001Func002Func006C takes nothing returns boolean
if ( not ( udg_WarCon == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Func001Func002C takes nothing returns boolean
if ( not ( GetPlayerController(Player(0)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Func001C takes nothing returns boolean
if ( not ( GetPlayerController(Player(0)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(udg_Acc4) == 'U008' ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Func005002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), Player(11)) == true )
endfunction
function Trig_Striker_siege_Func005002003002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E004' )
endfunction
function Trig_Striker_siege_Func005002003002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E003' )
endfunction
function Trig_Striker_siege_Func005002003002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC16' )
endfunction
function Trig_Striker_siege_Func005002003002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC07' )
endfunction
function Trig_Striker_siege_Func005002003002002002002002 takes nothing returns boolean
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetFilterUnit()) >= 1000.00 )
endfunction
function Trig_Striker_siege_Func005002003002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func005002003002002002002001(), Trig_Striker_siege_Func005002003002002002002002() )
endfunction
function Trig_Striker_siege_Func005002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func005002003002002002001(), Trig_Striker_siege_Func005002003002002002002() )
endfunction
function Trig_Striker_siege_Func005002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func005002003002002001(), Trig_Striker_siege_Func005002003002002002() )
endfunction
function Trig_Striker_siege_Func005002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func005002003002001(), Trig_Striker_siege_Func005002003002002() )
endfunction
function Trig_Striker_siege_Func005002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func005002003001(), Trig_Striker_siege_Func005002003002() )
endfunction
function Trig_Striker_siege_Func006C takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Unit_Groups) >= 1 ) ) then
return false
endif
if ( not ( udg_zStri[2] == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Func010002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), Player(11)) == true )
endfunction
function Trig_Striker_siege_Func010002003002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E004' )
endfunction
function Trig_Striker_siege_Func010002003002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E003' )
endfunction
function Trig_Striker_siege_Func010002003002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC16' )
endfunction
function Trig_Striker_siege_Func010002003002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC07' )
endfunction
function Trig_Striker_siege_Func010002003002002002002002 takes nothing returns boolean
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetFilterUnit()) >= 1000.00 )
endfunction
function Trig_Striker_siege_Func010002003002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func010002003002002002002001(), Trig_Striker_siege_Func010002003002002002002002() )
endfunction
function Trig_Striker_siege_Func010002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func010002003002002002001(), Trig_Striker_siege_Func010002003002002002002() )
endfunction
function Trig_Striker_siege_Func010002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func010002003002002001(), Trig_Striker_siege_Func010002003002002002() )
endfunction
function Trig_Striker_siege_Func010002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func010002003002001(), Trig_Striker_siege_Func010002003002002() )
endfunction
function Trig_Striker_siege_Func010002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Func010002003001(), Trig_Striker_siege_Func010002003002() )
endfunction
function Trig_Striker_siege_Func011C takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Unit_Groups) == 0 ) ) then
return false
endif
if ( not ( udg_zStri[2] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Actions takes nothing returns nothing
if ( Trig_Striker_siege_Func001C() ) then
if ( Trig_Striker_siege_Func001Func001C() ) then
set udg_zStri[1] = 0
else
set udg_zStri[1] = 1
endif
if ( Trig_Striker_siege_Func001Func002C() ) then
set udg_Striker[7] = GetUnitLoc(udg_Acc1)
if ( Trig_Striker_siege_Func001Func002Func002C() ) then
set udg_Unit_Groups = GetUnitsInRangeOfLocMatching(700.00, udg_Striker[7], Condition(function Trig_Striker_siege_Func001Func002Func002Func002002003))
if ( Trig_Striker_siege_Func001Func002Func002Func004C() ) then
call IssueImmediateOrderBJ( udg_Acc1, "metamorphosis" )
else
endif
call DestroyGroup(udg_Unit_Groups)
set udg_Unit_Groups = null
else
set udg_Unit_Groups = GetUnitsInRangeOfLocMatching(700.00, udg_Striker[7], Condition(function Trig_Striker_siege_Func001Func002Func002Func001002003))
if ( Trig_Striker_siege_Func001Func002Func002Func003C() ) then
call IssueImmediateOrderBJ( udg_Acc1, "metamorphosis" )
else
endif
endif
call DestroyGroup(udg_Unit_Groups)
set udg_Unit_Groups = null
call TriggerSleepAction( 0.20 )
if ( Trig_Striker_siege_Func001Func002Func006C() ) then
set udg_Unit_Groups = GetUnitsInRangeOfLocMatching(700.00, udg_Striker[7], Condition(function Trig_Striker_siege_Func001Func002Func006Func002002003))
if ( Trig_Striker_siege_Func001Func002Func006Func003C() ) then
call IssueImmediateOrderBJ( udg_Acc1, "metamorphosis" )
else
endif
else
set udg_Unit_Groups = GetUnitsInRangeOfLocMatching(700.00, udg_Striker[7], Condition(function Trig_Striker_siege_Func001Func002Func006Func001002003))
if ( Trig_Striker_siege_Func001Func002Func006Func004C() ) then
call IssueImmediateOrderBJ( udg_Acc1, "metamorphosis" )
else
endif
endif
call DestroyGroup(udg_Unit_Groups)
set udg_Unit_Groups = null
else
endif
else
endif
call RemoveLocation(udg_Striker[7])
if ( Trig_Striker_siege_Func003C() ) then
set udg_zStri[2] = 0
else
set udg_zStri[2] = 1
endif
set udg_Striker[8] = GetUnitLoc(udg_Acc4)
set udg_Unit_Groups = GetUnitsInRangeOfLocMatching(700.00, udg_Striker[8], Condition(function Trig_Striker_siege_Func005002003))
if ( Trig_Striker_siege_Func006C() ) then
call IssueImmediateOrderBJ( udg_Acc4, "metamorphosis" )
else
endif
call DestroyGroup(udg_Unit_Groups)
set udg_Unit_Groups = null
call TriggerSleepAction( 0.20 )
set udg_Unit_Groups = GetUnitsInRangeOfLocMatching(700.00, udg_Striker[8], Condition(function Trig_Striker_siege_Func010002003))
if ( Trig_Striker_siege_Func011C() ) then
call IssueImmediateOrderBJ( udg_Acc4, "metamorphosis" )
else
endif
call DestroyGroup(udg_Unit_Groups)
set udg_Unit_Groups = null
call RemoveLocation(udg_Striker[8])
endfunction
//===========================================================================
function InitTrig_Striker_siege takes nothing returns nothing
set gg_trg_Striker_siege = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Striker_siege, 2.00 )
call TriggerAddAction( gg_trg_Striker_siege, function Trig_Striker_siege_Actions )
endfunction
JASS:
function Trig_Striker_siege_Copy_Func001Func001C takes nothing returns boolean
local group g = CreateGroup()
if ( not ( GetUnitTypeId(udg_Acc1) == 'U008' ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func001002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), Player(11)) == true )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E004' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E003' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC16' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC07' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002002002002002 takes nothing returns boolean
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetFilterUnit()) >= 1000.00 )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002002002002001(), Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002002002002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002002002001(), Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002002002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002002001(), Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002001(), Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func002Func001002003001(), Trig_Striker_siege_Copy_Func001Func002Func002Func001002003002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func002002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), Player(11)) == true )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E004' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E003' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC16' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC07' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'nfrm' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002002002002002 takes nothing returns boolean
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetFilterUnit()) >= 1000.00 )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002002002002001(), Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002002002002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002002002001(), Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002002002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002002001(), Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002001(), Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002001(), Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func002002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func002Func002002003001(), Trig_Striker_siege_Copy_Func001Func002Func002Func002002003002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func003C takes nothing returns boolean
if ( not ( CountUnitsInGroup(g) >= 1 ) ) then
return false
endif
if ( not ( udg_zStri[1] == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002Func004C takes nothing returns boolean
if ( not ( CountUnitsInGroup(g) >= 1 ) ) then
return false
endif
if ( not ( udg_zStri[1] == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func002C takes nothing returns boolean
if ( not ( udg_WarCon == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func001002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), Player(11)) == true )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E004' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E003' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC16' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC07' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002002002002002 takes nothing returns boolean
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetFilterUnit()) >= 1000.00 )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002002002002001(), Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002002002002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002002002001(), Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002002002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002002001(), Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002001(), Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func005Func001002003001(), Trig_Striker_siege_Copy_Func001Func002Func005Func001002003002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func002002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), Player(11)) == true )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E004' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E003' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC16' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC07' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'nfrm' )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002002002002002 takes nothing returns boolean
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetFilterUnit()) >= 1000.00 )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002002002002001(), Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002002002002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002002002001(), Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002002002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002002001(), Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002001(), Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002001(), Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func002002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func001Func002Func005Func002002003001(), Trig_Striker_siege_Copy_Func001Func002Func005Func002002003002() )
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func003C takes nothing returns boolean
if ( not ( CountUnitsInGroup(g) == 0 ) ) then
return false
endif
if ( not ( udg_zStri[1] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005Func004C takes nothing returns boolean
if ( not ( CountUnitsInGroup(g) == 0 ) ) then
return false
endif
if ( not ( udg_zStri[1] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Copy_Func001Func002Func005C takes nothing returns boolean
if ( not ( udg_WarCon == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Copy_Func001Func002C takes nothing returns boolean
if ( not ( GetPlayerController(Player(0)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Copy_Func001C takes nothing returns boolean
if ( not ( GetPlayerController(Player(0)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Copy_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(udg_Acc4) == 'U008' ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Copy_Func005002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), Player(11)) == true )
endfunction
function Trig_Striker_siege_Copy_Func005002003002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E004' )
endfunction
function Trig_Striker_siege_Copy_Func005002003002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E003' )
endfunction
function Trig_Striker_siege_Copy_Func005002003002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC16' )
endfunction
function Trig_Striker_siege_Copy_Func005002003002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC07' )
endfunction
function Trig_Striker_siege_Copy_Func005002003002002002002002 takes nothing returns boolean
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetFilterUnit()) >= 1000.00 )
endfunction
function Trig_Striker_siege_Copy_Func005002003002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func005002003002002002002001(), Trig_Striker_siege_Copy_Func005002003002002002002002() )
endfunction
function Trig_Striker_siege_Copy_Func005002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func005002003002002002001(), Trig_Striker_siege_Copy_Func005002003002002002002() )
endfunction
function Trig_Striker_siege_Copy_Func005002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func005002003002002001(), Trig_Striker_siege_Copy_Func005002003002002002() )
endfunction
function Trig_Striker_siege_Copy_Func005002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func005002003002001(), Trig_Striker_siege_Copy_Func005002003002002() )
endfunction
function Trig_Striker_siege_Copy_Func005002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func005002003001(), Trig_Striker_siege_Copy_Func005002003002() )
endfunction
function Trig_Striker_siege_Copy_Func006C takes nothing returns boolean
if ( not ( CountUnitsInGroup(g) >= 1 ) ) then
return false
endif
if ( not ( udg_zStri[2] == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Copy_Func009002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), Player(11)) == true )
endfunction
function Trig_Striker_siege_Copy_Func009002003002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E004' )
endfunction
function Trig_Striker_siege_Copy_Func009002003002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'E003' )
endfunction
function Trig_Striker_siege_Copy_Func009002003002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC16' )
endfunction
function Trig_Striker_siege_Copy_Func009002003002002002002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'HC07' )
endfunction
function Trig_Striker_siege_Copy_Func009002003002002002002002 takes nothing returns boolean
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetFilterUnit()) >= 1000.00 )
endfunction
function Trig_Striker_siege_Copy_Func009002003002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func009002003002002002002001(), Trig_Striker_siege_Copy_Func009002003002002002002002() )
endfunction
function Trig_Striker_siege_Copy_Func009002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func009002003002002002001(), Trig_Striker_siege_Copy_Func009002003002002002002() )
endfunction
function Trig_Striker_siege_Copy_Func009002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func009002003002002001(), Trig_Striker_siege_Copy_Func009002003002002002() )
endfunction
function Trig_Striker_siege_Copy_Func009002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func009002003002001(), Trig_Striker_siege_Copy_Func009002003002002() )
endfunction
function Trig_Striker_siege_Copy_Func009002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Striker_siege_Copy_Func009002003001(), Trig_Striker_siege_Copy_Func009002003002() )
endfunction
function Trig_Striker_siege_Copy_Func010C takes nothing returns boolean
if ( not ( CountUnitsInGroup(g) == 0 ) ) then
return false
endif
if ( not ( udg_zStri[2] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Striker_siege_Copy_Actions takes nothing returns nothing
if ( Trig_Striker_siege_Copy_Func001C() ) then
if ( Trig_Striker_siege_Copy_Func001Func001C() ) then
set udg_zStri[1] = 0
else
set udg_zStri[1] = 1
endif
if ( Trig_Striker_siege_Copy_Func001Func002C() ) then
set udg_Striker[7] = GetUnitLoc(udg_Acc1)
if ( Trig_Striker_siege_Copy_Func001Func002Func002C() ) then
call GroupEnumUnitsInRangeOfLoc(g, udg_Striker[7], 700.00, Condition(function Trig_Striker_siege_Copy_Func001Func002Func002Func002002003))
if ( Trig_Striker_siege_Copy_Func001Func002Func002Func004C() ) then
call IssueImmediateOrderBJ( udg_Acc1, "metamorphosis" )
else
endif
else
call GroupEnumUnitsInRangeOfLoc(g, udg_Striker[7], 700.00, Condition(function Trig_Striker_siege_Copy_Func001Func002Func002Func001002003))
if ( Trig_Striker_siege_Copy_Func001Func002Func002Func003C() ) then
call IssueImmediateOrderBJ( udg_Acc1, "metamorphosis" )
else
endif
endif
if ( Trig_Striker_siege_Copy_Func001Func002Func005C() ) then
call GroupEnumUnitsInRangeOfLoc(g, udg_Striker[7], 700.00, Condition(function Trig_Striker_siege_Copy_Func001Func002Func005Func002002003))
if ( Trig_Striker_siege_Copy_Func001Func002Func005Func003C() ) then
call IssueImmediateOrderBJ( udg_Acc1, "metamorphosis" )
else
endif
else
call GroupEnumUnitsInRangeOfLoc(g, udg_Striker[7], 700.00, Condition(function Trig_Striker_siege_Copy_Func001Func002Func005Func001002003))
if ( Trig_Striker_siege_Copy_Func001Func002Func005Func004C() ) then
call IssueImmediateOrderBJ( udg_Acc1, "metamorphosis" )
else
endif
endif
else
endif
else
endif
call RemoveLocation(udg_Striker[7])
if ( Trig_Striker_siege_Copy_Func003C() ) then
set udg_zStri[2] = 0
else
set udg_zStri[2] = 1
endif
set udg_Striker[8] = GetUnitLoc(udg_Acc4)
call GroupEnumUnitsInRangeOfLoc(g, udg_Striker[8], 700.00, Condition(function Trig_Striker_siege_Copy_Func005002003))
if ( Trig_Striker_siege_Copy_Func006C() ) then
call IssueImmediateOrderBJ( udg_Acc4, "metamorphosis" )
else
endif
call GroupEnumUnitsInRangeOfLoc(g, udg_Striker[8], 700.00, Condition(function Trig_Striker_siege_Copy_Func009002003))
if ( Trig_Striker_siege_Copy_Func010C() ) then
call IssueImmediateOrderBJ( udg_Acc4, "metamorphosis" )
else
endif
call DestroyGroup(g)
set g = null
call RemoveLocation(udg_Striker[8])
endfunction
//===========================================================================
function InitTrig_Striker_siege_Copy takes nothing returns nothing
set gg_trg_Striker_siege_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_Striker_siege_Copy )
call TriggerRegisterTimerEventPeriodic( gg_trg_Striker_siege_Copy, 2.00 )
call TriggerAddAction( gg_trg_Striker_siege_Copy, function Trig_Striker_siege_Copy_Actions )
endfunction
can anyone help me fix the jass ? , just change all the udg_Unit_Groups to Local Variable g..