Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[RngBuff1] => 250
[MissileHoming] => 1
[Upgrade] => Array
(
)
[targs1] => Array
(
)
[goldcost] => 150
[weapsOn] => 1
[dice1] => 1
[Missilespeed] => 1100
[file] => units\demon\DemonessBlue\DemonessBlue.mdl
[manaN] => 30
[atkType1] => chaos
[modelScale] => 0.75
[weapTp1] => missile
[acquire] => 1100
[rangeN1] => 1100
[upgrades] => Array
(
)
[cool1] => 1.6
[Ubertip] => A Small young witch...
[regenMana] => 1.5
[abilList] => Array
(
)
[Name] => Village Witch
[Missileart] => Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
[Art] => ReplaceableTextures\CommandButtons\BTNBlueDemoness.blp
[buildingShadow] => Array
(
)
[turnRate] => 0.1
[unitSound] => Demoness
[sides1] => 1
[auto] => Array
(
)
[dmgplus1] => 134
[bldtm] => 1
)
[settings] => Array
(
[author] => cedi
[element] => darkness
[authorDisplay] => cedi
[alpha] => 255
[balanceTip] => |cffFFFF00+1 |rmana/lvl|n|cffFFFF00+0.1 |rmana regen/lvl
[rarity] => uncommon
[version] => 1.0
[abil_factor] => 0.6
)
[effects] => Array
(
[0] => Array
(
[x] => 1.85146
[y] => -47.3482
[z] => 44.8
[scale] => 0.5
[rot] => 3.10669
[file] => Doodads\LordaeronSummer\Props\CauldronWithHeads\CauldronWithHeads.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[1] => Array
(
[x] => 2.86123
[y] => -46.2524
[z] => 0
[scale] => 0.5
[rot] => 1.60186
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 55
[green] => 55
[blue] => 55
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
)
[dmgTable] => Array
(
[0] => Array
(
[id] => MOD_MANA
[base] => 0
[add] => 1
)
[1] => Array
(
[id] => MOD_MANA_REGEN
[base] => 0
[add] => 0.1
)
)
[triggers] => Array
(
[0] => Array
(
[name] => On Tower Creation
[code] => set tower.userReal = 30.00
[values] => Array
(
[icon] =>
[visible] => false
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[1] => Array
(
[name] => On Damage
[code] => local real multipler = 1.00
local integer UID = tower.getUID()
if tower.calcChance( tower.userReal / 100.00 ) then
if Event.getTarget().getBuffOfType( cedi_LovePotion ) != 0 then
set multipler = 2.00
call tower.getOwner().displayFloatingTextX( "Double", tower, 255, 0, 0, 255, 64.00, 1.00, 2.00 )
endif
call SFXAtUnit("Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl", tower.getUnit())
call tower.doSpellDamage( Event.getTarget(), (50 + 2 * tower.getLevel() ) * multipler, tower.calcSpellCritNoBonus() )
call cedi_SoulBuff.applyCustomTimed( tower, tower, 1, 10 * multipler )
set tower.userReal = tower.userReal - 10.00 //* multipler
call tower.modifyProperty( MOD_ATTACKSPEED, 0.10 * multipler )
call TriggerSleepAction( 10.00 * multipler )
if tower.getUID() == UID then
call tower.modifyProperty( MOD_ATTACKSPEED, -0.10 * multipler )
set tower.userReal = tower.userReal + 10.00 //* multipler
endif
endif
[values] => Array
(
[ONDAMAGE_chance] => 1.0
[icon] => ReplaceableTextures\CommandButtons\BTNShade.blp
[visible] => true
[name] => Soul Split
[short_explain] => Each time the witch attacks she has a chance to damage the target and strengthen herself.
[ONDAMAGE_chanceLevelAdd] => 0.0
[long_explain] => When the witch attacks, it has a |cffFFFF8030%|r chance to deal |cffFFFF8050|r spell damage to its target, increasing the witch's attackspeed by |cffFFFF8010%|r and decreasing the chance to trigger this spell by |cffFFFF8010%|r. These effects last |cffFFFF8010|r seconds and stack. If the target is under the influence of a Love Potion, the attackspeed bonus, the damage and the duration of this spell are doubled.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+2|r spell damage
)
)
[2] => Array
(
[name] => Header
[code] => globals
//@export
BuffType cedi_LovePotion
//@export
BuffType cedi_SoulBuff
//@export
ProjectileType cedi_LoveMissile
endglobals
function cedi_Love takes Projectile p, Unit target returns nothing
local Unit tower = p.getCaster()
call cedi_LovePotion.apply( tower, target, p.userInt )
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
local Modifier mod = Modifier.create()
set cedi_LovePotion = BuffType.create( 7.00, 0.00, false )
call cedi_LovePotion.setBuffModifier(mod)
call mod.addModification(MOD_ITEM_CHANCE_ON_DEATH,0.00,0.001)
call mod.addModification(MOD_MOVESPEED,-0.00,-0.00125)
call cedi_LovePotion.setBuffIcon( '@@0@@' )
set cedi_SoulBuff = BuffType.create( 10.00, 0.00, true )
call cedi_SoulBuff.setBuffIcon( '@@1@@' )
set cedi_LoveMissile = ProjectileType.create( "Abilities\\Spells\\Other\\AcidBomb\\BottleMissile.mdl", 999.99, 1100.00 )
call cedi_LoveMissile.enableHoming( cedi_Love, 0.00 )
endfunction
[values] => Array
(
[icon] =>
[visible] => false
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[3] => Array
(
[name] => Autocast
[code] => set Projectile.createFromUnitToUnit( cedi_LoveMissile, tower, 1.00, tower.calcSpellCritNoBonus(), tower, Event.getTarget(), true, false, false ).userInt = 200 + tower.getLevel() * 3
[values] => Array
(
[caster_art] =>
[icon] => ReplaceableTextures\CommandButtons\BTNSnazzyPotion.blp
[AUTOCAST_cooldown] => 3.00
[AUTOCAST_numBuffsBeforeIdle] => 1
[AUTOCAST_isExtended] => false
[long_explain] => The witch throws a bottle of love potion on the target, slowing it by |cffFFFF8025%|r and increasing its item drop chance by |cffFFFF8020%|r. The potion lasts |cffFFFF807|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.375%|r slow|n|cffFFFF80+0.3%|r Item drop chance
[AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_BUFF
[AUTOCAST_manacost] => 25
[AUTOCAST_range] => 1100.00
[AUTOCAST_buffType] => cedi_LovePotion
[name] => Love Potion
[AUTOCAST_targetSelf] => false
[short_explain] => Strong single target slow and item drop chance increase.
[AUTOCAST_targetType] => TARGET_TYPE_CREEPS
[target_art] =>
[AUTOCAST_autoRange] => 1100.00
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => BHfs
[oeValues] => Array
(
[Bufftip] => Love Potion
[Targetattach] => head
[Buffubertip] => This creature is in love. It moves slower and it has a higher chance to drop an item.
[Buffart] => ReplaceableTextures\CommandButtons\BTNSnazzyPotion.blp
[TargetArt] => Abilities\Spells\NightElf\FaerieFire\FaerieFireTarget.mdl
[EditorName] => Love Potion
)
)
[1] => Array
(
[id] => @@1@@
[derivedFrom] => BHfs
[oeValues] => Array
(
[Bufftip] => Soul Split
[Targetattach] => head
[Buffubertip] => The attack speed of this tower is increased.
[Buffart] => ReplaceableTextures\CommandButtons\BTNPossession.blp
[TargetArt] => Abilities\Spells\Orc\Bloodlust\BloodlustTarget.mdl
[EditorName] => Soul Split
)
)
)
[units] => Array
(
)
[references] => Array
(
[0] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => cedi_LovePotion
)
[1] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => cedi_SoulBuff
)
[2] => Array
(
[export] => true
[category] => global
[typ] => ProjectileType
[name] => cedi_LoveMissile
)
)
)