• 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] Consecration

Status
Not open for further replies.
Level 5
Joined
Jul 11, 2009
Messages
81
Heya guys!

I was wondering how to make the WoW like ability Consecration - http://www.wowwiki.com/Consecration . Its easy to be made with the object editor by editing the Flame Strike ability, but the problem is that I need it to deal damage based on Strength of the hero per second - that's why i need it triggered. Can anyone make this easy thing for meh? :goblin_good_job:

[Info] I tried to make it but when an enemy unit stepped on the Holy ground (I mean - Target Point Ability Being Cast), it laggs like hell
 
Last edited:
Level 5
Joined
Jul 11, 2009
Messages
81
darkzxx, I know how to make the spell to deal damage based on stats, omg :D The problem is with the spell that it laggs when an enemy unit steps on the fire ground ... Please help, I really need this spell
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
For the damage base on STR, you should not base your spell as Flame Strike (well unless you have its damage dealt to 0 for all damages) because that would interrupt the damage dealt to unit via Trigger Editor and via Object Editor

For the lagging part, I think you have leak in your trigger, you should follow dark's link suggestion to learn about how to clear leak (for better and efficient non-lagging trigger)
 
Level 17
Joined
Mar 21, 2011
Messages
1,611
you could do it with hashtables

add all units within spell radius to unit group, and save the caster in their id in a hashtable.

in second trigger u say:

every 1 second of game time

pick every unit that is in the created unit group in first trigger

if unit has dps buff

then u load the id in hashtable and ull get the caster, then say damage picked unit .. blablabla str x 5

else remove unit from unit group
 
Level 5
Joined
Jul 11, 2009
Messages
81
Now I moved it to another map and I was surprised - the lag was reduced (maybe cuz there is no dmg system in the empty map, idk), but still laggs really like hell !!! Just cast it on place where are many enemies and see the result :( Maybe i didnt make smthing right with the memory leaks ?!?

[Info] Imma trying to do the same thing with the Bladestorm - Strenght based, but if I got the Consecration, it would be easy to make the Bladestorm too :p
 

Attachments

  • Consecration.w3x
    12 KB · Views: 71
Level 11
Joined
Oct 31, 2010
Messages
1,057
i think this is what is happening with your triggers
every one second there is a leak at the location
so the third trigger only kills one but there are 10....
so basically i spamed destroy group which i think doesnt work

i tested and it seems it does lag after you casted it once but after it it becomes fine or so i think

try \/\/\/\/
 

Attachments

  • Consecration[1].w3x
    12.4 KB · Views: 73
Level 5
Joined
Jul 11, 2009
Messages
81
TY! :D It worked perfectly, there is just one more problem, now i dont know how to add flaming ground (effect for 10 seconds) to the Channel based ability, I mean it burns their hp down, but i cnt see the burning ground :(
 
Status
Not open for further replies.
Top