Spell from DotA called Glaives of Wisdom,
Nortrom's Glaives are enchanted by his experience in magic. If he kills a hero, he will permanently steal 1 intelligence from it. Damage type is pure.
Level 1 - Deals 15% of your intelligence in bonus damage.
Level 2 - Deals 30% of your intelligence in bonus damage.
Level 3 - Deals 45% of your intelligence in bonus damage.
Level 4 - Deals 60% of your intelligence in bonus damage.
Cooldown: 3/2/1/0 seconds.
Casteable/Autocastable
Bonus damage shoul be shown in the overhead just ike a critical strike on the target unit with teal color.
+1 int on the killer, -1 int on the target killed. (text in red color)
I am not directly requesting this, i would like some guidance on how to make this, but if someone can make this spell for me and post it on the spell section i would be more than gratefull with you guys.
No dude, thats not the real spell from dota. Glaives of Wisdom only deals % of your intelligence in attack damage. The other spell you are talking about is called Last Word.Its an aura and if an enemy hero die in the range of this aura,even if you are NOT the killer you will gain +1 int ( in green text ) the enemy willl gain -1 int ( in red text )
Omg dude, i have been playing more than 5 years dota... you cant lying me, take a look at this pictyre and dont talk next time when you dont know !
I know it but Glaives of Wisdom can steal int too, even you haven't Last Word learned
Who cares. The time the OP wanted this was when Glaives could steal INT. BACK IN 2008....
Well, if it helps you any, I coded Glaives of Wisdom in JASS. It's not import friendly, but I hope it'll help.
Here's the main trigger:
Code:function Glaives_of_Wisdom_Conditions takes nothing returns boolean if GetTriggerEventId() == EVENT_PLAYER_UNIT_SPELL_EFFECT and GetSpellAbilityId() == 'A08E' then return true elseif GetTriggerEventId() == EVENT_PLAYER_UNIT_ATTACKED and GetUnitAbilityLevel(GetAttacker(), 'A08E') > 0 then return true endif return false endfunction function Glaives_of_Wisdom_Effects takes nothing returns boolean local unit attacker = GetEventDamageSource() local unit attacked = GetTriggerUnit() local real damage = .15 * GetUnitAbilityLevel(attacker, 'A08E') * GetHeroInt(attacker, true) local texttag tag = null if GetUnitAbilityLevel(attacked, 'B024') > 0 and GetUnitAbilityLevel(attacker, 'A08E') > 0 then call DisableTrigger(GetTriggeringTrigger()) set tag = CreateTextTag() call SetTextTagText(tag, "+" + I2S(R2I(damage)), .023) call SetTextTagColor(tag, 50, 165, 205, 255) call SetTextTagPosUnit(tag, attacked, -.15) call SetTextTagVelocity(tag, .0355 * Cos(90 * bj_DEGTORAD), .0355 * Sin(90 * bj_DEGTORAD)) call SetTextTagLifespan(tag, 1.) call SetTextTagPermanent(tag, false) set tag = null call UnitDamageTarget(attacker, attacked, damage, true, true, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_DIVINE, null) endif set attacker = null set attacked = null return false endfunction function Glaives_of_Wisdom_Actions takes nothing returns nothing local unit target local trigger effects = CreateTrigger() if GetTriggerEventId() == EVENT_PLAYER_UNIT_SPELL_EFFECT then set target = GetSpellTargetUnit() else set target = GetTriggerUnit() endif call TriggerRegisterUnitEvent(effects, target, EVENT_UNIT_DAMAGED) call TriggerAddCondition(effects, Condition(function Glaives_of_Wisdom_Effects)) call TriggerSleepAction(2.) call DestroyTriggerBJ(effects) set effects = null set target = null endfunction function InitTrig_Glaives_of_Wisdom takes nothing returns nothing set gg_trg_Glaives_of_Wisdom = CreateTrigger() call TriggerRegisterAnyUnitEventBJ(gg_trg_Glaives_of_Wisdom, EVENT_PLAYER_UNIT_SPELL_EFFECT) call TriggerRegisterAnyUnitEventBJ(gg_trg_Glaives_of_Wisdom, EVENT_PLAYER_UNIT_ATTACKED) call TriggerAddCondition(gg_trg_Glaives_of_Wisdom, Condition(function Glaives_of_Wisdom_Conditions)) call TriggerAddAction(gg_trg_Glaives_of_Wisdom, function Glaives_of_Wisdom_Actions) endfunction
Here's the trigger for when killer kills a unit and gets INT bonus:
Code:function Glaives_of_Wisdom_Death_Conditions takes nothing returns boolean return GetUnitAbilityLevel(GetKillingUnit(), 'A08E') > 0 and not(IsUnitIllusion(GetKillingUnit())) and IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) endfunction function Glaives_of_Wisdom_Death_Actions takes nothing returns nothing local unit killer = GetKillingUnit() local unit killed = GetTriggerUnit() local texttag tagKiller = CreateTextTag() local texttag tagKilled = CreateTextTag() call SetHeroInt(killer, GetHeroInt(killer, false) + 1, true) call SetTextTagText(tagKiller, "+1 Int", .023) call SetTextTagColor(tagKiller, 255, 0, 0, 255) call SetTextTagPosUnit(tagKiller, killer, 0) call SetTextTagVelocity(tagKiller, .0255 * Cos(90 * bj_DEGTORAD), .0255 * Sin(90 * bj_DEGTORAD)) call SetTextTagLifespan(tagKiller, 2.) call SetTextTagPermanent(tagKiller, false) call SetHeroInt(killed, GetHeroInt(killed, false) + 1, true) call SetTextTagText(tagKilled, "-1 Int", .023) call SetTextTagColor(tagKilled, 255, 0, 0, 255) call SetTextTagPosUnit(tagKilled, killed, 0) call SetTextTagVelocity(tagKilled, .0255 * Cos(90 * bj_DEGTORAD), .0255 * Sin(90 * bj_DEGTORAD)) call SetTextTagLifespan(tagKilled, 2.) call SetTextTagPermanent(tagKilled, false) set killer = null set killed = null set tagKiller = null set tagKilled = null endfunction function InitTrig_Glaives_of_Wisdom_Death takes nothing returns nothing set gg_trg_Glaives_of_Wisdom_Death = CreateTrigger() call TriggerRegisterAnyUnitEventBJ(gg_trg_Glaives_of_Wisdom_Death, EVENT_PLAYER_UNIT_DEATH) call TriggerAddCondition(gg_trg_Glaives_of_Wisdom_Death, Condition(function Glaives_of_Wisdom_Death_Conditions)) call TriggerAddAction(gg_trg_Glaives_of_Wisdom_Death, function Glaives_of_Wisdom_Death_Actions) endfunction
Spell from DotA called Glaives of Wisdom,
Nortrom's Glaives are enchanted by his experience in magic. If he kills a hero, he will permanently steal 1 intelligence from it. Damage type is pure.
Level 1 - Deals 15% of your intelligence in bonus damage.
Level 2 - Deals 30% of your intelligence in bonus damage.
Level 3 - Deals 45% of your intelligence in bonus damage.
Level 4 - Deals 60% of your intelligence in bonus damage.
Cooldown: 3/2/1/0 seconds.
Casteable/Autocastable
Bonus damage shoul be shown in the overhead just ike a critical strike on the target unit with teal color.
+1 int on the killer, -1 int on the target killed. (text in red color)
I am not directly requesting this, i would like some guidance on how to make this, but if someone can make this spell for me and post it on the spell section i would be more than gratefull with you guys.