HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Death system

09-26-2004, 11:18 PM#1
Dalar
Hey guys im trying to make a death system kinda like WoW but if your hero dies, a shade spawns where u corpse lays, then you need to get to a graveyard and once your there your shade gets removed then your hero that died gets revived. I got this so far:


Code:
Death
    Events
        Unit - A unit owned by Player 1 (Red) Dies
    Conditions
        ((Triggering unit) is A Hero) Equal to True
    Actions
        Unit - Create 1 Shade for (Picked player) at (Position of (Dying unit)) facing Default building facing (270.0) degrees
        Cinematic - Fade out over 2.00 seconds using texture Dream and color (18.00%, 0.00%, 50.00%) with 60.00% transparency
        Game - Display to (All players) the text: (Use brightness Bright and color Simple - Gold and color this text: You have died, get to a graveyard to revie yourself.)
and then this is the revive part:
Code:
Revive
    Events
        Unit - A unit enters Graveyard1 <gen>
    Conditions
        (Unit-type of (Triggering unit)) Equal to Shade
    Actions
        Hero - Instantly revive (Dying unit) at (Center of Graveyard1 <gen>), Show revival graphics
        Game - Display to (All players) the text: (Use brightness Very Bright and color Simple - Gold and color this text: You have been granted another change in life.)
not sure what i need to do.
09-26-2004, 11:38 PM#2
Invisible_Wall
Ok, I can pick it out right away:
Bold colors should be altered.
Quote:
Death
Events
Unit - A unit - Dies <Change this so any player can have their unit die>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Set TriggerDeath[(Player Number of (Triggering Player))] = Dying unit
Unit - Create 1 Shade for (Triggering Player) at (Position of (Dying unit)) facing Default building facing (270.0) degrees
Cinematic - Fade out over 2.00 seconds using texture Dream and color (18.00%, 0.00%, 50.00%) with 60.00% transparency
Game - Display to (All players) the text: (Use brightness Bright and color Simple - Gold and color this text: A Player has died, revival is possible at a graveyard.)
Quote:
Revive
Events
Unit - A unit enters Graveyard1 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Shade
Actions
Hero - Instantly revive TriggerDeath[(Player Number of (Triggering Player))] at (Center of Graveyard1 <gen>), Show revival graphics
Game - Display to (All players) the text: (Use brightness Very Bright and color Simple - Gold and color this text: A Player has been granted another chance in life.)
I hope that helps, it should work.
09-27-2004, 12:15 AM#3
Moose-Head_Man
the problem is in the 2nd trigger, you use Dying Unit, when there is no dying unit in the 2nd trigger! you need to set it when a hero dies, to a variable, then in the 2nd trigger do, revive (Variable0
09-27-2004, 05:57 AM#4
Dead-Inside
Also, you might want to use "(Player(PlayerName)) has died... and has been granted another chance" or something like that. Makes it more personal and more professional looking.
09-27-2004, 01:17 PM#5
Phyvo
Or you could reduce clutter and just display the text to the player who dies, using "Owner of (Entering Unit)" instead of (All players). I mean, it makes more sense to just tell the person who dies rather then everyone...
09-27-2004, 09:04 PM#6
Gandalf2349
Quote:
Originally Posted by Phyvo
Or you could reduce clutter and just display the text to the player who dies, using "Owner of (Entering Unit)" instead of (All players). I mean, it makes more sense to just tell the person who dies rather then everyone...

What I was going to say.

Also, replace (Triggering Player) with (Owner of (Triggering Unit)). A unit is triggering the trigger, not a player. I've had things not work on me like that.

P.S. Whats that coloring, you using an advanced editor? I always thought |c was easier.
09-27-2004, 09:18 PM#7
-={tWiStÄr}=-
didnt some1 make a WoW death system in the repository?
04-04-2005, 07:48 PM#8
Linera
I'm working on a death system currently.
04-05-2005, 11:10 AM#9
logik
*waves fingers around mystically*


NEEECCcRRRROOOMAAANNCCEERRRRR