So...
As I said in title I am new to Jass and i have made a group heal spell to test my skills.
When I try to test my map the WE pops out a box with errors.
Here is my Jass spell:
I have a polish W3 (I am from Poland), so I don't rly know how to translate some the errors and don't know if I should put a screenshot here. However it tells me that here are 31 errors. From what I can actually translate, it says something about awaiting end of line in some of the errors and awaiting name of variable, name and endloop.
As I said in title I am new to Jass and i have made a group heal spell to test my skills.
When I try to test my map the WE pops out a box with errors.
Here is my Jass spell:
JASS:
function Cond takes nothing returns boolean
call GetSpellAbilityId() == 039;A000039;
endfunction
function Group_Heal takes nothing returns nothing
local group g
local unit u
local unit dumb
local unit cast
local location p
set cast = GetTriggerUnit()
set p = GetSpellTargetLoc()
set g = GetUnitsInRangeOfLocAll(800.00, p)
loop
set u = FirstOfGroup(g)
exitwhen u == null
if IsUnitEnemy(u, GetOwningPlayer(cast)) == TRUE then
call GroupRemoveUnit(g, u)
set dumb = CreateUnitAtLoc(GetOwningPlayer(cast), 039;h000039;, GetUnitLoc(u), 0.00)
call IssueTargetOrder(dumb, "Heal", u)
call UnitApplyTimedLifeBJ(1.50, 039;BTLF039;, dumb)
set dumb = null
endif
endloop
set cast = null
set g = null
set u = null
set p = null
endfunction
function GroupHeal takes nothing returns nothing
local trigger t
set t = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(t, EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(t, Condition(function Cond))
call TriggerAddAction(t, function Group_Heal)
endfunction
I have a polish W3 (I am from Poland), so I don't rly know how to translate some the errors and don't know if I should put a screenshot here. However it tells me that here are 31 errors. From what I can actually translate, it says something about awaiting end of line in some of the errors and awaiting name of variable, name and endloop.