Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[auto] => Array
(
)
[Art] => ReplaceableTextures\CommandButtons\BTNSkink.blp
[turnRate] => 0.5
[dmgplus1] => 27
[bldtm] => 1
[unitSound] => Skink
[goldcost] => 75
[sides1] => 7
[acquire] => 800
[upgrades] => Array
(
)
[Upgrade] => Array
(
)
[Name] => Skink
[weapTp1] => missile
[MissileHoming] => 1
[file] => units\critters\Skink\Skink.mdl
[uberSplat] => OSMA
[Missileart] => Abilities\Weapons\snapMissile\snapMissile.mdl
[Missilespeed] => 1200
[dice1] => 1
[RngBuff1] => 250
[modelScale] => 0.8
[rangeN1] => 800
[atkType1] => hero
[cool1] => 1
[Ubertip] => It likes to hug people.
[abilList] => Array
(
)
[buildingShadow] => Array
(
)
[targs1] => Array
(
)
[weapsOn] => 1
)
[settings] => Array
(
[balanceTip] => Array
(
)
[abil_factor] => 0.4
[author] => cedi
[alpha] => 255
[authorDisplay] => DreamStrider
[version] => 1.0
[element] => nature
[rarity] => uncommon
)
[effects] => Array
(
[0] => Array
(
[x] => -23.1505
[y] => 28.9546
[z] => 0
[scale] => 0.4
[rot] => 5.68977
[file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant3.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[1] => Array
(
[x] => -26.4579
[y] => 16.4094
[z] => -12.8
[scale] => 0.5
[rot] => 0.0589692
[file] => Doodads\Ruins\Structures\RuinsBuilding\RuinsBuilding2.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[2] => Array
(
[x] => -45.1218
[y] => 1.47308
[z] => 0
[scale] => 0.3
[rot] => 3.39281
[file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant3.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[3] => Array
(
[x] => 28.9648
[y] => -20.7156
[z] => 0
[scale] => 0.5
[rot] => 3.23092
[file] => Doodads\Ruins\Structures\RuinsBuilding\RuinsBuilding2.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[4] => Array
(
[x] => 34.9042
[y] => -20.9416
[z] => 0
[scale] => 0.6
[rot] => 6.24514
[file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => Header
[code] => globals
//@export
BuffType cedi_skinkA //Aura
//@export
BuffType cedi_skinkB //Buff
endglobals
function poisenskin takes Buff B returns nothing
local Tower C = B.getCaster()
local Tower T = B.getBuffedUnit()
local Unit U = Event.getTarget()
local Buff P = U.getBuffOfType( cedi_skinkB )
local real dmg = ( C.userReal + C.userReal2 * C.getLevel() ) * T.getCurrentAttackspeed() / ( T.getRange() / 800.00 )
if P != 0 then
if P.getCaster().getUID() == P.userInt then
call P.refreshDuration()
set P.userReal = P.userReal + dmg
else
set dmg = P.userReal + dmg
call P.removeBuff()
set P = cedi_skinkB.apply( C, U, C.getLevel() )
set P.userInt = C.getUID()
set P.userReal = dmg
endif
else
set P = cedi_skinkB.apply( C, U, C.getLevel() )
set P.userInt = C.getUID()
set P.userReal = dmg
endif
endfunction
function dot takes Buff B returns nothing
local Tower T = B.getCaster()
call T.doSpellDamage( B.getBuffedUnit(), B.userReal, T.calcSpellCritNoBonus() )
call DestroyEffect( AddSpecialEffectTarget( "Abilities\\Spells\\NightElf\\CorrosiveBreath\\ChimaeraAcidTargetArt.mdl", T.getUnit(), "head" ) )
endfunction
//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
set cedi_skinkA = BuffType.createAuraEffectType( true )
call cedi_skinkA.setBuffIcon( '@@0@@' )
call cedi_skinkA.addEventOnAttack( poisenskin, 1.0, 0.0 )
set cedi_skinkB = BuffType.create( 5.00, 0.0, false )
call cedi_skinkB.setBuffIcon( '@@1@@' )
call cedi_skinkB.addPeriodicEvent( dot, 1.0 )
endfunction
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[1] => Array
(
[name] => Tower Aura
[code] => Array
(
)
[values] => Array
(
[AURA_powerAdd] => 1
[visible] => true
[AURA_auraEffect] => cedi_skinkA
[AURA_levelAdd] => 1
[AURA_power] => 0
[icon] => ReplaceableTextures\CommandButtons\BTNMagicImmunity.blp
[AURA_targetType] => TARGET_TYPE_TOWERS
[long_explain] => This and any towers in |cffFFFF80200|r range gain a poisonous attack. The poison deals |cffFFFF803|r spell damage per second for |cffFFFF805|r seconds. The effect stacks and is attack speed and range adjusted.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.12|r spell damage per second
[AURA_targetSelf] => true
[name] => Poisonous Skin
[AURA_level] => 0
[short_explain] => This and any towers in |cffFFFF80200|r range gain a poisonous attack.
[AURA_auraRange] => 200
)
)
[2] => Array
(
[name] => On Tower Creation
[code] => set tower.userReal = 3
set tower.userReal2 = 0.12
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => BHfs
[oeValues] => Array
(
[EditorName] => Poisonous Skin
[Buffubertip] => This tower has a poisonous attack.
[TargetArt] => Array
(
)
[Bufftip] => Poisonous Skin
[Buffart] => ReplaceableTextures\CommandButtons\BTNMagicImmunity.blp
)
)
[1] => Array
(
[id] => @@1@@
[derivedFrom] => BHfs
[oeValues] => Array
(
[Targetattach] => chest
[EditorName] => Skink Poison
[Buffubertip] => This unit takes damage over time.
[TargetArt] => Abilities\Weapons\PoisonSting\PoisonStingTarget.mdl
[Targetattachcount] => 1
[Bufftip] => Skink Poison
[Buffart] => ReplaceableTextures\CommandButtons\BTNMagicImmunity.blp
)
)
)
[units] => Array
(
)
[references] => Array
(
[0] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => cedi_skinkA
)
[1] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => cedi_skinkB
)
)
)