Warcraft III resources & community, 2003–2006 · archived

Spell Help: Heart of Ice

12 posts
#1

Spell Help: Heart of Ice

I need help with a spell that I'm making called Heart of Ice. It should be based on Avatar because it has some similar effects:

Heart of Ice:
When Heart of Ice is activated, the hero recieves 15 bonus armor and spell immunity (From Avatar). Any melee unit that attacks the hero will have its movement and attack speed reduced (Like Frost Armor). If the hero dies while under the effect of heart of ice, it will come back to life (Reincarnation Style).

It would be great if someone could do this in Jass because it should be multiinstancible.
#2
Umm... Would you like it for more than one unit/player? Because if you don't, I can do it with triggers! This would mean that every player can cast it at the same time, but the same player cannot cast the spell with more than one unit at the same time.
#3
That would be great, as long as more than one player can cast it at the same time :D .
#4
Ok... I will try to do it ASAP! I may finish it tomorrow since now I am a little busy but I will do it. Oh, if you can do it yourself I can give you a piece of advice how to make it multi instance. Make sure all variables are arrays with 16 positions and set the value to stuff like "Player Number of (Owner of (Casting Unit)) or Player Number of (Triggering Player)". That should work in most of the cases! You can also check some of my spells. Armageddon is a bad example because it takes too much to implement but I'm trying to improve it.
#5
Thanks, thats great. Glad that there are still people out there who will help :lol: .
#6
So you did it yourself? If not, I will do it myself. But hopefully you succeeded.
#7
Can't get the reincarnation part to work. I tried doing Event-If Unit dies
Condition-Unit has specific Buff Heart of Ice
Actions:- Revive hero instantly, hide lvl up
- Add ability Reincarnation to unit
- Kill Unit.

Appearently the buff is removed from the unit when it dies, so none of the actions take place. The frost armor is all set, and so is the Avatar part, i just need the reincarnation.
#8
Umm... You can also make an auxiliary trigger.

Event - An unit is attacked
Conditions - Unit has buff (your buff) equal to trur
Actions - Wait 0.50 seconds.
- If (Attacked Unit) is dead equal to true then Hero
Then - Revive unit instantly at position of dying unit.
Else - Do nothing

Heh, that should do it I guess.
#9
Hmmm... I'll try it. But I want it to have a longer pause between death and revival, like reincarnation.
#10
Umm... You can add the unit to a game cache and remove it from the game. Then you can just wait some more seconds and THEN revive the unit by restoring it from the game cache. Explore the game cache to functions to find out more about them. ;)
#11
i can do it for u in JASS if u still need it
#12

...

You could have wait
# of secpnds
revive hero instantly.