- Joined
- Jun 2, 2009
- Messages
- 1,233
Hello everyone. I have a skill called Frost Prison that creates unwalkable ice blocks around the caster. Both the caster and victims trapped inside are not able to left this prison.
But somehow they are able to walk over prison.
First question is why invisible disables this one?
Second is how can we solve this?
By the way i don't have a knowledge about Jass coding. If you have a solution please tell me "exactly" what should i do.
Ok just figured it out, blockers are units. But is there a way to disable it with jass codes?
But somehow they are able to walk over prison.
First question is why invisible disables this one?
Second is how can we solve this?
By the way i don't have a knowledge about Jass coding. If you have a solution please tell me "exactly" what should i do.
JASS:
function Trig_Prison_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A0CO' // Büyünün Raw Value si
endfunction
function Trig_Prison_Actions takes nothing returns nothing
local unit u = GetSpellAbilityUnit()
local real r = 350. // Büyünün AOE'Si
local integer dum = 'e00Q' //Dummy nin Raw Value'si
local integer level = GetUnitAbilityLevel(u, dum)
local real t = 4 //Buzlar1n kalma süresi (saniye cinsinden)
local integer count = 36 // Buz sayisi
local integer z = 360 / count
local integer i = 1
local real angle = -10
local real array x
local real array y
local player p = GetOwningPlayer(u)
set x[1] = GetUnitX(u)
set y[1] = GetUnitY(u)
call SetTerrainPathable(GetUnitX(GetDyingUnit()), GetUnitY(GetDyingUnit()), PATHING_TYPE_WALKABILITY, true)
loop
exitwhen i == count+2
set i = i + 1
set angle = angle + z
set x[i] = x[1] + r * Cos(angle * bj_DEGTORAD)
set y[i] = y[1] + r * Sin(angle * bj_DEGTORAD)
call UnitApplyTimedLife(CreateUnit(p, dum, x[i], y[i], 0), 'BTLF', t)
call SetTerrainPathable(x[i], y[i], PATHING_TYPE_WALKABILITY, false)
endloop
endfunction
function InitTrig_Prison takes nothing returns nothing
local trigger Prison = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( Prison, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( Prison, Condition( function Trig_Prison_Conditions ) )
call TriggerAddAction( Prison, function Trig_Prison_Actions )
endfunction
Ok just figured it out, blockers are units. But is there a way to disable it with jass codes?
Last edited: