Name | Type | is_array | initial_value |
SpellEventAbility | abilcode | Yes | |
SpellEventHash | hashtable | No | |
SpellEventTrigger | trigger | Yes |
//TESH.scrollpos=0
//TESH.alwaysfold=0
function CreateCorpseLoop takes nothing returns nothing
call CreateCorpse(Player(0), 'hpea', 0, 0, 0)
endfunction
function CreateUnitLoop takes nothing returns nothing
call CreateUnit(Player(1), 'uaco', 0, 0, 0)
endfunction
function InitTrig_Code takes nothing returns nothing
local unit u = CreateUnit(Player(0), 'Hpal', 0, 0, 0)
local integer i = 0
call SetHeroLevel(u, 10, false)
loop
call SelectHeroSkill(u, 'AHhb')
call SelectHeroSkill(u, 'AHds')
call SelectHeroSkill(u, 'AHad')
exitwhen i == 2
set i = i + 1
endloop
call SelectHeroSkill(u, 'AHre')
call TimerStart(CreateTimer(), 5, true, function CreateCorpseLoop)
call TimerStart(CreateTimer(), 5, true, function CreateUnitLoop)
endfunction