Array
(
[scriptVersion] => 8
[oeValues] => Array
(
[auto] => Array
(
)
[Art] => ReplaceableTextures\CommandButtons\BTNMilitia.blp
[turnRate] => 3
[bldtm] => 1
[dmgplus1] => 852
[goldcost] => 3000
[unitSound] => Peasant
[sides1] => 1
[acquire] => 800
[upgrades] => Array
(
)
[Upgrade] => Array
(
)
[Name] => Militia Blockpost
[weapTp1] => missile
[MissileHoming] => 1
[file] => .mdl
[uberSplat] => OSMA
[Missileart] => Abilities\Weapons\Axe\AxeMissile.mdl
[Missilespeed] => 1500
[dice1] => 1
[RngBuff1] => 250
[modelScale] => 0.1
[rangeN1] => 850
[atkType1] => siege
[cool1] => 0.7
[Ubertip] => Militia guardians rain axes at the heads of the enemies. However, they are not very accurate, and afraid of undead and large creeps. Not that it matters, because none will pass beyond this Blockpost.
[abilList] => Array
(
)
[buildingShadow] => Array
(
)
[targs1] => Array
(
)
[weapsOn] => 1
)
[settings] => Array
(
[balanceTip] => |cffFFFF00-20% |rdmg to bosses (|cffFFFF00+0.9%|r/lvl)|n|cffFFFF00-20% |rdmg to undead (|cffFFFF00+0.7%|r/lvl)|n|cffFFFF00+20% |rdmg to nature (|cffFFFF00+0.7%|r/lvl)
[abil_factor] => 0.433
[author] => ShyGnome
[alpha] => 255
[authorDisplay] => ShyGnome
[element] => iron
[rarity] => uncommon
)
[effects] => Array
(
[0] => Array
(
[x] => 63.4059
[y] => 51.0919
[z] => 0
[scale] => 0.35
[rot] => 0.977385
[file] => units\human\Militia\Militia.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[1] => Array
(
[x] => 60.1909
[y] => 23.2867
[z] => 0
[scale] => 0.4
[rot] => 0.0174533
[file] => Doodads\LordaeronSummer\Terrain\Crates\Crates1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[2] => Array
(
[x] => -59.1958
[y] => 0.815582
[z] => 0
[scale] => 0.4
[rot] => 3.12414
[file] => Doodads\LordaeronSummer\Terrain\Barricade\Barricade0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[3] => Array
(
[x] => 1.06069
[y] => 55.0878
[z] => 0
[scale] => 0.4
[rot] => 1.55334
[file] => Doodads\LordaeronSummer\Terrain\Barricade\Barricade0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[4] => Array
(
[x] => 50.6443
[y] => -49.8891
[z] => 0
[scale] => 0.5
[rot] => 5.23599
[file] => buildings\human\HumanTower\HumanTower.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => true
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[5] => Array
(
[x] => -0.733583
[y] => 14.941
[z] => 0
[scale] => 0.6
[rot] => 5.23599
[file] => buildings\human\HumanTower\HumanTower.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => true
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[6] => Array
(
[x] => 53.8263
[y] => -56.5608
[z] => 83.2
[scale] => 0.37
[rot] => 5.13127
[file] => units\human\Militia\Militia.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[7] => Array
(
[x] => -35.8319
[y] => 47.7785
[z] => 0
[scale] => 0.4
[rot] => 1.46608
[file] => Doodads\LordaeronSummer\Terrain\Crates\Crates1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[8] => Array
(
[x] => -58.493
[y] => 37.5695
[z] => 0
[scale] => 0.4
[rot] => 0.593412
[file] => Doodads\LordaeronSummer\Terrain\Crates\Crates0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[9] => Array
(
[x] => 58.7849
[y] => -9.40186
[z] => 0
[scale] => 0.4
[rot] => 3.07178
[file] => Doodads\LordaeronSummer\Terrain\Crates\Crates0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[10] => Array
(
[x] => 35.9441
[y] => 47.2463
[z] => 0
[scale] => 0.4
[rot] => 1.62316
[file] => Doodads\LordaeronSummer\Terrain\Crates\Crates0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[11] => Array
(
[x] => 0.672684
[y] => -21.0567
[z] => 0
[scale] => 0.45
[rot] => 5.21854
[file] => buildings\human\HumanBarracks\HumanBarracks.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => true
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[12] => Array
(
[x] => -48.6184
[y] => -45.2275
[z] => 0
[scale] => 0.5
[rot] => 5.23599
[file] => buildings\human\HumanTower\HumanTower.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => true
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[13] => Array
(
[x] => -4.08782
[y] => -55.087
[z] => 0
[scale] => 0.4
[rot] => 0.244346
[file] => Doodads\LordaeronSummer\Terrain\Crates\Crates0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[14] => Array
(
[x] => -48.9001
[y] => -48.9199
[z] => 76.8
[scale] => 0.39
[rot] => 3.64774
[file] => units\human\Militia\Militia.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[15] => Array
(
[x] => -0.335765
[y] => -0.108235
[z] => 108.8
[scale] => 0.4
[rot] => 4.71239
[file] => units\human\Militia\Militia.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
)
[dmgTable] => Array
(
[0] => Array
(
[id] => MOD_DMG_TO_BOSS
[base] => -0.2
[add] => 0.009
)
[1] => Array
(
[id] => MOD_DMG_TO_UNDEAD
[base] => -0.2
[add] => 0.007
)
[2] => Array
(
[id] => MOD_DMG_TO_NATURE
[base] => 0.2
[add] => 0.007
)
)
[triggers] => Array
(
[0] => Array
(
[name] => On Attack
[code] => local integer attacks = 2
local boolean add = false
local Unit maintarget = Event.getTarget()
local Unit target
local Iterate it = Iterate.overUnitsInRangeOfUnit(tower,TARGET_TYPE_CREEPS,maintarget,450)
local real sidearc = 0.20
local boolean itDestroyed = false
if tower.getLevel() >= 15 then
set attacks = attacks + 1
endif
if tower.getLevel() >= 25 then
set attacks = attacks + 1
endif
loop
exitwhen attacks == 0 // Exit when all attacks are fired
// If the Iterate is not destroyed, get the next target
if not itDestroyed then
set target = it.next()
// If there are no more targets
if target == 0 then
set itDestroyed = true // Iterate is destroyed (auto destroy)
set target = maintarget // target is the maintarget now
endif
endif
// If there are no more units, shoot at the maintarget (itDestroyed). If there are units then don't shoot at the maintarget
if itDestroyed or target != maintarget then
call Projectile.createBezierInterpolationFromUnitToUnit(MilitiaAxe,tower,0,0,tower,target,0,sidearc,0,true).setScale(0.40)
set attacks = attacks - 1
set sidearc = -sidearc
if add then
set sidearc = sidearc + 0.20
endif
set add = not add
endif
endloop
// If the Iterate is not destroyed yet, destroy it
if not itDestroyed then
call it.destroy()
endif
[values] => Array
(
[visible] => true
[icon] => ReplaceableTextures\CommandButtons\BTNFanOfKnives.blp
[name] => Hail of Axes
[short_explain] => Attacks multiple enemies at once with a chance to miss.
[ONATTACK_chance] => 1.0
[ONATTACK_chanceLevelAdd] => 0.0
[long_explain] => Militia guardians throw axes at up to |cffFFFF803|r enemies at once, but each axe has |cffFFFF8033%|r chance to miss. If there are less creeps than axes thrown, the remaining axes will hit the main target.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80-1.2%|r chance to miss|n|cffFFFF80+1|r target at levels |cffFFFF8015|r and |cffFFFF8025|r
)
)
[1] => Array
(
[name] => Header
[code] => globals
//@import
ProjectileType MilitiaAxe
endglobals
//Do not remove or rename this function!
//Put your initialization tasks here, this function will be called on map init
private function init takes nothing returns nothing
endfunction
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[2] => Array
(
[name] => On Damage
[code] => if tower.calcBadChance(0.33-0.012*tower.getLevel()) then
set Event.damage = 0
call tower.getOwner().displayFloatingTextX("Miss",tower,255, 0, 0,255,0.05,0.0,2.0)
endif
[values] => Array
(
[ONDAMAGE_chance] => 1.0
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[ONDAMAGE_chanceLevelAdd] => 0.0
[long_explain] =>
)
)
[3] => Array
(
[name] => On Tower Creation
[code] => set tower.userInt = 4 // Save the family member (1 = first member)
set tower.userInt2 = 0 // Used to save the buff (double linked list)
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
)
[units] => Array
(
)
[references] => Array
(
[0] => Array
(
[export] => false
[category] => global
[typ] => ProjectileType
[name] => MilitiaAxe
)
)
[lightning] => Array
(
)
)