Forest Archer v1
660
ID:
601
Family ID:
Author:
Boekie
Rarity:
rare
Element:
nature
Attack Type:
Essence
Attack Range:
850
Attack CD:
2.2
Damage:
715-720
Status:
Approved

Description:

An archer that has been granted a gift from the forest.
Multishot:
Attacks up to 3 targets at the same time.

Level Bonus:
+1 target at level 15
Gift of the Forest
The magical powers of the forest grant this archer enchanted arrows. These arrows have a 5% chance to stun for 1.75 seconds. If they don't stun there is a 10% chance to slow by 15% for 7.5 seconds. 

Level Bonus
+0.1% chance to stun
+0.05 seconds stun duration
+0.1% chance to slow
+0.2 seconds slow duration
Download

Toggle Triggers

Header

    globals   
    //@export
    BuffType CyonyPoison
    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 slow=Modifier.create()
    set CyonyPoison=BuffType.create(7.5,0.1,false)
    call slow.addModification(MOD_MOVESPEED,-0.15,0)
    call CyonyPoison.setBuffIcon('@@2@@') 
    call CyonyPoison.setBuffModifier(slow) 
    call CyonyPoison.setStackingGroup("ForestArcherStacks") 
    endfunction

On Damage

ONDAMAGE_chance: 1.0 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
local integer level = tower.getLevel()
local Unit creep = Event.getTarget()

if tower.calcChance(0.05 + level*0.001) then
    call cb_stun.applyOnlyTimed(tower, creep, 1.75 + level*0.05)
  elseif tower.calcChance(0.1 + level*0.001) then
    call CyonyPoison.apply(tower,creep,level*2) 
  endif
endfunction

On Level Up

function onLevelUp takes Tower tower returns nothing
    if tower.getLevel() == 15 then
        call UnitRemoveAbility(tower.getUnit(),'@@1@@')
        call UnitAddAbility(tower.getUnit(),'@@0@@')
    endif
endfunction

On Tower Creation

function onCreate takes Tower tower returns nothing
    if tower.getLevel() >= 15 then
        call UnitRemoveAbility(tower.getUnit(),'@@1@@')
        call UnitAddAbility(tower.getUnit(),'@@0@@')
    endif
endfunction
Forest Ranger v1
1100
ID:
602
Family ID:
Author:
Boekie
Rarity:
rare
Element:
nature
Attack Type:
Essence
Attack Range:
850
Attack CD:
2.2
Damage:
1194-1199
Status:
Approved

Description:

An archer that has been granted a gift from the forest.
Multishot:
Attacks up to 3 targets at the same time.

Level Bonus:
+1 target at level 15
Gift of the Forest
The magical powers of the forest grant this archer enchanted arrows. These arrows have a 6% chance to stun for 1.75 seconds. If they don't stun there is a 15% chance to slow by 15% for 8.5 seconds. 

Level Bonus
+0.1% chance to stun
+0.05 seconds stun duration
+0.1% chance to slow
+0.2 seconds slow duration
Download

Toggle Triggers

Header

    globals   
    //@import
    BuffType CyonyPoison
    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

On Damage

ONDAMAGE_chance: 1.0 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
local integer level = tower.getLevel()
local Unit creep = Event.getTarget()

if tower.calcChance(0.06 + level*0.001) then
    call cb_stun.applyOnlyTimed(tower, creep, 1.75 + level*0.05)
  elseif tower.calcChance(0.15 + level*0.001) then
    call CyonyPoison.apply(tower,creep,10+level*2) 
  endif
endfunction

On Level Up

function onLevelUp takes Tower tower returns nothing
    if tower.getLevel() == 15 then
        call UnitRemoveAbility(tower.getUnit(),'@@1@@')
        call UnitAddAbility(tower.getUnit(),'@@0@@')
    endif
endfunction

On Tower Creation

function onCreate takes Tower tower returns nothing
    if tower.getLevel() >= 15 then
        call UnitRemoveAbility(tower.getUnit(),'@@1@@')
        call UnitAddAbility(tower.getUnit(),'@@0@@')
    endif
endfunction
Forest Amazon v1
2450
ID:
603
Family ID:
Author:
Boekie
Rarity:
rare
Element:
nature
Attack Type:
Essence
Attack Range:
850
Attack CD:
2.2
Damage:
2661-2666
Status:
Approved

Description:

An archer that has been granted a gift from the forest.
Multishot:
Attacks up to 3 targets at the same time.

Level Bonus:
+1 target at level 15
Gift of the Forest
The magical powers of the forest grant this archer enchanted arrows. These arrows have a 7% chance to stun for 1.75 seconds. If they don't stun there is a 20% chance to slow by 15% for 9.5 seconds. 

Level Bonus
+0.1% chance to stun
+0.05 seconds stun duration
+0.1% chance to slow
+0.2 seconds slow duration
Download

Toggle Triggers

Header

    globals   
    //@import
    BuffType CyonyPoison
    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

On Damage

ONDAMAGE_chance: 1.0 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
local integer level = tower.getLevel()
local Unit creep = Event.getTarget()

if tower.calcChance(0.07 + level*0.001) then
    call cb_stun.applyOnlyTimed(tower, creep, 1.75 + level*0.05)
  elseif tower.calcChance(0.20 + level*0.001) then
    call CyonyPoison.apply(tower,creep,20+level*2) 
  endif
endfunction

On Level Up

function onLevelUp takes Tower tower returns nothing
    if tower.getLevel() == 15 then
        call UnitRemoveAbility(tower.getUnit(),'@@1@@')
        call UnitAddAbility(tower.getUnit(),'@@0@@')
    endif
endfunction

On Tower Creation

function onCreate takes Tower tower returns nothing
    if tower.getLevel() >= 15 then
        call UnitRemoveAbility(tower.getUnit(),'@@1@@')
        call UnitAddAbility(tower.getUnit(),'@@0@@')
    endif
endfunction