Hi, ok so i have learned realy basic jass about an hour ago, and decided to make my GUI spell MUI.
I came up with this:
The problem is, at line 60:
call ForGroupBJ( GetUnitsInRangeOfLocAll(512, Apocalyptica_Temp_Point),function Trig1(Apocalyptica_Temp_Caster))
He says:
Expected '
I have no idea what it means, can anyone help me?
I came up with this:
JASS:
function Trig_Apocalyptica_Copy_Copy_2_Copy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A000' ) ) then
return false
endif
return true
endfunction
function Trig1 takes unit Temp_Caster returns nothing
call UnitDamageTargetBJ( Temp_Caster, GetEnumUnit(), 200, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Apocalyptica_Copy_Copy_2_Copy_Actions takes nothing returns nothing
local unit Apocalyptica_Temp_Caster = GetSpellAbilityUnit()
local real Apocalyptica_Temp_Dmg = I2R(( ( 50 + ( 50 * GetUnitAbilityLevelSwapped(GetSpellAbilityId(), Apocalyptica_Temp_Caster) ) ) + ( R2I(Pow(I2R(GetHeroStatBJ(bj_HEROSTAT_INT, Apocalyptica_Temp_Caster, true)), 2.00)) / 7 ) ))
local location Apocalyptica_Temp_Point = GetSpellTargetLoc()
call DisplayTextToForce( GetPlayersAll(), R2S(Apocalyptica_Temp_Dmg) )
call TriggerSleepAction( ( DistanceBetweenPoints(GetUnitLoc(Apocalyptica_Temp_Caster), Apocalyptica_Temp_Point) / 680.00 ) )
call AddSpecialEffectLocBJ( Apocalyptica_Temp_Point, "war3mapImported\\NewGroundEX.mdx" )
call AddSpecialEffectLocBJ( Apocalyptica_Temp_Point, "Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl" )
// ======== Look here ========
call ForGroupBJ( GetUnitsInRangeOfLocAll(512, Apocalyptica_Temp_Point),function Trig1(Apocalyptica_Temp_Caster))
// ======== ========
call CameraSetEQNoiseForPlayer( Player(0), 3 )
call TriggerSleepAction( 0.50 )
call CameraClearNoiseForPlayer( Player(0) )
call RemoveLocation( Apocalyptica_Temp_Point)
endfunction
//===========================================================================
function InitTrig_Apocalyptica_Copy_Copy_2_Copy takes nothing returns nothing
set gg_trg_Apocalyptica_Copy_Copy_2_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Apocalyptica_Copy_Copy_2_Copy, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Apocalyptica_Copy_Copy_2_Copy, Condition( function Trig_Apocalyptica_Copy_Copy_2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Apocalyptica_Copy_Copy_2_Copy, function Trig_Apocalyptica_Copy_Copy_2_Copy_Actions )
endfunction
The problem is, at line 60:
call ForGroupBJ( GetUnitsInRangeOfLocAll(512, Apocalyptica_Temp_Point),function Trig1(Apocalyptica_Temp_Caster))
He says:
Expected '
I have no idea what it means, can anyone help me?