- Reaction score
- 534
Ok I think my WE is bugging... I made a script a WHILLLE ago that looks like this (without the events) :
But it worked very well. It worked like 1 hour ago when I tested my map and did it. But now, I tried to save my map and I got an error on each of the bolded lines and I can't even play the map ! I tried restarting and even the comp but nothing works out ! It bugged since I add the udg_Vanish_Loc[INDEX] = GetUnitLoc thingy (for later use in another trigger)
The explanations of the errors are in italics next to the bolded line.
Any ideas or solutions I might do to restore this ? I can't even test the map since these errors occured !
Code:
function Trig_Vanish_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00M' ) ) then
return false
endif
return true
endfunction
function Trig_Vanish_Actions takes nothing returns nothing
set udg_Vanish_Loc[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))] = GetUnitLoc(GetSpellAbilityUnit())
[B]local unit DUMMY[/B] [i]Expected a code statement[/i]
[B]local unit DUMMYY[/B] [i]Expected a code statement[/i]
[B]local unit zeratul=GetTriggerUnit()[/B] [i]Expected a code statement[/i]
[B]call CreateNUnitsAtLoc( 1, 'h001', GetOwningPlayer(zeratul), GetUnitLoc(zeratul), bj_UNIT_FACING )[/B] [i]Expected a name[/i]
[B]set DUMMY = GetLastCreatedUnit()[/B] [i]Expected a variable name[/i]
[B]call UnitApplyTimedLifeBJ( 5.00, 'BTLF', DUMMY )[/B] [i]Expected a name[/i]
[B] call CreateNUnitsAtLoc( 1, 'h001', GetOwningPlayer(zeratul), GetSpellTargetLoc(), bj_UNIT_FACING )[/B] [i]Expected a name[/i]
[B]set DUMMYY = GetLastCreatedUnit()[/B] [i]Expected a variable name[/i]
[B]call UnitApplyTimedLifeBJ( 5.00, 'BTLF', DUMMYY )[/B] [i]Expected a name[/i]
[B]call ShowUnitHide(zeratul)[/B] [i]Expected a name[/i]
call TriggerSleepAction( 5.00 )
[B]call ShowUnitShow(zeratul)[/B] [i]Expected a name[/i]
[B]call SelectUnitAddForPlayer( zeratul, GetOwningPlayer(zeratul) ) [/b] [i]Expected a name[/i]
endfunction
But it worked very well. It worked like 1 hour ago when I tested my map and did it. But now, I tried to save my map and I got an error on each of the bolded lines and I can't even play the map ! I tried restarting and even the comp but nothing works out ! It bugged since I add the udg_Vanish_Loc[INDEX] = GetUnitLoc thingy (for later use in another trigger)
The explanations of the errors are in italics next to the bolded line.
Any ideas or solutions I might do to restore this ? I can't even test the map since these errors occured !