Ayanami
칼리
- Reaction score
- 288
How would I make filtering configurable? For example, I want to make the targets allowed for a spell to be configurable. How would I make the filtering configurable? Thanks in advance.
local boolexpr b = Condition(function ASDF))
local group g = CreateGroup()
call GroupEnumUnitsInRange(g, 0., 0., 100., b)
//===========================
// CONFIGURABLES
//===========================
globals
// The Rawcode of the Spell
private constant boolean SPELL_ID=039;A000039;
endglobals
// Brief description of filter function ...
private function Spell_Filter takes unit enum returns boolean
return (GetUnitTypeId(enum)==039;hfoo039;)
endfunction
//===========================
// END OF CONFIGURABLES
//===========================
JASS://=========================== // CONFIGURABLES //=========================== globals // The Rawcode of the Spell private constant boolean SPELL_ID=039;A000039; endglobals // Brief description of filter function ... private function Spell_Filter takes unit enum returns boolean return (GetUnitTypeId(enum)==039;hfoo039;) endfunction //=========================== // END OF CONFIGURABLES //===========================
JASS://=========================== // CONFIGURABLES //=========================== globals // The Rawcode of the Spell private constant boolean SPELL_ID=039;A000039; endglobals // Brief description of filter function ... private function Spell_Filter takes unit enum returns boolean return (GetUnitTypeId(enum)==039;hfoo039;) endfunction //=========================== // END OF CONFIGURABLES //===========================