| 09-26-2004, 11:18 PM | #1 |
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.)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.) |
| 09-26-2004, 11:38 PM | #2 | ||
Ok, I can pick it out right away: Bold colors should be altered. Quote:
Quote:
![]() |
| 09-27-2004, 12:15 AM | #3 |
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 |
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 |
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 | |
Quote:
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 |
didnt some1 make a WoW death system in the repository? |
| 04-04-2005, 07:48 PM | #8 |
I'm working on a death system currently. |
| 04-05-2005, 11:10 AM | #9 |
*waves fingers around mystically* NEEECCcRRRROOOMAAANNCCEERRRRR |
