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

Resurrection

Status
Not open for further replies.
Level 2
Joined
Nov 11, 2012
Messages
6
Hi.

I'd like to add my map skills like Resurrection and Raise Dead from Warcraft III. Since there is no corpse system in StarCraft II, I really have no idea how to do it.

Would it require a corpse system of my own or is there another way to do it?
If Warcraft-like resurretion is too complex, is it possible to create an auto-cast ability that would trigger immediately when a nearby unit dies and resurrect that unit.
 
Level 9
Joined
Dec 21, 2006
Messages
490
there is a difference between raise dead and ressurection.
all units have an attribute in stats - death time, this must be -1 if you like to ressurect this unit the whole game. set it to != 0 if there should be a time limit. standard is 0 which means the unit disappears after it is dead.
to have corpses in your map you need to stop the death animation. if you are on europe you can try my map "The raising dead" to see the result.
Stopping the animation is not that easy depending on the unit. if it has a death animation on the unit model you can do it with a timer inside the actor actions. if it uses a death model ask me again, need to have a look again.

i don't know if raise dead needs "death time" but i think so. just create an ability with searcheffect (searching a dead unit) which uses an spawn effect. that's all
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Stopping the animation is not that easy depending on the unit. if it has a death animation on the unit model you can do it with a timer inside the actor actions. if it uses a death model ask me again, need to have a look again.
Or if the death uses a special model you can get the actor to be changed by destroying the old one on death and making a new one with the dead model.
 
Level 2
Joined
Nov 11, 2012
Messages
6
there is a difference between raise dead and ressurection.
all units have an attribute in stats - death time, this must be -1 if you like to ressurect this unit the whole game. set it to != 0 if there should be a time limit. standard is 0 which means the unit disappears after it is dead.
to have corpses in your map you need to stop the death animation. if you are on europe you can try my map "The raising dead" to see the result.
Stopping the animation is not that easy depending on the unit. if it has a death animation on the unit model you can do it with a timer inside the actor actions. if it uses a death model ask me again, need to have a look again.

i don't know if raise dead needs "death time" but i think so. just create an ability with searcheffect (searching a dead unit) which uses an spawn effect. that's all

Okay, I have tried modifying death time and I think I can also create the search area effect. What kind of effect should I use to return a dead unit back to life?

Simply creating new unit isn't enough, because in that case you could resurrect unlimited copies of the dead unit.
 
Level 9
Joined
Dec 21, 2006
Messages
490
resurrecting is done by trigger. if you use a trigger you can also create a new unit and remove the dead unit then. OR you just change something on the dead unit to validate on (owner, flags).
also interesting (never tried) if modifing the dead unit's hitpoints, maybe this also ressurects it.
 
Level 1
Joined
Dec 1, 2012
Messages
6
I believe you have to look at the mission on Char with Raynor, Swan and Egon, where if any of them get hp 0, goes in state 'incapacitated' or what was the word. There you see the triggers to revive them. I always wanted to get those triggers for future reference but never was able to see where. Good luck
 
Create a trigger that invuls a unit just before it dies, sets it to unselectable then play its death animation. When x ability is used, simply remove y unit from the game and spawn another one at its location (or remove the flags, but spawning is simpler).

Or just use an ability similar to the effect of when a hero dies in the campaign then remove that ability when x ability is used on the unit.

The solution here is not chizled in stone. There are many, many ways you could go about it. It's simply a matter of imagination :D
 
Status
Not open for further replies.
Top