• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Doubts

Status
Not open for further replies.
Level 5
Joined
Aug 30, 2009
Messages
114
Hello everyone, I want to know how to create spells like the Glaives of Wisdom from the Silencer (DotA) or the Burning Spear from Huskar (DotA). These spells are auto-casting spells that changes their attack. The Glaives of Wisdom add some pure damage based on your intelligence, and a floating text is shown over the target's head. But I know they don't use "Event - Unit Attacked" or "Event - Unit Damaged" because the first one will cause the floating text to be shown before the damage is dealt by the attack and the Unit Damaged would cause the floating text to be shown whenever the unit take any damage from the caster. I tryed with buffs, something like it:

EXAMPLE ONLY

Event - Unit Attacked
JASS:
local unit U = GetAttacker()
local unit T = GetTriggerUnit()
loop
      exitwhen UnitHasBuffBJ('BUFF', T) or (IsUnitAliveBJ(T) == false)
      call TriggerSleepAction(0.10)
endloop
call UnitDamageTargetBJ(U, T, 90.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_UNIVERSAL)
set U = null
set T = null
This way, the spell is almost perfect, BUT, there is a problem, If I use an auto-cast spell, when you order your hero to cast the spell, it doesn't work.
And the Silencer spell from DotA don't leave any buff.

Anyone knows how exactly to do it?

----------------------

Useless doubt, I wanna know wich magic resistance I can use to stack. Example: The Spell Damage Reduction don't stack with each other, I need another Magic Resistance spell to stack with it, can someone tell me?
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Credits to Weep for Damage Detection System
Original trigger by me
Unfortunately, I can only do Auto-cast mechanics
Not "spell cast"
Like in DotA, we can "orb-walk", right ?
Activating the spell by pressing the hotkey and launch to the targeted unit
I can only do auto-attack, sorry :D
However, I left out my left-over work on "manually cast spell" trigger
Others can check it to repair it if you want to
 

Attachments

  • Glaive of Wisdom.w3x
    23.8 KB · Views: 85
Level 5
Joined
Aug 30, 2009
Messages
114
Can anyone tell me wich kind of magic resistance I can use to stack. Example: The Spell Damage Reduction don't stack with each other, I need another Magic Resistance spell to stack with it.

Example: Unit have a skill that gives 35% spell damage reduction

and if he wants to have a item that gives another 35% spell damage reduction

he will have 70% spell damage reduction, how to do it?
 
Level 5
Joined
Aug 30, 2009
Messages
114
Use Elune's Grace as base ability
Set the "Data - Magic Damage Reduction" to your own needs
By the way, spell damage reduction DOES NOT STACK DIRECTLY
Like 35 + 35 = 70%, WRONG
It has its own advanced calculation which will approximately ends up as 55% instead

So which spell resistance you think they use in DotA, like spells from Pudge, Magina or Viper.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
All heroes have natural magic damage reduction for up to 25%
Other items/abilities help this magic damage reduction such as:
Flesh Heap
Corrosive Skin
Spell Shield
Hood of Defiance
etc
It uses 3 basic magic damage reduction which is the: Natural Resistance + Ability Resistance + Item Resistance = Total Magic Damage Reduction (in % and does not stack directly)
1. Natural Resistance (All heroes have this)
2. Runed Bracers (May used for Items or Abilities)
3. Elune's Grace (May used for Items or Abilities)
These 3 are used in DotA Game
 
Level 5
Joined
Aug 30, 2009
Messages
114
defskull

Can u tell me how do I create a spell like: Natural Order from Tauren Chieftain (DotA)

http://www.playdota.com/heroes/tauren-chieftain#skill485

And can you see this topic and awnser it

http://www.hiveworkshop.com/forums/map-development-202/forest-hero-defense-191668/#post1869937

Thank You.

In my map, Natural Resistance is 0%, so I want the new "Natural Order" spell to reduce magic resistance, or reduce it from items/skills. (If the enemy have an skill that gives him 50% magic resistance, with the 5 levels of the natural order, it will be reduced to 0%)
 
Level 16
Joined
Aug 20, 2009
Messages
1,554
why not add a negative magic resistance abilities on the unit, and remove it later? :D (enemy unit effected by natural order)

i use that a lot on my map. using some passives such as negative sight bonus (Goblin telescope) to reduce enemy's sight range when the spell is cast, it works just fine. (GUI MUI)

you can use disabled spell book for passives that show icon, to remove the icons.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Not sure if it works but...
If you have an ability based from a same benefit (+Magic Damage Reduction), I think the game will take ONLY the highest amount of value
Like Level 1 Endurance Aura and Level 2 Endurance Aura (it will take Level 2 instead)
If you have a positive magic damage reduction, and you add the negatified ones, will it work ?
(Non-tested yet)
 
Level 5
Joined
Aug 30, 2009
Messages
114
Yeah, I don't know if it works too... and Defskull, I think that two items with Elune's Grace stacks, but I don't know how, let me explain, I made a test-map where every damage taken by my hero will be shown as a number overhim, and then I made the Pudge from DotA, with all the same spells. I made two items of Magic Resistance based at Elune's Grace and the Magic Resistance of Pudge I made based at Spell Damage Reduction, when I test it, everything was fine, but when he have both items + his spell, it all stacks, example:

(Natural Resistance used = 0%)
Normal 100 Damage
Skill 16% = 84 Damage
Skill 16% + Item 35% = +-50 damage (I don't remember exactly, I made it yesterday)
Skill 16% + Item 35% + Another Item 30% = +-30 Damage

The items were based at ELUNE's Grace and the Skill at Spell Damage Reduction.

Can you tell me how to make the item doesn't stack with another item but stacks with the skill?

Thank you for your help and attention.
 
Level 16
Joined
Aug 20, 2009
Messages
1,554
i beleive adding a negative magic resistance ability while having a positive one works, just like how it stack (but this one amplifies).

so, damage x (%(Magic resistance + Natural Magic resistance) - Negative Magic Resistance (Amplifier)) which means it actually works as a reducer for the magic resistance.

----dont give up so fast lol, its not that complex def------------------
anyways, i made one map for you,

The unit with the elune's grace's magic resist will not stack with "Non-Stacking Runed Bracer" (another non-stacking runed bracer does nothing)
Stacking runed bracer item can be stacked with elune's grace unit and another runed bracer,
damage amplifier amplifies damage, works within stacking formula,

for more information, use my test map. (**********READ******** ITEM DESCREPTION)

http://www.hiveworkshop.com/forums/pastebin.php?id=oi0lxy

Using this map
you will be able to
*Create a unit that with Magic resistance, that will not stack with Item's Magic Resistance
*Create a unit with magic resistance, that can be stacked with item's Magic Resistance
*Create an item that will not stack its Magic resistance however you accumulate the same item
*Create an item that will stack its magic resistance with each other
*Create Dota's Natural Order Spell with Damage Amplifier Ability that i made.
if you read my item description carefully
 
Last edited:
Level 5
Joined
Aug 30, 2009
Messages
114
i beleive adding a negative magic resistance ability while having a positive one works, just like how it stack (but this one amplifies).

so, damage x (%(Magic resistance + Natural Magic resistance) - Negative Magic Resistance (Amplifier)) which means it actually works as a reducer for the magic resistance.

----dont give up so fast lol, its not that complex def------------------
anyways, i made one map for you,

The unit with the elune's grace's magic resist will not stack with "Non-Stacking Runed Bracer" (another non-stacking runed bracer does nothing)
Stacking runed bracer item can be stacked with elune's grace unit and another runed bracer,
damage amplifier amplifies damage, works within stacking formula,

for more information, use my test map. (**********READ******** ITEM DESCREPTION)

http://www.hiveworkshop.com/forums/pastebin.php?id=oi0lxy

Using this map
you will be able to
*Create a unit that with Magic resistance, that will not stack with Item's Magic Resistance
*Create a unit with magic resistance, that can be stacked with item's Magic Resistance
*Create an item that will not stack its Magic resistance however you accumulate the same item
*Create an item that will stack its magic resistance with each other
*Create Dota's Natural Order Spell with Damage Amplifier Ability that i made.
if you read my item description carefully

Almost perfect, just tell me how do I create a unit with Elune's Grace and stack it with only ONE item, like: I want the unit to have a normal magic resistance of 35% (Elune's Grace) and then it takes an item that gives more 35% (Spell Damage Reduction)
 
Level 16
Joined
Aug 20, 2009
Messages
1,554
o.o ... trigger it maybe?
lol, at least dota's hood of defiance is the stacking thing.

i have a way, just give the item tinker upgrade ability (i dont know what its called, but it upgrades ability), like aganim. (dota reference)
to upgrade the spell resistance. xD (That way it only stack once right?)

hope that works, wish you all the luck xD
 
Last edited:
Status
Not open for further replies.
Top