Array
(
[scriptVersion] => 8
[oeValues] => Array
(
[Ubertip] => Wants to give you a weather forecast.
[Art] => ReplaceableTextures\CommandButtons\BTNRockGolem.blp
[abilList] => Array
(
)
[Name] => Pet Rock
)
[settings] => Array
(
[balanceTip] => Array
(
)
[goldcost] => 500
[author] => Ashbringer
[authorDisplay] => |cffFF6600Ashbringer|r
[version] => 1.0
[rarity] => unique
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => On Item Drop
[code] => local Effect e
if itm.userInt != -1 then
set e = itm.userInt
call e.destroy()
set itm.userInt = -1
endif
[values] => Array
(
[explain] =>
[visible] => false
[goldcost] => 0
[name] =>
)
)
[1] => Array
(
[name] => Header
[code] => globals
ProjectileType ashbringer_petrock_missile
endglobals
function ashbringer_petrock_hit takes Projectile p, Creep c returns nothing
local Tower t = p.getCaster()
call cb_stun.applyOnlyTimed(t, c, 2)
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 ashbringer_petrock_missile = ProjectileType.create("Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl", 5.0, 1300)
call ashbringer_petrock_missile.enableHoming(ashbringer_petrock_hit, 0.0)
endfunction
[values] => Array
(
[explain] =>
[visible] => false
[goldcost] => 0
[name] =>
)
)
[2] => Array
(
[name] => On Item Pickup
[code] => set itm.userInt = -1
[values] => Array
(
[explain] =>
[visible] => false
[goldcost] => 0
[name] =>
)
)
[3] => Array
(
[name] => Periodic
[code] => local Tower tower = itm.getCarrier()
local Effect e
local Iterate i
local Creep next
local real angle
if itm.userInt != -1 then
set e = itm.userInt
if tower.calcChance(0.25) then
set i = Iterate.overUnitsInRange(tower, TARGET_TYPE_CREEPS, e.userReal, e.userReal2, 500)
set next = i.nextRandom()
if next != 0 then
call i.destroy()
set angle = bj_RADTODEG * Atan2(next.getY() - e.userReal2, next.getX() - e.userReal)
call e.setFacing(angle)
call e.setAnimation("attack")
call e.queueAnimation("stand")
call Projectile.createFromPointToUnit(ashbringer_petrock_missile, tower, 0.0, 0.0, e.userReal, e.userReal2, 30, next, true, false, false).setScale(0.4)
endif
endif
endif
[values] => Array
(
[explain] =>
[visible] => false
[goldcost] => 0
[PERIODIC_period] => 4
[name] =>
)
)
[4] => Array
(
[name] => Autocast
[code] => local Tower tower = itm.getCarrier()
local Effect e
local real x = GetSpellTargetX() + GetRandomReal(-60, 60)
local real y = GetSpellTargetY() + GetRandomReal(-60, 60)
call Effect.createSimple("Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl", x, y).setLifetime(3.0)
if itm.userInt == -1 then
set e = Effect.createAnimatedScaled("units\\creeps\\RockGolem\\RockGolem", x, y, 0, 270, 0.4)
call e.noDeathAnimation()
call e.setAnimation("stand")
set e.userReal = x
set e.userReal2 = y
set itm.userInt = e
else
call e.setPosition(x, y)
call e.setAnimation("stand")
set e.userReal = x
set e.userReal2 = y
endif
[values] => Array
(
[explain] => Throw your pet rock at the target location, where it will stay. Every |cffFFFF804|r seconds, the pet rock has a |cffFFFF8025%|r chance to throw a stone that stuns a nearby enemy for |cffFFFF802|r seconds.
[AUTOCAST_cooldown] => 60
[AUTOCAST_autoRange] => 0
[AUTOCAST_manacost] => 0
[goldcost] => 500
[AUTOCAST_range] => 700
[AUTOCAST_targetType] => 0
[AUTOCAST_numBuffsBeforeIdle] => 0
[caster_art] =>
[target_art] =>
[AUTOCAST_autocastType] => AC_TYPE_NOAC_POINT
[AUTOCAST_buffType] => 0
[AUTOCAST_isExtended] => false
[name] => Summon Pet Rock
[AUTOCAST_targetSelf] => false
)
)
[5] => Array
(
[name] => On Item Destruction
[code] => local Effect e
if itm.userInt != -1 then
set e = itm.userInt
call e.destroy()
endif
[values] => Array
(
[explain] =>
[visible] => false
[goldcost] => 0
[name] =>
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
)
[units] => Array
(
)
[references] => Array
(
)
)