- Joined
- May 1, 2008
- Messages
- 1,605
Seas =)
I have another question. I want to pick units in range that matching some conditions.
In GUI it's like that:
But now I want get it in Jass. If I convert this part from GUI to Jass it looks like:
1) I don't think that this picking + matching stuff looks like this, if I write from the beginning each line in Jass or??
2) If it does, how should I keep it in my mind, that I always can type it without using hours of hours.
3) If not can someone (PLZ!) create the true Jass trigger with the matching stuff? So I can use it as an example, if I need more of them with different matching stuff or something like that.
I have another question. I want to pick units in range that matching some conditions.
In GUI it's like that:
-
Unit Group - Pick every unit in (Units within 1850.00 of (Position of Diablos Mother 0001 <gen>) matching ((((Matching unit) is dead) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of Diablos Mother 0001 <gen>)) Equal to True))) and do (Actions)
-
Loop - Actions
-
Unit Group - Add (Picked unit) to FrozenLoveGrp
-
-
JASS:
function Trig_Frozen_Love_2_Func001001003001 takes nothing returns boolean
return ( IsUnitDeadBJ(GetFilterUnit()) == false )
endfunction
function Trig_Frozen_Love_2_Func001001003002 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_E000_0001)) == true )
endfunction
function Trig_Frozen_Love_2_Func001001003 takes nothing returns boolean
return GetBooleanAnd( Trig_Frozen_Love_2_Func001001003001(), Trig_Frozen_Love_2_Func001001003002() )
endfunction
function Trig_Frozen_Love_2_Func001A takes nothing returns nothing
call GroupAddUnitSimple( GetEnumUnit(), udg_FrozenLoveGrp )
endfunction
function Trig_Frozen_Love_2_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRangeOfLocMatching(1850.00, GetUnitLoc(gg_unit_E000_0001), Condition(function Trig_Frozen_Love_2_Func001001003)), function Trig_Frozen_Love_2_Func001A )
endfunction
1) I don't think that this picking + matching stuff looks like this, if I write from the beginning each line in Jass or??
2) If it does, how should I keep it in my mind, that I always can type it without using hours of hours.
3) If not can someone (PLZ!) create the true Jass trigger with the matching stuff? So I can use it as an example, if I need more of them with different matching stuff or something like that.