• 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.

[Spell] Spell question

Status
Not open for further replies.
Level 9
Joined
Feb 28, 2017
Messages
195
i wanted to take the absorb magic spell from the magic destroyer and make it so that instead of being a targeted spell it would take all the buffs away from units surrounding the caster, it is possible, or do I have to use some sort of advance jass to create this magic spell
 
Level 11
Joined
Mar 28, 2015
Messages
631
I can see how you can get this to work for a hero....

Create a dummy ability,
create a rune (item)
create an identical copy of absorb magic which costs no mana
create a trigger which gives the ruin to the hero

use summoning ritual as the dummy ability since it's most convenient as it has no effect of its own

set up so that the ruin runs the absorb magic ability in its abilities category


set up a trigger

event - unit begins casting ability

condition - ability comparison
ability being cast = summoning ritual (whatever you renamed it to)

action - hero - create item for hero

once the hero receives the item the spell will be cast


Hope that makes sense to you
 
Level 9
Joined
Feb 28, 2017
Messages
195
K, thx that helped a lot


so create a rune that fires a certain spell

produce a dummy ability--->>>have it trigger a rune to be given to a hero-->>>the hero casts the spell
 
Level 11
Joined
Mar 28, 2015
Messages
631
yes, just make sure you set the model of the rune to none, otherwise it'll look like the unit just absorbed a ruin...also this works for heroes only....there's a way around that but it can cause crashes
 
Level 11
Joined
Mar 28, 2015
Messages
631
Basically the work around is to add two actions to the trigger, one to add a hero inventory to the unit, the other to remove it

so you add it before you give the rune to to unit, and then you remove it after, but I think it causes the game to crash in some instances
 
Status
Not open for further replies.
Top