HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Where and how do I get this trigger?

01-14-2007, 10:15 AM#1
Elhyse
I saw this awesome WoW style of hero revival somewhere in these forums. I was following it when i suddenly found myself stuck. I couldn't find the darn action trigger :

Set TriggerDeath[(Player Number of (Triggering Player))] = Dying unit

I know some parts of that trigger were probably changed for personal map use but, I really can't find the base action trigger for this. Help pleaseee?
01-14-2007, 10:53 AM#2
Chocobo
-> Actions
-> Set Variable
---> Select TriggerDeath
---> Select the index array
------> Go in Player Number of Player
--------> Select Triggering Player
-> Go back
-> Select (Dying unit) as value specified.

Or simply in JASS :
Collapse JASS:
set udg_TriggerDeath[ConvertedPlayer(GetTriggerPlayer())]=GetTriggerUnit()
01-14-2007, 11:00 AM#3
Elhyse
Thanks Mister Chocobo but...

Being a noob at map making,I really know nothing about implementing that JASS code up there. And I don't really know what to put in the Add New Variable to make TriggerDeath...
01-14-2007, 11:03 AM#4
The)TideHunter(
First look for this action.



Then click TriggerDeath as the variable.



Then, as the Index, look for Player Number



Once you have that, it should automaticly be Triggering Player



Then you should have something that looks like this:



Then on Value, look for this:



Then your done! you should have:

01-14-2007, 11:11 AM#5
Elhyse
How do I make the Trigger death variable T_T
01-14-2007, 11:13 AM#6
The)TideHunter(
When on the trigger editor, hold [Ctrl] and click X.
Then, click the Add Variable button, call it whatever you wanted, click the Array box, set array size to 12, and Variable Type to Unit.
01-14-2007, 11:21 AM#7
Elhyse
Darn it won't work! I killed my hero (ty giant crabs) but the unit i want to spawn when the hero dies won't spawn! here i post the triggers...

When I die part...

Trigger:
Death
Collapse Events
Unit - A unit Dies
Collapse Conditions
((Triggering unit) is A Hero) Equal to True
Collapse Actions
Set TriggerDeath[(Player number of (Triggering player))] = (Dying unit)
Game - Display to (All players controlled by a ((Picked player) controller) player) the text: You have died. Brin...
Cinematic - Fade out over 2.00 seconds using texture Dream and color (18.00%, 0.00%, 50.00%) with 60.00% transparency
Unit - Create 1 Hero's Soul for (Picked player) at (Position of (Dying unit)) facing Default building facing (270.0) degrees

For the Revival part...
Trigger:
Revive
Collapse Events
Unit - A unit enters Respawn Truth <gen>
Collapse Conditions
(Unit-type of (Triggering unit)) Equal to Hero's Soul
Collapse Actions
Hero - Instantly revive TriggerDeath[1] at (Center of Respawn Truth <gen>), Show revival graphics

It was supposed to create a "Hero's Soul" unit when the hero died. I would bring it to the team's Revival Rune to revive the hero.

Help me...
01-14-2007, 12:03 PM#8
Chocobo
Trigger:
Death
Collapse Events
Unit - A unit Dies
Collapse Conditions
((Triggering unit) is A Hero) Equal to True
Collapse Actions
Set TriggerDeath[(Player number of (Triggering player))] = (Triggering unit)
Game - Display to (Owner of (Triggering unit)) the text: You have died. Brin...
Cinematic - Fade out over 2.00 seconds using texture Dream and color (18.00%, 0.00%, 50.00%) with 60.00% transparency
Unit - Create 1 Hero's Soul for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing (270.0) degrees


Trigger:
Revive
Collapse Events
Unit - A unit enters Respawn Truth <gen>
Collapse Conditions
(Unit-type of (Triggering unit)) Equal to Hero's Soul
Collapse Actions
Hero - Instantly revive TriggerDeath[(Owner of (Triggering unit))] at (Center of Respawn Truth <gen>), Show revival graphics
Unit - Remove (Triggering unit) from the game

This should work.
01-14-2007, 12:22 PM#9
Elhyse
Whenever I enter the region i set for revival, it doesn't do anything. I tried all i know (probably not enough...) but i just can't get my hero to revive...
01-14-2007, 12:51 PM#10
rulerofiron99
Set TriggerDeath[(Player number of (Triggering player))] = (Triggering unit)

should be

Set TriggerDeath[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
01-14-2007, 02:05 PM#11
Elhyse
It still won't work...the unit just stands there and stares blankly into space. No heroes revived. No units removed. Is this thing even possible ??