Warcraft — 1.26 Shuud Tatah

// Spawn handles real array SpawnX real array SpawnY real EndX = -1500.0 real EndY = 4500.0 integer SpawnIndex = 0

function OnWaveTimerExpired takes nothing returns nothing call NextWave() endfunction function CreateCustomHero takes player p, real x, real y returns unit local unit u = CreateUnit(p, 'Obla', x, y, 270) call SetHeroLevel(u, 1, false) call SelectHeroForPlayer(u, p) // Add custom abilities (using base IDs) call UnitAddAbility(u, 'AInv') // Inventory call UnitAddAbility(u, 'AHbz') // Bladestorm (customizable) call UnitAddAbility(u, 'AOcr') // Critical Strike call UnitAddAbility(u, 'AOwk') // Wind Walk warcraft 1.26 shuud tatah

// Spawn enemies loop exitwhen i >= count set x = SpawnX[GetRandomInt(0, SpawnIndex-1)] set y = SpawnY[GetRandomInt(0, SpawnIndex-1)] set u = CreateUnit(enemyPlayer, unitType, x, y, GetRandomDirectionDeg()) call IssuePointOrder(u, "attack", EndX, EndY) set i = i + 1 endloop // Spawn handles real array SpawnX real array

// Wave timer set WaveTimer = CreateTimer() call TimerStart(WaveTimer, 5.0, false, null) // first wave soon set tLeaderboardUpdate = CreateTrigger() 270) call SetHeroLevel(u