Ardenian
A
Ardenian
To reduce the functions in my map, I merged some triggers and wrote a general
one.
I have a problem with adding abilities saved in a variable.
However, it does not work, the unit is not transformed.
( ChaosAbility is a Chaos-based ability)
Interesting though, as this works:
Could you please enlighten me ?
one.
I have a problem with adding abilities saved in a variable.
JASS:
// In map conf:
set udg_ChaosAbility[1] = 'h000'
// udg_ChaosAbility is an integer variable with array
// in trigger
call UnitAddAbility( udg_TempUnit, udg_ChaosAbility[1])
However, it does not work, the unit is not transformed.
( ChaosAbility is a Chaos-based ability)
Interesting though, as this works:
JASS:
local integer abilityid = udg_ChaosAbility[1]
// when the variable is an ability variable with array
call UnitAddAbility( udg_TempUnit, abilityid)
Could you please enlighten me ?