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

Need help with corpse buying

Status
Not open for further replies.
Level 3
Joined
Nov 3, 2004
Messages
43
is there anyone who knows how I can make it so that you can buy corpses from a shop. like say in an RPG you had a necromancer who could go up to a shop, purchase a dead body and then raise it ass a skeleton warrior.
 
Level 13
Joined
Jun 22, 2004
Messages
783
this is a difficult question even I am not sure of answering, but here might be a sugestion.

# you could try to make a mercenary and just make a custom unit (Via crtl+shift+n), you change the model of the unit to a death corpse (look at the model of the unit), and then you should add the unit as purchable at the mercenary you have made, when you buy it you see a death corpse and maybe then the necromancer could turn it into a skeleton.

If this doesn't work witch will i think occur than, you should just play with the editor a long time till you figured out what to do.
Good luck
/Warnicro/
 
Level 5
Joined
Jul 15, 2004
Messages
148
Just make a specific unit in the shop, and have a trigger that has it automatically die. Here is kindda what it would look like:

Event: A unit enteres reigon
Condition: Unit (entering reigon) equal to dead body
Event: Kill unit (entering reigon)

Although I am not exactly sure that is the easiest way to do it, I am quite positive that that would work. I think you can set the death time (in seconds) to be .1, which would make the unit die instantaneiously during spawning, as opposed to being spawned and then dying like a normal unit.
 
Level 13
Joined
May 5, 2004
Messages
1,330
You won't need to trigger its death, simply change the life-regeneration to a high negative value. If you want the corps to be carried like an item, use an item that spawns a unit when used, and change the spawned unit to the corpse-dummy. And change the death time like MrMaestro said.
 
Level 5
Joined
Jul 15, 2004
Messages
148
Wow... I didnt know you could have a negative regeneration value :). Guess I have never really had a need for it. Would that mean that you could get a negative healing effect just by making the unit effected by an ability that lowered regeneration to the point of a negative value?
 
Level 13
Joined
Jun 22, 2004
Messages
783
you both seem to have given a complete answer to it, well mine was a bit of not working, (checkt it in the editor) but what you guys said i did yesterday evening lol :lol: .
well hope you have the answer now!
good luck at it.
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
Hehe... I'd have an idea as well. Try to give the shop or whatever an ability. Everytime you cast that ability it drains gold from the owner, and creates a permanent corpse. This, if you want for a building. If you want it in an item just give the ability to an item which can cast it like... let's say Crystal of Thunder Lizard which casts Chain Lightning. Now, let's proceed to the triggers.

Trigger

Event - an unit starst the effect of an ability
Conditions - Ability being cast equal to (YourAbility)
Actions - Create One Permanent Corpse at Position of (Casting Unit) offset by 300 towards (Random angle between 1 and 360).

This should do it IMO. If you don't want a permanent corpse just create a normal corpse but Graveyards use Permanent corpses. Oh well, hope this helped you. :D
 
Status
Not open for further replies.
Top