This is the code used by IceFrog for Rupture.
The thing is that functions like "call SetHandle(lf5,"RuptureCaster",lr7) totaly doesn't work. I emailed IceFrog to know what editor he's using but he said "I don't use any special editor, so idk what to tell you".
I'm posting it here to know if someone knows how to use those functions.
JASS:
function Trig_Rupture_Actions takes nothing returns nothing
local unit lr7=GetTriggerUnit()
local unit lr8=GetSpellTargetUnit()
local location lRb=GetUnitLoc(lr8)
local integer lmZ=GetUnitAbilityLevel(lr7,039;A0LH039;)
local timer ltt=CreateTimer()
local string lf5=H2Tx(ltt)
local unit lqE
call UnitDamageTargetBJ(lr7,lr8,50+100*lmZ,ATTACK_TYPE_HERO,DAMAGE_TYPE_MAGIC)
call SetHandle(lf5,"RuptureCaster",lr7)
call SetHandle(lf5,"RuptureTarget",lr8)
call SetHandle(lf5,"RuptureOldLoc",lRb)
call TimerStart(ltt,.25,true,function Rupture_Main)
set lqE=CreateUnit(GetOwningPlayer(lr8),039;e01R039;,0,0,bj_UNIT_FACING)
call UnitAddAbility(lqE,039;A0NH039;)
call PolledWait(3+(2*lmZ))
call RemoveUnit(lqE)
call UnitRemoveAbility(lr8,039;B067039;)
call PauseTimer(ltt)
call PolledWait(1)
call FastFlush(lf5)
call DestroyTimer(ltt)
endfunction
The thing is that functions like "call SetHandle(lf5,"RuptureCaster",lr7) totaly doesn't work. I emailed IceFrog to know what editor he's using but he said "I don't use any special editor, so idk what to tell you".
I'm posting it here to know if someone knows how to use those functions.