Reviving hero, odd problem

Stardragon

Member!
Joined
Nov 9, 2003
Messages
106
Reaction score
0
Location
Sweden
Website
www.beelzebub.se


That is the trigger, everything looks right but the hero never is revived?

EDIT: This is f00king strange. If the unit I want to revive belongs to me it works, but if it belongs to a computer player nothing happens, is there anyway to get around this?
 

Dream_Walker

BattleForums Senior Member
Joined
Feb 20, 2005
Messages
1,924
Reaction score
0
Location
Arcanum
is the 'computer' neutral or a different color?
 

Dream_Walker

BattleForums Senior Member
Joined
Feb 20, 2005
Messages
1,924
Reaction score
0
Location
Arcanum
Try this:
Event:
A unit dies​
Condition:
((Dying unit is a hero)equal to True)​
Actions:
Set Variable1 (or whatever the name you want) = Dying unit​
Wait 15 (game time) seconds.​
Revive Variable 1 at (center of map location) facing Default building degrees.​

I think that should work.
 

Stardragon

Member!
Joined
Nov 9, 2003
Messages
106
Reaction score
0
Location
Sweden
Website
www.beelzebub.se
Still the same problem, whenever a player controlled by a computer (in this case Player 12 or Neutral Hostile) own the unit it won't respawn. When I change ownership of the unit to for ia. red or blue (not computer controlled) it works.



In the example above I put in some actions to see that it actually works, and yes the variables stores the correct information; Which unit it is and where it dies.
 

Dream_Walker

BattleForums Senior Member
Joined
Feb 20, 2005
Messages
1,924
Reaction score
0
Location
Arcanum
Why do you have an array?
And why do you have a player owned unit event. Just make a general unit event.

Here, try something like this.
 

Stardragon

Member!
Joined
Nov 9, 2003
Messages
106
Reaction score
0
Location
Sweden
Website
www.beelzebub.se
Dream_Walker said:
Why do you have an array?
And why do you have a player owned unit event. Just make a general unit event.
1) Wether I have an array or not should not affect the trigger
2) Because I don't want the trigger to kick in every time a hero dies no matter to which hero it belongs

Nothing of what you said have anything to do with the problem.

EDIT: I'm going nuts. It works in your test map but when I copy the trigger to my map (of course adding the variables you're using) it doesn't work. Fantastic.
 

Dream_Walker

BattleForums Senior Member
Joined
Feb 20, 2005
Messages
1,924
Reaction score
0
Location
Arcanum
Is there anything else that might affect the trigger? If not, remake the map? Sorry i can't help :(
 

Pains Requiem

BattleForums Senior Member
Joined
Nov 30, 2003
Messages
4,077
Reaction score
0
Location
north carolina
Website
Visit site
Are you sure the "Neutral Hostile" isn't whats causing the problems? Not much on triggers, but Neutral Hostile units don't reqally have heros, they are considered "creeps", so maybe that is why it is only affect you.

You might have to recreate the same trigger X amount of times for X amount of players, 1 trigger per colored team?
 

Dream_Walker

BattleForums Senior Member
Joined
Feb 20, 2005
Messages
1,924
Reaction score
0
Location
Arcanum
Stardragon said:
Well it worked with a Neutral Hostile unit in the test map Dreamwalker posted.
Yes, it did. PM me your map, maybe i can find something wrong with it.
 

NewPosts

New threads

Top