Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[RngBuff1] => 250
[MissileHoming] => 1
[Upgrade] => Array
(
)
[targs1] => Array
(
)
[goldcost] => 180
[weapsOn] => 1
[dice1] => 1
[Missilespeed] => 1500
[file] => units\creeps\VoidWalker\VoidWalker.mdl
[atkType1] => chaos
[modelScale] => 0.6
[weapTp1] => missile
[acquire] => 800
[rangeN1] => 950
[upgrades] => Array
(
)
[cool1] => 2
[Ubertip] => A mysterious Ghost, which deals different damage types.
[green] => 0
[abilList] => Array
(
)
[Name] => Lesser Elemental Ghost
[Missileart] => Abilities\Weapons\ProcMissile\ProcMissile.mdl
[Art] => ReplaceableTextures\CommandButtons\BTNVoidWalker.blp
[red] => 200
[buildingShadow] => Array
(
)
[unitSound] => ObsidianDestroyer
[blue] => 0
[turnRate] => 1
[sides1] => 1
[uberSplat] => OSMA
[auto] => Array
(
)
[dmgplus1] => 328
[bldtm] => 1
)
[settings] => Array
(
[author] => Der_kleine_Tomy
[element] => fire
[authorDisplay] => |c00ff0000Der_kleine_Tomy|r
[alpha] => 255
[balanceTip] => |cffFFFF00+0.5% |rtrigger chances/lvl
[rarity] => uncommon
[version] => 1.0
[abil_factor] => 0.85
)
[effects] => Array
(
[0] => Array
(
[x] => -1.60897
[y] => 8.90444
[z] => 44.8
[scale] => 2.25
[rot] => 1.71042
[file] => Abilities\Spells\Items\AIfb\AIfbTarget.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
)
[dmgTable] => Array
(
[0] => Array
(
[id] => MOD_TRIGGER_CHANCES
[base] => 0
[add] => 0.005
)
)
[triggers] => Array
(
[0] => Array
(
[name] => On Damage
[code] => local Creep target = Event.getTarget()
local boolean immune = target.isImmune()
local boolean sif = target.getArmorType() == ARMOR_SIF
local boolean zod = target.getArmorType() == ARMOR_ZOD
local integer level = tower.getLevel()
local real damageadd
local real posDamageTypes = 3
if immune then
set posDamageTypes = 2
endif
if GetRandomInt(1, 100) > 50 then
if sif or zod then
set damageadd = 1.00
elseif tower.calcChance(1.00/posDamageTypes) then
set damageadd = 1.80
elseif not immune and tower.calcChance(1.00/(posDamageTypes - 1)) then
set damageadd = 1.50
else
set damageadd = 1.20
endif
else
if zod then
set damageadd = 0.90
elseif sif then
if not immune or (immune and tower.calcChance(0.50)) then
set damageadd = 0.40
else
set damageadd = 0.00
endif
elseif tower.calcChance(1.00/(6.00-posDamageTypes)) then
set damageadd = 1.00
elseif tower.calcChance(1.00/(6.00-(posDamageTypes + 1))) then
set damageadd = 0.90
elseif not immune or (immune and tower.calcChance(1.00/(6.00-(posDamageTypes + 2)))) then
set damageadd = 0.60
else
set damageadd = 0.00
endif
endif
set Event.damage = Event.damage * damageadd
if damageadd > 1.00 then
call tower.getOwner().displaySmallFloatingText(formatFloat(damageadd,2), tower, 0, 255, 0, 40)
elseif damageadd < 1.00 then
call tower.getOwner().displaySmallFloatingText(formatFloat(damageadd,2), tower, 255, 0, 0, 40)
else
call tower.getOwner().displaySmallFloatingText(formatFloat(damageadd,2), tower, 255, 255, 255, 40)
endif
[values] => Array
(
[ONDAMAGE_chance] => 1.0
[icon] => ReplaceableTextures\CommandButtons\BTNOrbofSlowness.blp
[visible] => true
[name] => Mimic
[short_explain] => The Ghost is able to deal different damage types.
[ONDAMAGE_chanceLevelAdd] => 0.0
[long_explain] => The Ghost's attacks are varied, and its damage type will either be good or bad against its target. Trigger chance adjusts the good/bad attacks to be better.
)
)
[1] => Array
(
[name] => Header
[code] => globals
//@export
BuffType tomy_ElementalWrath
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
local Modifier modifier = Modifier.create()
call modifier.addModification(MOD_TRIGGER_CHANCES, 0.00, 0.001)
set tomy_ElementalWrath = BuffType.create(5.0, 0.00, true)
call tomy_ElementalWrath.setBuffIcon('@@0@@')
call tomy_ElementalWrath.setBuffModifier(modifier)
endfunction
[values] => Array
(
[icon] =>
[visible] => false
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[2] => Array
(
[name] => On Attack
[code] => if tower.getBuffOfType(tomy_ElementalWrath) == 0 then
call tomy_ElementalWrath.applyCustomTimed(tower, tower, 150 + tower.getLevel() * 5, 5.0 + 0.1 * tower.getLevel())
endif
[values] => Array
(
[icon] => ReplaceableTextures\CommandButtons\BTNSpiritLink.blp
[visible] => true
[name] => Elemental Wrath
[short_explain] => The Ghost has a chance on attack to increase its triggerchance temporarily.
[ONATTACK_chance] => 0.15
[ONATTACK_chanceLevelAdd] => 0.0
[long_explain] => The Elemental Ghost has a |cffFFFF8015%|r chance to unleash it's wrath on attack, increasing its trigger chance by |cffFFFF8015%|r for |cffFFFF805|r seconds. Cannot retrigger during Elemental Wrath.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.1|r seconds duration|r|n|cffFFFF80+0.5%|r trigger chance increase
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => Bbsk
[oeValues] => Array
(
[Targetattach1] => hand,right
[Bufftip] => Elemental Wrath
[Targetattach] => hand,left
[Buffubertip] => This unit has increased triggerchance.
[Targetattachcount] => 4
[Targetattach2] => hand,left
[Targetattach3] => hand,right
[Buffart] => ReplaceableTextures\CommandButtons\BTNSpiritLink.blp
[TargetArt] => Abilities\Spells\Orc\Disenchant\DisenchantSpecialArt.mdl,Abilities\Spells\Orc\Disenchant\DisenchantSpecialArt.mdl,Abilities\Spells\NightElf\Barkskin\BarkSkinTarget.mdl,Abilities\Spells\NightElf\Barkskin\BarkSkinTarget.mdl
[EditorName] => Elemental Wrath
)
)
)
[units] => Array
(
)
[references] => Array
(
[0] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => tomy_ElementalWrath
)
)
)