When I save, I get 3 compile errors:
Now the weird part is, I don't even have a Blizzard trigger. I entered the globals in when I was trying to get Newgen working, and then deleted it later.
I open it up in standard WE, save, got this error, so I deleted the entire trigger, and I still get this error.
I opened the map up in MPQEditor, I'm not quite sure if this is normal, but there is 2 war3map.j files.
One in the standard folder, and another in "Scripts"
I check the standard j file, and the lines causing the errors aren't in it, I check the j file in the scripts folder, those lines ARE in it, so I delete that file in the MPQEditor, re-open the map in WE, don't touch anything, save and still get this error.
I also tried making a new Blizzard trigger, 1st with nothing in it, and 2nd with the above code minus the TESH and globals
JASS:
// Trigger: Blizzard
//===========================================================================
//TESH.scrollpos=0
//TESH.alwaysfold=0 <----- Line 13845: Expected end of line
globals
integer privintg <----- Line 13847: Expected end of line (This one actually gives 2 errors)
endglobals
function Trig_Blizzard_Conditions takes nothing returns boolean
return GetSpellAbilityId()=='DaoF'
endfunction
function Trig_Blizzard_Actions takes nothing returns nothing
set udg_unit_blizzard=CreateUnit(GetOwningPlayer(GetTriggerUnit()),'h01U',GetUnitX(GetTriggerUnit()),GetUnitY(GetTriggerUnit()),bj_UNIT_FACING)
call UnitAddAbility(udg_unit_blizzard,'FMba')
endfunction
function Trig_Blizzard_End_Actions takes nothing returns nothing
call RemoveUnit(udg_unit_blizzard)
set udg_unit_blizzard=null
endfunction
//===========================================================================
function InitTrig_Blizzard takes nothing returns nothing
local integer i=0
local trigger t=CreateTrigger()
set gg_trg_Blizzard=CreateTrigger()
loop
exitwhen i==bj_MAX_PLAYER_SLOTS
call TriggerRegisterPlayerUnitEvent(gg_trg_Blizzard,Player(i),EVENT_PLAYER_UNIT_SPELL_EFFECT,null)
call TriggerRegisterPlayerUnitEvent(t,Player(i),EVENT_PLAYER_UNIT_SPELL_ENDCAST,null)
set i=i+1
endloop
call TriggerAddCondition(gg_trg_Blizzard,Condition(function Trig_Blizzard_Conditions))
call TriggerAddAction(gg_trg_Blizzard,function Trig_Blizzard_Actions)
call TriggerAddCondition(t,Condition(function Trig_Blizzard_Conditions))
call TriggerAddAction(t,function Trig_Blizzard_End_Actions)
set t=null
endfunction
Now the weird part is, I don't even have a Blizzard trigger. I entered the globals in when I was trying to get Newgen working, and then deleted it later.
I open it up in standard WE, save, got this error, so I deleted the entire trigger, and I still get this error.
I opened the map up in MPQEditor, I'm not quite sure if this is normal, but there is 2 war3map.j files.
One in the standard folder, and another in "Scripts"
I check the standard j file, and the lines causing the errors aren't in it, I check the j file in the scripts folder, those lines ARE in it, so I delete that file in the MPQEditor, re-open the map in WE, don't touch anything, save and still get this error.
I also tried making a new Blizzard trigger, 1st with nothing in it, and 2nd with the above code minus the TESH and globals