Warcraft III resources & community, 2003–2006 · archived

Strange, odd and simply not understandeble

2 posts
#1

Strange, odd and simply not understandeble

I have this code, which is real simple:

function hej takes nothing returns nothing
call SetUnitLife( GetLastCreatedUnit, 0.00)
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction

The thing is that it wont work. It keeps telling me that it expected a function name. A little twist though, is that if i copy it to an allready made map, (in this case dimonT's 80 inventory) it works perfectly... How the **** can that be right?!
#2

Re: Strange, odd and simply not understandeble

NobodyI have this code, which is real simple:

function hej takes nothing returns nothing
call SetUnitLife( GetLastCreatedUnit, 0.00)
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction

The thing is that it wont work. It keeps telling me that it expected a function name. A little twist though, is that if i copy it to an allready made map, (in this case dimonT's 80 inventory) it works perfectly... How the **** can that be right?!


So like...is there a function Trig_Untitled_Trigger_001_Actions floating around anywhere? I'm assuming that's what it's expecting, dunno what the heck hej is supposed to be...is that even the whole trigger?