Potatisbil
New Member
- Reaction score
- 6
OK, let me first say that this is my first time using JASS
im having trouble with this custom script :
I get errors on the colored parts of the script.
On the first colored part i get this error :
"expected ' "
and on the 2nd colored part i get this one:
"Expected a function name"
can anyone telle me whats wrong? thanks in advance
~Potatisbil
im having trouble with this custom script :
Code:
function Trig_Moo takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A000' ) ) then
return false
endif
return true
endfunction
function Moo takes nothing returns nothing
local unit Temp_Unit = GetTriggerUnit()
call TriggerSleepAction( 2 )
[COLOR="Red"]call CreateNUnitsAtLoc ( 1, 'hfoo', GetOwningPlayer(Temp_Unit), GetUnitLoc(Temp_Unit), bj_UNIT_FACING[/COLOR]
endfunction
//===========================================================================
function InitTrig_Moo takes nothing returns nothing
set gg_trg_Moo = CreateTrigger( )
[COLOR="red"]call TriggerAddAction( gg_trg_Moo, function Trig_Moo_Actions )[/COLOR]
endfunction
On the first colored part i get this error :
"expected ' "
and on the 2nd colored part i get this one:
"Expected a function name"
can anyone telle me whats wrong? thanks in advance
~Potatisbil