Warcraft III resources & community, 2003–2006 · archived

Need Trigger Help

24 posts
#1

Need Trigger Help

I'm working on an map and I need help with one trigger. It's an hero revive trigger, I want the hero to revive after the level of the hero x 5 seconds.

The trigger right now looks like this:
Event:
Unit - A unit owned by player 1 dies
Conditions:
((Dying unit) is a hero) equal to true
Actions:
Countdown timer - start revivetimer as a one-shot timer that will expire in (Here is where i need help)

The rest is not nesesary to write, I hope you understand what I mean.
#2
You definitely need variables. That's all I can say is use arithmetic: 5 x(Hero Level of (Dying unit))

Amazing! The great Juice_F actually does post somewhere otehr than the icon forum!
#3
ok thx, and I used to post in the other forums, I just have been busy latley, and have only comed here to do my job as an icon moderator. But I will start posting in the other forums soon.
#4
So, did the technically remedial effect of my knowledge work?
#5
EusiraSo, did the technically remedial effect of my knowledge work?


probably not ;)
#6
why not just add wait 5 seconds, then as another action, revive hero where ever you want it to revive?
#7
Becouse I want it to take longer to revive it the higher the lvl of the dead hero is.

And hey, I need help again with another thing.
this time it's about choosing hero, it's realy irritating that I can't get this to work myself.
It's an ToB style hero selection.

Event:
Unit - Necromancer 0021 <gen> is selcted
Conditons:
Actions:
Unit - Create 1 Necromancer for ??? what shall I put here? I want the person who selected the unit to get the unit and I can't get it to work.

So how shall I do it?
#8
Events
Unit - Necromancer 0000 <gen> Is selected
Conditions
Actions
Unit - Create 1 Necromancer for (Triggering player) at (Center of Region 000 <gen>) facing Default building facing degrees
#9
I have already tried that and it doesn't work it only gives an hero to neutral passive, does anyone have something else that might work?
#10
and how does it work for me? and yes I have another trigger but I am too tired to write it.
#11
Why not just have a unit (such as a wisp) and give it a dummy ability that enables it to cast on a target hero. Have the wisp cast the spell on the hero you want to have, and the create the hero for the owner of the casting unit. I know thats not exactly what you wanted, but it's pretty easy to do ;).
#12
If there's gonna be one of each hero, then give the unit to the selector, move it to the team's start location, create special effects, and turn off the trigger. Also make sure you check conditions to see if they go on the right team
#13
If there's gonna be one of each hero, then give the unit to the selector, move it to the team's start location, create special effects, and turn off the trigger. Also make sure you check conditions to see if they go on the right team


thats what i'm trying to do, but i don't know how to give the unit to the selector.
#14
Give Necromancer 0000 to triggering player
#15
for some reason it gives the unit to neutral passive, the unit is neautral passive before u select it.