- Joined
- Apr 12, 2009
- Messages
- 125
Hi! I'm learning JASS and I'm wondering why i get this error....
It says in JassCraft that there will be no problem, here's the code!
JASS:
Line 98: Expected a function name
It says in JassCraft that there will be no problem, here's the code!
JASS:
function lol takes nothing returns boolean
return GetSpellAbilityId() == 'A000'
endfunction
function Cast_Forked takes unit caster, unit target returns nothing
local unit dummy = CreateUnitAtLoc( GetOwningPlayer(caster), 'h001', GetUnitLoc(target), 270 )
call UnitAddAbility( dummy, 'A001')
call SetUnitAbilityLevel( dummy, 'A001', GetUnitAbilityLevel( caster, 'A000') )
call IssueImmediateOrder( dummy, "fanofknives")
set dummy = null
endfunction
//===========================================================================
function InitTrig_Static_Charge takes nothing returns nothing
local trigger t = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( t, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( t, Condition( function lol ) )
endfunction