Warcraft III resources & community, 2003–2006 · archived

What does BJ mean in blizzard function names?

5 posts
#1

What does BJ mean in blizzard function names?

I can't figure out what the BJ means in Functions like
unitAddAbilityBJ

why is it different than
unitAddAbility

Thanks,
#2
From Blizzard.j:

function UnitAddAbilityBJ takes integer abilityId, unit whichUnit returns boolean
    return UnitAddAbility(whichUnit, abilityId)
endfunction

BJ version takes variables in a reversed order. I think it has something to do with how the World Editor GUI is programmed.

BJ means that the function is located in Blizzard.j and is not a native function.
#3
Most of the time it is better to avoid the BJ functions and use the natives directly.
#4
The triggers tend to use the BJ functions. I wish you had a better explanation.
#5
Well, I don't know how to explain that better but GUI actions require that the variables in the text are in the same order as the function it calls.
That is why there are many BJ functions that just change the order of the variables.